2D Graphics, Coordinates, and Game State

After completing this chapter, you will be able to:

  • Control the game window size
  • Create and use a custom C# class to support the drawing and simple behaviors of textures
  • Differentiate between pixel and user-defined coordinate systems
  • Design and create your own coordinate system that best supports your game
  • Create simple game objects
  • Create a simple game state


Most games these days use graphics in some form or another to represent or communicate their state, and 2D games are no different. Whether they use a texture used to represent a hero character or particles to show an explosion, ...

Get Learn 2D Game Development with C# now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.