5. Drawing and Sprites
We’ve been using Sprites all along in our examples and in the development of V3, but now we’ll spend some time exploring them in much more detail. As this chapter explains, AndEngine has methods for creating Sprites, Animated Sprites, and Tiled Sprites. We also want to take a brief look at the methods for drawing primitive graphic objects, such as lines and rectangles.
Most of the objects that are drawn on the screen during your game are Sprites. The term “sprite” originally referred to independent graphical objects that were positioned and animated on top of a game background. As computer games evolved, however, the term came to be used for just about any graphical object. For example, the backgrounds for our AndEngine ...
Get Learning Android Game Programming: A Hands-On Guide to Building Your First Android Game 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.