An open API service indexing awesome lists of open source software.

https://github.com/slayhorizon/godot-2d-platformer-demo

A simple open-source 2D platformer demo built in Godot 4.x, initially designed as educational material.
https://github.com/slayhorizon/godot-2d-platformer-demo

educational educational-game godot godot4 platformer

Last synced: 6 months ago
JSON representation

A simple open-source 2D platformer demo built in Godot 4.x, initially designed as educational material.

Awesome Lists containing this project

README

          

# 2D Platformer Demo (Godot 4.4 only)

This **open-source 2D platformer demo** was originally created as an educational project for a school lesson.
It is now freely accessible for anyone to explore, learn from, and modify.

![411270231-e2cbc3d7-36ad-466b-b927-05d2405c129c](https://github.com/user-attachments/assets/c0ff6526-d402-4b85-a378-53434a0f8e15)

## Features & What You Could Learn

### Player
- **State Machine**:
A simple **state machine** system that controls player behavior, implemented using **callback functions**.
- **Smooth Platformer Movement**:
Implementations of **double jump**, **wall slide**, and **wall jump** mechanics.
- **Custom resources** for defining multiple playable characters with unique skins

### Game Systems
- **Collectibles**
- **Moving platforms**
- **Grid-based camera**
- **HUD**:
A basic **Heads-Up Display (HUD)** showing the score, along with interactive buttons for **music control** and **level reloading**.
- **Music Player**:
A simple script to control background music within the game.
- **Shaders**:
Use of shaders for effects like **scene transitions** and **scrolling textures**.

### Godot-Specific
- Use of **`@tool` scripts**:
Various use cases of **`@tool`** scripts within this project.
- **Custom addon/plugin**:
Includes a custom addon that allows you to easily place different collectibles around the map, similar to using a TileMap.
- **Event Bus (Autoload)** for centralized event handling:
Show a simple way to centralize event handling.

### Bonus
- **Automated Build & Deployment**:
Automate your game builds and publish to **itch.io** with a single click, thanks to **GitHub Actions** integration.

## License

Project’s source code under **MIT License**.
Asset-specific licenses and credits are listed in their respective folder.

---

Let me know if you need any more refinements or feel free to contribute if you want to fix anything or extend it.