12THE CARTESIAN COORDINATE SYSTEM
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.
Get Invent Your Own Computer Games with Python , 4th Edition 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.