Th3R3al0 / game-base-2D

A base structure for polished 2D games in Godot 4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Game Base 2D for Godot 4

Check out the wiki for more info on how to use everything in this repo!

About


A base structure for 2D games using Godot 4.

It aims to include everything needed to create a polished 2D game, from movement scripts to screen postprocessing shaders, while leveraging the new features of Godot 4 and using a clean, scalable and extensible code architecture.

Install ๐Ÿ’ป


This repo uses Godot 4.1 and above!

Simply fork this repo and start working on your game! Some sample scenes are available under scenes/samples.

Content


Samples ๐ŸŽฎ

  • A scene showcasing post-processing effects
  • A simple top-down scene
  • A simple platformer scene
  • A simple platformer character scene with a basin animation state machine setup

Game systems ๐Ÿ”ง

  • A simple audio manager
  • Scene transition system with some cool effects!
  • A save system. Simply add nodes you want to save to a "Saveable" group to mark them for save!

UI ๐Ÿ“

  • A main menu
  • A settings menu with audio sliders
  • A pause menu
  • Save/Load game buttons
  • An dialog box for NPC and object interations
  • A shader based minimap!

Movement ๐Ÿƒ

  • Top-down movement
  • Side scroller movement with coyote jump and jump buffering

Shaders ๐ŸŽจ

  • Scene transition shaders
  • Post processing shaders, including blur, chromatic aberration, CRT effect and vignette
  • Shaders for in game effects, such as color flickering, color replace, 2D shake and outlines

Camera ๐ŸŽฅ

  • Camera following
  • Camera 2D shake
  • Camera areas (the camera will stay in bounds while the player is inside that area)

About

A base structure for polished 2D games in Godot 4

License:MIT License


Languages

Language:GDScript 100.0%