Chapter 4. Looking Sideways
It's now time to make a more complex game. We will implement a very popular genre, that of the 2D platform game. Some early examples of this genre are Super Mario Bros and Sonic the Hedgehog. These games are typically built using small repetitive sprites, called tile maps, for the level design. We will add these, as well as a more general collision detection, to our framework. For the game logic itself we will use object-oriented code.
Here is a quick list of the features we will have to add to our framework:
Offline divs
Groups
Sprite transformation
Tile maps
Collision detections
We will first begin by going through all of these, and will then start with the game.