If you observe a game carefully in its source code level, you will observe that a game is just a set of illusions to create certain effects and display them on screen. Perhaps, the best example of this can be the game that we are about to develop. In order to make your character move ahead, you can do either of two things:
- Make the character move ahead
- Make the background move behind
Let's take a look at this in a bit more detail. The preceding two points can be achieved with the help of some illusions; let's understand how.
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...