-
Notifications
You must be signed in to change notification settings - Fork 0
Player Movement
The Cabbage should have the following abilities:
Run
By pressing left/right, the player moves horizontally with a certain acceleration and maximum speed. Aerial mobility is the same as ground mobility.
Jump
By pressing the jump button while on the ground, the player will do a jump. The jump height can be controlled by holding or not holding the jump button. The jump is refreshed when touching the ground. The jump should carry momentum from a moving platform.
Double Jump
In the air, the player can jump a second time. The physics of the double jump is equivalent to the normal jump. The double jump is not possible while carrying.
Duck
While on the ground, by holding down, the player shrinks to about half the normal height. Collision is detected according to the new size. The player cannot move or jump while ducking.
Roll
While on the ground, by pressing the roll button, the player will gain a quick boost of speed in the direction of input (or if there is none, the direction they are facing). Rolling speed should be faster than running speed. The roll should continue even if the player leaves the ground. The player should not bonk when hitting the side of a wall while in a roll. The player can cancel a roll by jumping, carrying the momentum of the roll into the air. The player should not be able to roll while carrying a totem.
Pick Up
While on the ground and facing a totem, by pressing the interact button, the player will pick up the totem and place it above their head. The grab animation should freeze the player's physics for a short period but resume with the same momentum afterward. The player's collision hitbox is extended to include the carried totem. The player should not be able to pick up a totem if there is not enough space above their head to put it.
Drop
While carrying a totem and ducking on the ground, by pressing the interact button, the player will place the totem in front of them, or if there is no space, leave the totem on top of them. The player should not be able to move while dropping the totem.
Throw
While carrying a totem, by pressing the interact button, the player will throw the totem in the direction of input (or if there is none, in the direction they are facing). The totem should travel through the air in an arc until hitting the ground, where it should stop.