Game Development Reference
In-Depth Information
Figure 6-4. Playing the attack animation
Note Remember, all code in this chapter is included in the topic companion files at
Chapter06/AssetsToImport/ .
Cameras: Layers and Rendering
If you take a look at Figures 6-3 and 6-4 , you'll likely see a potential problem emerging for the Player
weapons. Specifically, the Player weapons (whether a fists/punch or a gun) should (1) always appear
at the screen middle-bottom, and (2) appear at a consistent and believable size (see Figure 6-5
for an example). Right now, Figures 6-3 and 6-4 show just how large the weapon sprites appear in
relation to the scene. And if the scene is played right now, the weapons are not appropriately aligned
on the screen either. Let's address the second problem first.
 
Search WWH ::




Custom Search