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.
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:
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 aKinematicBody2D
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:A fixed movement direction
The normal of a
KinematicBody2D
collision[x] Add gravity
[x] Add jump