2D platformer in Godot
An original side-scrolling platformer with running, jumping, enemies, collectibles and two levels.
Intermediateâą 15â25 hoursđĒ 7 stepsGodot 4GDScript
What you'll learn
- âScenes and nodes in a game engine
- âCharacterBody2D movement and tilemaps
- âSignals, UI and level design
What you'll build
- âSmooth player movement with coyote time
- âEnemies that patrol
- âCoins and a level exit
- âMain menu, HUD and game over
Step-by-step guide
- 1
Install Godot 4
Create a project; make a Player scene with CharacterBody2D, a sprite and a CollisionShape2D.
- 2
Movement
In _physics_process apply gravity, read input for left/right, jump when is_on_floor(), then move_and_slide().
- 3
Feel
Coyote time (jump a few frames after leaving a ledge) and jump buffering make controls feel good.
- 4
Level
TileMapLayer with a tileset (use free CC0 assets, for example from Kenney); add collisions to tiles.
- 5
Enemies and coins
Area2D nodes; on body_entered emit signals to the game to add score or damage the player.
- 6
UI
CanvasLayer HUD with score and lives; menu and game-over scenes; change_scene_to_file to switch.
- 7
Export
Export for Windows and the web (HTML5) and upload to itch.io.
đ Make it stand out
- +Moving platforms and checkpoints
- +Boss fight
- +Save progress