O'Reilly logo

Learn 2D Game Development with C# by Robert Zhu, Kelvin Sung, Jack Keng-Wei Chang, Jebediah Pavleas

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

CHAPTER 3

image

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

Introduction

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

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