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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.