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

Port the gravity system #7

Closed henriiquecampos closed 5 years ago

henriiquecampos commented 5 years ago

In Moon Cheeser big objects interfere in the Actor movement by applying an acceleration force towards their center of mass. This happens whenever the actor enter in the area of effect of said gravity.

The acceleration increases as the character gets closer to the center of the object.