Game Development Reference
In-Depth Information
Illustration 92: Weapon switching and reloading demo
Exercises
1. Create a physics door (using hinge joint) that needs two collectable keys to be
opened. You can either modify existing scripts used in section 5.1 or write your own
scripts to implement the functionality.
2. Create an unlock puzzle that depends on placing three boxes at specific positions on
the ground. When the player pushes these boxes to their correct positions, a sliding
door opens automatically.
3. Write a script that randomly drops health packs for the player in the game we de-
veloped in section 5.3. Each health pack increases player's health by 15, and the player
must touch the health pack to collect it. However, if a projectile hits the health pack it
must be destroyed immediately.
Search WWH ::




Custom Search