Eye candy

The next three sections in this chapter will be purely aesthetic. We will add a whole bunch of different tile graphics with matching classes so that we can use a whole lot more artistic license to make our levels more interesting. The difference between the tiles will be purely visual, but it will be fairly simple to make them more functional than that.

For example, we can easily detect collision with a snow tile and have the player keep moving briefly after stopping to simulate skidding, or perhaps; the concrete tile can allow the player to move faster and therefore change the way we design big jumps and so on. The point is that you don't have to just copy paste the classes as they will be presented here.

We will also add some completely ...

Get Android Game Programming: A Developer’s Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.