Platform Game and 3D Fly-through Revisited

How the completed file works:

File #1: Convert the platform game into OOP version

Basic requirements:

  1. Make the coin into objects from a Coin class.
  2. Make the box into objects from a Box class.



Extra Effort

Extra #1: Apply inheritance and polymorphism to the OOP platform game

Relate the Coin and Box classes with inheritance. Apply polymorphism when needed.

 

Extra #2: Add extra new features to the 3d fly-through

Here are some possible extra features:

  1. Make objects (of one class) all clickable. Hint: Write event listener code inside the class.
  2. Make it such that you cannot go through trees. When you collide with a tree, you bounce backward a little.
  3. Make an object lay flat on the ground, like a finishing line, an oil spill, a water puddle, or a lake. Hint: Look up rotationX in ActionScript.