4. Scenes, Layers, Transitions, and Modifiers
In a movie or play, a scene is a setting where some action takes place over a constrained period of time. Computer games are also organized around scenes, and scenes are composed of layers of graphics. If you’ve ever edited your own video, you know that there are many ways to transition from scene to scene, to make the flow more interesting for the viewer. Similarly, in a computer game, we want to transition between scenes, and we want to be able to modify graphical elements in a uniform way. We’d like to be able to modify their position, scale, color, rotation, transparency, and perhaps path. This chapter looks at how AndEngine lets us create and modify scenes and graphical objects.
Scenes in 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.