Either of the two things mentioned in the preceding section will give you an illusion that the character is moving in a certain direction. Also, if you remember Mario properly, then you will notice that the clouds and grasses are one and the same, only their colors were changed. This was because of the memory limitations of the console platform at the time:

Game developers use many such tricks in order to get their game running. Of course, in today's times, we don't have to worry much about memory limitations because our mobile device has the capability of the Apollo 11 rocket, which landed on the moon. Now, keeping in mind the mentioned ...

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.