Game Development Reference
In-Depth Information
Project 7
Forge a Destructible and
Interactive Virtual World
Most games need an environment to create the feeling and experience for the players of the
game's world. In games, we can also call it a level. It can interact with the player as well. The
level will create the difficulty and challenges for the players to play through and finish the
game. Each level will include staic and non-staic objects. The staic objects include houses,
buildings, bridges, trees, and so on, and won't be movable. On the other hand, non-staic
objects will interact with the player, and include rocks, doors, switches, and so on.
In many cases, we will see that games use the non-staic objects to make the level much
more fun to play by adding the events or triggers to the objects and making them interact
with the players. For example, the players have to push the switch to open the door, or get
blocked because the bridge was destroyed when the player triggered the event. We can also
add physics to the non-staic objects to make the objects behave realisically, such as adding
physics to the rocks when they are falling down to the ground.
In this chapter, we will coninue from the last chapter to opimize our AIController script
and add the ragdoll object to replace the AI when it dies. Then, we will create a destrucible
rock that will trigger when the player gets close to it, and a destroyable rock that the player
and AI can shoot and destroy. We will also create the ragdoll character object for the AI to
behave realisically when he is killed by the player.
Search WWH ::




Custom Search