2D Platformer Demo (KinematicBody)

An asset by Godot Engine
The page banner background of a mountain and forest
2D Platformer Demo (KinematicBody) hero image

Quick Information

0 ratings
2D Platformer Demo (KinematicBody) icon image
Godot Engine
2D Platformer Demo (KinematicBody)

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 demo’s 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.Language: GDScriptRenderer: GLES 3 (particles are not available in GLES 2)

Supported Engine Version
3.4
Version String
3.4-b0d4a7c
License Version
MIT
Support Level
official
Modified Date
2 years ago
Git URL
Issue URL

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 demo’s 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: GLES 2

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

Features

  • Side-scrolling player controller using KinematicBody2D.
    • 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 level’s 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

README Player shooting in the direction of an enemy

README The entire level layout viewed in the editor

Music

"Pompy" by Hubert Lamontagne (madbr) https://soundcloud.com/madbr/pompy

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 demo’s 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.

Language: GDScript

Renderer: GLES 3 (particles are not available in GLES 2)

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
2D Platformer Demo (KinematicBody) icon image
Godot Engine
2D Platformer Demo (KinematicBody)

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 demo’s 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.Language: GDScriptRenderer: GLES 3 (particles are not available in GLES 2)

Supported Engine Version
3.4
Version String
3.4-b0d4a7c
License Version
MIT
Support Level
official
Modified Date
2 years ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers