Making our player character

We saw in the previous chapter how to create our background image. In theory, it is almost similar to the previous chapter to create our player character, but since we are going to deal with animations in the further part of this chapter, we will need to modify our code a bit. Let's get started with that first.

Now, as a programmer, you have to keep in mind that there are many ways to do one particular thing; therefore, just as a demonstration to get a clearer understanding, we will modify our background image code a little. Open up your file and remove the setVector method. Now, you will see that there will be an error in our file since our setVector method does not exist; let's ...

Get Learning Android Game Development now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.