Template for Godot web games on Crap.Games - dude
- Godot Engine 4.5.1
- Git
- GitHub account
-
Create a new repository
- Create a new repository on GitHub
- Clone it to your local machine
-
Initialize with Copier
pip install copier copier gh:yourusername/crap-games-template .Answer the prompts to configure your game.
-
Set up your Godot project
- Create a new Godot project in the
godot_web_gamedirectory - Configure your export presets for Web platform
- Make sure to set the export path to
res://build/web/index.html
- Create a new Godot project in the
-
Commit and push
git add . git commit -m "Initial commit" git push -u origin main
-
Run the game locally
- Open the project in Godot
- Press F5 to run the game in the editor
-
Export for Web
./export_web.sh
This will create a web build in
godot_web_game/build/web/
This project includes GitHub Actions workflows for:
- Deploy Web Build: Automatically builds and deploys the game to GitHub Pages on push to
main - Register Game: Registers the game with the Crap Games registry
The game will be automatically deployed to https://test.crap.games when you push to the main branch.
This project is licensed under the MIT License - see the LICENSE file for details.