Player - Richardng12/Terra_Tales GitHub Wiki

Player Movement

Basic

The player has basic movement capabilities that consist of running left and right as well as jumping.

To move the player use the left and right arrow keys and to jump use the up arrow key.

Advanced

  • The player can double jump by pressing the up arrow twice. The double jump only resets when the player touches the ground.
  • The player can also scale a wall by pressing the up key with left or right key (depending on wall direction) repeatedly.

Health

The player has a health system where the player is provided with five hearts at the start of every level.

Lives are lost on contact with the "enemy" which is dependent on the level. Fire sprites are found in the forest, oil sprites in the ocean level, and acidic clouds in the city level.

Lives can be gained on each sustainability action, such as planting trees, managing energy usage, and cleaning up trash to signify that the change has a positive on our health overall.

Player Actions

Special Power (Water)

The player has a special ability that can shoot water bubbles. The player can see their charges in the bottom right area of the screen. You can use this ability by pressing the spacebar key and a water bubble will appear and move in the direction the character is facing.

Recharging Power

In the forest level, the player gets dehydrated as there are many fires around. The player only has a limited amount of charges for his special power. To recharge the power there are puddles scattered around and will slowly regenerate the charges back to full if the player stands on them.

Item Interaction

Throughout the different levels, the player can interact with the game world. By pressing the e key the player can complete different tasks throughout each level.

NPC Interaction

The player can talk to an NPC by pressing the interaction button.