Skip to content

TobinFrost/godot-game-template

Repository files navigation

game-template-overview

🌟 You make games, the template handles the boring stuff.

Godot Download badge GitHub release (latest by date) GitHub workflow status Play store badge Play store badge

Get started

  1. 💻 Create a new repo using this template
  2. Clone the new repository locally
  3. Open the project in Godot (GDScript)
  4. Done

Read the wiki to learn more.

Used by

Logo Title Play it! Source
YouAreUto icon YouAreUto (2019) Android, iOS GitHub
Defending Todot icon Defending Todot (2020) HTML5 GitHub
Karooto No Gase icon Karooto No Gase (2021) Android, Itch.io N/A
Godot Game Template Demo demo-godot-game-template (2021) Android GitHub

Get in contact if you want to be featured here!

Changelog

Features

  • Continuos Integration:
    • Automatic desktop build (linux, windows, osx, HTML5)
    • Automatic HTML5 deploy to Github pages
    • Automatic HTML5 deploy to itch.io
    • Automatic Android builds
  • Scenes loading with graphic transitions (fade-in/out)
    • Send parameters to the new scene
    • Input prevention during scene changes
    • You can still play individual scenes for quick development
    • Singlethread & Multithread
  • Game pause handling
  • .gitignore
  • Follows official GDScript guidelines (tested with gdlint)
  • Compatible with other Godot addons

How to

Change scene

Game.change_scene("res://scenes/gameplay/gameplay.tscn")

change_scene

Change scene and show progress bar

Game.change_scene("res://scenes/gameplay/gameplay.tscn", {
  "show_progress_bar": true
})

progress

Change scene and pass parameters

# you can pass whatever value you like: int, float, dictionary, ...
var params = {
  "level": 4,
  "skin": 'dark'
}
Game.change_scene("res://scenes/gameplay/gameplay.tscn", params)
# gameplay.gd

func pre_start(params):
   print(params.level) # 4
   print(params.skin) # 'dark'
   # setup your scene here

To learn more about all the features, read the wiki.

Center a Node2D into the viewport

$Sprite.position = Game.size / 2

Contributors

Many features were implemented only thanks to the help of:

Also many tools were already available in the open source community, see the Thanks section.

Contributing

Development of new versions is made on the dev branch.

If you want to help the project, create games and feel free to get in touch and report any issue.

Discord

You can also join the Discord server (#godot-game-template channel).

Before adding new features please open an issue to discuss it with other contributors.

Thanks

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published