Skip to content

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

Notifications You must be signed in to change notification settings

MishaBP/godot-2d-platformer-demo

 
 

Repository files navigation

2D Platformer Demo (Godot 4.x)

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

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

This project’s source code is released under the MIT License, allowing free use, modification, and distribution.
Asset-specific licenses and credits are listed in their respective license.txt files.


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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • GDScript 100.0%