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.
- 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.
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.
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
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
or0.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
- 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
Interface > Inspector > Default Color Picker Mode
HSV
Interface > Inspector > Default Color Picker Shape
HSV Rectangle
Run > Window Placement
- Screen:
Next Screen