Files
Hugo Locurcio b4eff8de9d Update all demos for Godot 4.6, fix Global Illumination demo
- Rebake lightmaps in Global Illumination demo with supersampling
  to improve quality.
- Increase SDFGI quality in the Global Illumination demo
  (slightly more demanding, but better matches the quality standards
  of 2026).

All demos had Project > Tools > Upgrade Project Files ran on them
with 4.6.stable (4.6.stable.mono for demos in the `mono/` folder).
2026-02-10 23:56:35 +01:00
..
2025-10-11 05:03:59 -07:00

2D Platformer

This demo is a pixel art 2D platformer with graphics and sound.

It shows you how to code characters and physics-based objects in a real game context. This is a relatively complete demo where the player can jump, walk on slopes, fire bullets, interact with enemies, and more. It contains one closed level, and the player is invincible, unlike the enemies.

You will find most of the demos content in the level.tscn scene. You can open it from the default game.tscn scene, or double click on level.tscn in the src/level/ directory.

We invite you to open the demo's GDScript files in the editor as they contain a lot of comments that explain how each class works.

Language: GDScript

Renderer: Compatibility

Check out this demo on the asset library: https://godotengine.org/asset-library/asset/120

Features

  • Side-scrolling player controller using CharacterBody2D.
    • Can walk on and snap to slopes.
    • Can shoot, including while jumping.
  • Enemies that crawl on the floor and change direction when they encounter an obstacle.
  • Camera that stays within the levels bounds.
  • Supports keyboard and gamepad controls.
  • Platforms that can move in any direction.
  • Gun that shoots bullets with rigid body (natural) physics.
  • Collectible coins.
  • Pause and pause menu.
  • Pixel art visuals.
  • Sound effects and music.

Screenshots

2D Platformer

Music

Pompy by Hubert Lamontagne (madbr)