Template project for Godot 4.
Copy project and replace CHANGEME in project.godot with your project
name. Open in Godot and you're done! 🚀
More details for nerds 🤓
The following commands require Make and Nix, but it can easily be ran without them, check the contents of the Makefile for how to run formatting manually.
$ make help
Available targets:
format - Format all gdscript files
check - Check formatting of all gdscript files
Example structure for organizing a Godot project:
File tree:
godot-template/
├── assets/ # Asset files (textures, icons, sprites, sounds, etc.)
│ └── ...
├── objects/ # Reusable game objects and components
│ └── ...
├── scenes/ # Game scenes and levels
│ └── ...
├── scripts/ # GDScript files
│ └── ...
└── project.godot # Godot project configuration
Naming Conventions:
- Root Node: PascalCase (e.g.,
Player,MainMenu,GameLevel) - File Names: snake_case matching the root node (e.g.,
player.tscn,main_menu.tscn,game_level.tscn) - Script Files: snake_case (e.g.,
player.gd,enemy_controller.gd) - Directories: snake_case, always lowercase (e.g.,
assets/,scenes/,scripts/)