grapefruitjs / grapefruit

Outdated, I recommend you use photonstorm/phaser instead!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Premade Controls

englercj opened this issue · comments

To alleviate the burden of making your player move and the tricks necessary to have Chipmunk perform properly, there should be premade controls. These should properly implement movement for a character and allow configurable keys to control them.

There should also be "goal movement" to be able to tell sprites that are not controlled to mvoe to a location using the phys system. This should be abstracted away from the user (via moveTo(x, y))?

Some controls:

  • Top-Down Controls, no gravity control-body based movement
  • Platformer Controls, surface velocity based movement with gravity/jumping

TopDownControls are completed; working on PlatformerControls now.

Finished!