Game in godot
.
├── addons
├── audio
├── images
├── project.godot
└── ui
├── main_screen
└── menus
├── difficulty
├── main_menu
└── pause_menu
addons
used to saves Godot plugins, as suggested in Godot docs
project.godot
conf file used by Godot editor, auto-generated with a new project
audio
shared audio between every scene of the Game
images
shared images between scenes of the Game
ui
contains all sceene of the Game
main_screen
scenes related to the map of the Game
menus
contains all the menus scenes of the Game
difficulty
difficulty menu
main_menu
the first menu shown when you launch the game
pause_menu
menu shown when you pause the game while you play
Every new .gd
and .tscn
should be placed in the respective folder in according to this structure
We follow the Godot Style Guide here
Every new folder and file names should be named following snake_case convention
For node name use PascalCase
Variable and function name should use snake_case
Use tab for indentation
Use this extension for vsCode
Steps above are not needed since the required plugin is already in repo:
Steps to activate GUT
Here the steps to run tests using Godot
Directory 0
to res://test
Script Prefix
to test_
Following steps are required to executes via CLI. Please, install scoop
following "Install scoop" section before proceed with CLI tests execution
Execute cd
command to move to the current project directory
Execute the following command to run tests on res://test/
containing prefix file name test_
godot -d -s --path ./ addons/gut/gut_cmdln.gd -gdir=res://test/ -gprefix=test_ -gexit_on_success
scoop
is required only if executing godot tests using CLI. Here powershell commands to install it:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
irm get.scoop.sh | iex
scoop bucket add extras
scoop install godot