pigdevstudio / moon-cheeser

Moon Cheeser is an infinite runner where the player plays as a mouse gathering cheese pieces and avoiding craters and other astronomical objects, such as comets and planets, on a moon made of cheese.
https://pigdev.itch.io/moon-cheeser
The Unlicense
38 stars 4 forks source link

Implement actor's physics #9

Closed henriiquecampos closed 5 years ago

henriiquecampos commented 5 years ago

The actor's physics are not complex, it will be affected by gravity and will be able to jump.

I think it would be a good idea to have a Gravity node that is responsible for moving a KinematicBody2D towards a given direction at a given velocity, accelerating it.

Then for the jump it can be a simple Command that, when executed, applies an impulse to a KinematicBody2D using a strategy. These strategies will be:

henriiquecampos commented 5 years ago

closed at 3911b6ab82318f28ec929a2a37c920acc20dee8b