A portrait mobile crowd shooter. Design: DESIGN.md. Research: RESEARCH.md.
Play in the browser: https://solutionsunity.github.io/gunlord/ (phones too).
Android: the signed APK from the latest release,
or from the latest build run.
Every push to main rebuilds and redeploys both; a v* tag publishes a release.
Pages deploys from main only, so push a release's tag together with main
(git push origin main vX.Y.Z); a tag pushed alone leaves the site on the previous version.
Problems met so far, each with its cause and fix, are the closed issues. Search them before changing the web build, audio or balance; file new ones before working on them.
Requires Godot 4.7.
First run: bake the crowd characters (generated, not committed). Without them the game still runs, with placeholder capsules.
The simulation and the drawing of crowds are a native library, native/ (C++,
GDExtension, godot-cpp 10): build it for the platform you run on before the
first import. CI builds it for Linux, the web (Emscripten 4.0.20, the version
Godot's 4.7 web templates use) and Android (NDK 28.1.13356709). Give each
platform its own godot-cpp checkout: godot-cpp lays its generated bindings out
for the first platform built, and a library built on another platform's layout
crashes Godot as it loads.
git clone --branch 10.0.0-stable https://github.com/godotengine/godot-cpp godot-cpp-linux
cd native && GODOT_CPP=../godot-cpp-linux scons platform=linux target=template_release api_version=4.7
# web: GODOT_CPP=../godot-cpp-web scons platform=web threads=no target=template_release api_version=4.7
# Android: GODOT_CPP=../godot-cpp-android scons platform=android arch=arm64 target=template_release api_version=4.7
godot --headless --path . --import
godot --headless --path . -s tools/bake_crowd.gd
| Task | Command |
|---|---|
| Play in the editor | open project.godot in Godot 4.7 and press F5 |
| Balance and drift probe (authored nodes, sampled forged nodes) | godot --headless --path . -s tests/simulate.gd (add -- all for every forged node) |
| Engagement probe (where enemies die, boss time under fire) | godot --headless --path . -s tests/engagement.gd |
| CPU cost per frame (simulation and view) | godot --headless --path . -s tests/frame_cost.gd |
Forge more map nodes into assets/map/forged.json (appends) |
godot --headless --path . -s tools/forge_map.gd -- 20 |
Map and a forged boss fight to build/ |
xvfb-run godot --path . --audio-driver Dummy --rendering-driver opengl3 --resolution 720x1280 --fixed-fps 60 -s tests/map.gd -- 10 |
Render the game icon, unit icons and key art to assets/art/ (committed) |
xvfb-run godot --path . --audio-driver Dummy --rendering-driver opengl3 --resolution 1080x1920 -s tools/render_art.gd |
| Map input: drag scrolls, tap opens, wheel scrolls | godot --headless --path . -s tests/map_input.gd |
| Volume button: opens, mutes at the bottom, closes, never scrolls the map | godot --headless --path . -s tests/volume_input.gd |
Bake crowd characters to assets/baked/ |
godot --headless --path . -s tools/bake_crowd.gd |
Model gallery to build/gallery.png |
xvfb-run godot --path . --audio-driver Dummy --rendering-driver opengl3 --resolution 1280x720 -s tests/gallery.gd -- shoot 0.3 |
Squad close-up at time T to build/ |
xvfb-run godot --path . --audio-driver Dummy --rendering-driver opengl3 --resolution 720x1280 --fixed-fps 60 -s tests/closeup.gd -- T |
Menu, every level's stage and the results screen to build/ |
xvfb-run godot --path . --audio-driver Dummy --rendering-driver opengl3 --resolution 720x1280 --fixed-fps 60 -s tests/screens.gd |
Render frames to build/ |
xvfb-run godot --path . --audio-driver Dummy --rendering-driver opengl3 --resolution 720x1280 --fixed-fps 60 -s tests/screenshot.gd |
| Web build | godot --headless --path . --export-release Web build/web/index.html, then serve build/web/ |
Controls: drag with a finger or the mouse, or use the arrow keys.
src/content/: data — weapons, lane objects, level timelinessrc/view/: drawing and HUD; reads the simulation, never writes to it.Vieworders the frame;Stageis the static scene;crowd.gdshaderplays baked animationsnative/: the native library (C++). The deterministic simulation (Battleruns each tick overSquad,Lane,Shots,Arms);Crowd, one batched draw;Painter, which fills the crowds from the simulation each frametools/: the crowd baker and in-house weapon modelsassets/third_party/: CC0 and OFL packs with their licenses (see CREDITS.md);assets/baked/: baker outputtests/: headless bots and the frame renderer
Code and original assets: Apache License 2.0, copyright 2026 Solutions Unity. Third-party packs keep their own licenses; see CREDITS.md and NOTICE.