This document covers the initial setup for developing and testing the project on Windows 10 64-bit.
- Godot Engine: v4.5 stable (download from godotengine.org/download).
- GitHub Desktop: v3.5 (for repo cloning/management).
- Docker Desktop: v4.45 (for local web testing).
- PyCharm Community Edition: 2024.1.7 (optional, for editing files like GDScript/Markdown).
- Windows PowerShell: For running Docker commands (built-in).
To enforce security:
- Go to repo
settings>Branches> Add rule formain. - Enable "Require signed commits."
This blocks unsigned pushes, ensuring trustworthy Godot exports.
- Open GitHub Desktop.
- Clone the repo: URL = https://github.com/ikostan/SkyLockAssault.
- Open the project in Godot: Launch Godot > Import > Select
project.godotin the cloned folder.
- In Godot Editor: Go to Editor > Manage Export Templates.
- Download the templates for version 4.5 (or manually from godotengine.org/download/archive/4.5-stable).
- This enables HTML5/Web exports for Milestone 3 features.
Troubleshooting: If templates fail to download, ensure internet access and restart Godot.
- In Godot Editor:
Go to
AssetLib (top menu) > Search for "GDUnit4" > Install v5.1.1. - Restart Godot to enable.
- Create a
tests/folder in the project root for unit tests (e.g.,test_quit.gd).
This is required for automated testing in Milestone 3.
- In Godot: Project > Export > Add Preset > Select "Web".
- Set Export Path:
export/web/index.html(createexport/web/if needed). - Enable "Runnable" and export the project.
- This generates files like index.html, .wasm for browser deployment.
- Install Docker Desktop if not already (from docker.com).
- In PowerShell: Navigate to repo root >
cd infra/. - Run:
docker compose up -d(starts a local Nginx server). - Open browser: http://localhost:9090 (view the exported game).
- Stop:
docker compose down.
Notes: For fullscreen testing, note the harmless console warning on desktop (ignored per Issue #100). Test quit handling here before itch.io deploy.
- PyCharm: Open the repo folder for editing
GDScript/Markdown. No special config needed. - GitHub Actions: Enabled via
.github/workflows/, runs onpush/PRforlint/test/deploy.
Once set up, run the game in editor (F5) or web export. For issues, check Godot console or browser dev tools (F12).