🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101

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. 1

    Install Godot 4

    Create a project; make a Player scene with CharacterBody2D, a sprite and a CollisionShape2D.

  2. 2

    Movement

    In _physics_process apply gravity, read input for left/right, jump when is_on_floor(), then move_and_slide().

  3. 3

    Feel

    Coyote time (jump a few frames after leaving a ledge) and jump buffering make controls feel good.

  4. 4

    Level

    TileMapLayer with a tileset (use free CC0 assets, for example from Kenney); add collisions to tiles.

  5. 5

    Enemies and coins

    Area2D nodes; on body_entered emit signals to the game to add score or damage the player.

  6. 6

    UI

    CanvasLayer HUD with score and lives; menu and game-over scenes; change_scene_to_file to switch.

  7. 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