thomas-alrek / JSGame

JavaScript + Canvas 2D game engine
GNU General Public License v2.0
56 stars 6 forks source link

Implement simple physics class #9

Open thomas-alrek opened 8 years ago

thomas-alrek commented 8 years ago

GameObject should have a Physics prototype, that implements a crude physics engine. This engine should also take into consideration each GameObjects rotation, if possible, and implement methods such as addForce().

We might consider addign support for friction too.

thomas-alrek commented 8 years ago

Use this as a reference http://gamedevelopment.tutsplus.com/tutorials/how-to-create-a-custom-2d-physics-engine-the-basics-and-impulse-resolution--gamedev-6331