December 2016
Intermediate to advanced
376 pages
9h 5m
English

This chapter goes over some simple mathematical concepts you will use in the rest of this book. In two-dimensional (2D) games, the graphics on the screen can move left or right and up or down. These games need a way to translate a place on the screen into integers the program can deal with.
This is where the Cartesian coordinate system comes in. Coordinates are numbers that represent a specific point on the screen. These numbers can be stored as integers in your program’s variables.