O'Reilly logo

Game Development with SlimDX by Michael Fontanini

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Rendering bitmaps

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 GameWindow ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required