Seth Louis ea37c101e0 Fix Z Index on platforms in 2D platformer demo (#927) 1 年間 前
..
enemy ffd600917d Update, clean up, and reorganize the 2D platformer 2 年 前
gui 167e1d391b Add missing return types in platformer's pause_menu.gd 2 年 前
level ea37c101e0 Fix Z Index on platforms in 2D platformer demo (#927) 1 年間 前
player ffd600917d Update, clean up, and reorganize the 2D platformer 2 年 前
screenshots ffd600917d Update, clean up, and reorganize the 2D platformer 2 年 前
README.md ffd600917d Update, clean up, and reorganize the 2D platformer 2 年 前
game.gd ffd600917d Update, clean up, and reorganize the 2D platformer 2 年 前
game_singleplayer.tscn ffd600917d Update, clean up, and reorganize the 2D platformer 2 年 前
game_splitscreen.gd ffd600917d Update, clean up, and reorganize the 2D platformer 2 年 前
game_splitscreen.tscn ffd600917d Update, clean up, and reorganize the 2D platformer 2 年 前
icon.webp ffd600917d Update, clean up, and reorganize the 2D platformer 2 年 前
icon.webp.import ffd600917d Update, clean up, and reorganize the 2D platformer 2 年 前
music.ogg ffd600917d Update, clean up, and reorganize the 2D platformer 2 年 前
music.ogg.import ffd600917d Update, clean up, and reorganize the 2D platformer 2 年 前
music.tscn ffd600917d Update, clean up, and reorganize the 2D platformer 2 年 前
project.godot 0a84347d11 Sorted tags 1 年間 前

README.md

2D Platformer

This demo is a pixel art 2D platformer with single-player and two player splitscreen multiplayer.

It demonstrates 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 collect items. It contains one level. The player is invincible, unlike the enemies.

Language: GDScript

Renderer: Forward Plus

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

Features

  • Side-scrolling player controller using CharacterBody2D.
    • Can walk smoothly up and down slopes.
    • Can shoot, including while jumping.
    • Has a double jump that provides a horizontal momentum boost.
  • Enemies that crawl on the floor and change direction when they encounter an obstacle.
  • Camera that stays within the level’s bounds.
  • Keyboard and gamepad control support.
  • Platforms that can move in any direction.
  • Gun that shoots bullets with rigid body (natural) physics.
  • Collectible coins.
  • Pausing and a pause menu.
  • Pixel art visuals.
  • Sound effects and music.

Screenshots

Player shooting in the direction of an enemy

The entire level layout viewed in the editor

Music

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