A more advanced tile engine

In Robot Rampage, we built a simple tile engine that displayed a single layer of tiles from a two dimensional array of integers, which represented the tiles associated with each map square. For Gemstone Hunter, we will construct a new tile engine that handles multiple tile layers, including a layer of tiles that are drawn in the foreground, appearing in front of the player:

A more advanced tile engine

Since we need to store more information about an individual map square, we will begin by defining a class that will contain all of the information we need about a particular square.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.140.185.147