Game Development Reference
In-Depth Information
Illustration 35: The coin we are going to use
The coin is now collectable, which means that collisions with collector can be detected.
Additionally, it has the y-rotation feature, so it is going to rotate in its position around
the global y. We need now to specify happens when a collector tries to collect this coin.
Obviously, it is going to increase the amount of money the collector has in his inventory
box. Therefore, I am going to begin with InventoryBox script shown in Listing 29.
Search WWH ::




Custom Search