Instead of doing a simple demo of drawing a single bitmap on the screen, we will make a small 2D tile-based world. In 2D graphics, the term tile refers to a small bitmap image that represents one square of space in the 2D world. A tile set or tile sheet
is a single bitmap file that contains numerous tiles. A single 2D graphic tile is also referred to as a sprite
. To get started, add a new project named
TileWorld to the
SlimFramework solution. So far, we've directly used the game window classes we made. This time, we will see how we will do this in a real-world game project.
Add a new class file to the
TileWorld project and name it
TileGameWindow.cs. As you may have guessed, we will make this new class inherit from the