Game Development Reference
In-Depth Information
5
Advanced Game Logic
Introduction
In chapter 3, we learned some basic mechanics that lots of games need. We continue in
this chapter with even more mechanics and learn how to program them. The topics intro-
duced in this chapter have been delayed until we discuss physics simulation and collision
detection, since these topics depend on detecting collisions. For instance, it does not make
sense to discuss doors and locks if these doors do not block player's movement.
After completing this chapter, you are expected to:
-
Make doors, locks, and keys
-
Program simple puzzles and unlock combinations
-
Program player's health, lives, and score
-
Program different types of weapons with ammo and reload mechanism
Search WWH ::




Custom Search