Giter Site home page Giter Site logo

godot-game-template's Introduction

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

godot-game-template's People

Contributors

andrea-miele avatar andrea1141 avatar davcri avatar fahien avatar jrassa avatar vini-guerrero 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.