Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remake the 2d platformer demo #405

Merged
Merged
29 changes: 29 additions & 0 deletions 2d/platformer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# 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.

## Features

- Side-scrolling player controller.
- 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

![Player shooting in the direction of an enemy](screenshots/shoot.png)
![The entire level layout viewed in the editor](screenshots/layout.png)
268 changes: 0 additions & 268 deletions 2d/platformer/Stage.tscn

This file was deleted.

243 changes: 0 additions & 243 deletions 2d/platformer/TileSet.tres

This file was deleted.

Loading