Learning Java by Building Android  Games
上QQ阅读APP看书,第一时间看更新

Android Coordinate system

As a graphical means for explaining the Android coordinate drawing system, I will use a cute spaceship graphic. We will not suddenly be adding spaceships to Sub' Hunter but we will use the graphics that follow in the fifth project starting in Chapter 18, Introduction to Design Patterns and much more!.

As we will see, drawing a Bitmap is trivial. But the coordinate system that we use to draw our graphics onto needs a brief explanation.