Code Monkey home page Code Monkey logo

godot-game-template's Introduction

Godot-Game-Template | 4.2.2

The purpose of this project is to have a template with a ton of boilerplate code that most games will use. Whether that's common shaders, UI elements, movement code, etc. This will have all kinds of code for any project to get off the ground and running. Since it includes 2D and 3D, as well as multiple genres, this repository will hopefully make it easy to clone and simply delete the code you won't need for your game. Making it perfect for new projects, prototyping, and Game Jams.




Notes

  • The project is setup to work with LFS and I have included the necessary .gitattributes file for you. It includes several common things that may change often that you would want in LFS, but you can always add more.



Editor Settings

In order to make things as consistent as possible we need similar settings. Most of the critical ones are changed in the project.godot file, but some can be configured in your editor and affect everything you work on (I think). Most of these settings are personal preference, but I'd like to think I have good reason to use them. All you need to do first is navigate to the Editor > Editor Settings menu to get started.


Must haves

Text Editor > Behavior > Files

  • Trim Trailing Whitespace on Save: ON
    • This removes the random tabs and spaces at the end of lines that often shows up

Text Editor > Completion

  • Use Single Quotes: ON



Nice to haves

Text Editor > Appearance

  • Show Line Length Guidelines: OFF
    • By default the editor has 80 and 100 character guidelines. Personally, I find them annoying

Text Editor > Completion

  • Idle Parse Delay: 1 or 0.5
    • If you've used Godot a while, you'll know that there's a noticeable delay between when you type something and when Godot will complain that it's wrong or there's an error. This setting decreases that time and makes Godot feel a lot more responsive

Text Editor > Behavior > Navigation

  • Scroll Past End of File: ON
    • This will make it so the editor scrolls past where your code ends without having to add a bunch of lines. Makes things a little easier to read
  • Auto Reload Scripts on External Change: ON
    • This is probably the handiest feature. When editing files outside of Godot, this will reload all of them automatically in Godot. Normally, Godot will only reload files that are currently open in Godot (scenes, scripts, etc). This makes it so that everything is reloaded regardless of whether it is open or not

Text Editor > Script List

  • Sort Scripts By: None
    • When working with multiple scripts open at once, I find it easy to move them around and organize them in the inspector, but when you save, Godot will re-sort those scripts based on this setting. By putting None, you tell Godot to not sort them which is super helpful

Interface > Inspector > Default Color Picker Mode

  • HSV

Interface > Inspector > Default Color Picker Shape

  • HSV Rectangle

Run > Window Placement

  • Screen: Next Screen

godot-game-template's People

Contributors

masonstooksbury avatar

Watchers

 avatar

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.