Code Monkey home page Code Monkey logo

game-base-2d's Introduction

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)

game-base-2d's People

Contributors

guilhermegsousa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

game-base-2d's Issues

Some Issues I Found.

Hi, I found some issues according to Camera scripts. I recorded a video for you.
2023-10-31 21-46-01.zip

  • camera_targeter.gd must use _physics_process()
  • camera_shaker.gd must use _physics_process()
  • _update_camera_zoom() function probably has some problems. I think you should not use it in any process() function. Zoom should be calculated only once.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.