Content-Length: 256597 | pFad | http://github.com/endlessm/godot-block-coding-demos/tree/main/game-03

1E godot-block-coding-demos/game-03 at main · endlessm/godot-block-coding-demos · GitHub
Skip to content

Latest commit

 

History

History

game-03

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Platformer demo

About

This is a platformer game. The goal is to stay in the level, keep alive. When the player collects enough coins and reaches the flag, then wins the game.

Implementation

The world is built with tilemap style.

The player is implemented with SimpleCharacter node. So, using W, A, D to jump and move left & right.

Check the player is on floor and velocity to play walk, or jump animation in the AnimationPlayer.

The collected coins and the player's lives are implemented with SimpleScoring nodes.

The player enters a coin to collect the coin. It increases coins' score and vanish the coin. When the player collects enough coins and enters the flag's area, shows "You Win!" label.

The enemies walk back and forth by setting the enemy's terminal positions within AnimationPlayer's "move" animation and playing it automatically.

The player has a HitArea at the foot. If any enemy enters into the HitArea, the enemy's vanish_enemy method will be invoked to vanish the enemy.

The enemies define their HitArea, too. If the player enters into the HitArea, nodes in HUD group will invoke their own decrease_a_life method to decrease one life.

When the player enters an enemy's HitArea or drops down into the Dangerzone, the lives' score decreases one. If there is no more life, shows "You Lose!" label.

When the player stands on the floating platform (the player enters a thin area on top of the platform), it triggers shake platform animation and drops down.









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/endlessm/godot-block-coding-demos/tree/main/game-03

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy