The game content of Zee's DeathRun: its releases are the packs servers load.

This is a game to demonstrate the capabilities of the GameSpice collection built on-top of Godot 4 and GameSpice. In this 3D game, most players are runners racing down a long course full of traps, while one or more activators stand beside it with a button for every trap and try to kill them. Whoever makes it to the end gets a weapon and fights the activators. This is inspired by the classic deathrun minigame maps!
This project and the assets under it are COMPLETELY OPEN SOURCE. You are free to use, modify, and distribute them under the terms of the MIT license. The only thing not open source is the back-end web infrastructure. So if you opt into using your own authentication backend instead of integrating with GameSpice, you will need to build and integrate your own back-end infrastructure.
This game was built with Claude Code and has had little testing with real players, so please report anything odd you run into.
Screenshots
How it plays
Everybody starts at once: the runners behind the start gate, the activators at the start of a walkway that runs beside the course. When the gate drops:
- Runners run. A trap does nothing until somebody presses its button, so the danger is the activator: watch them, bait a trap, wait for it to be used up, then go. If a trap gets you, you watch the rest of the round.
- Activators walk along their walkway and press E at a button while somebody is in that trap: trapdoors, closing spike walls, a crusher, a rolling log, sinking ice, saws and fire. Most traps work once a round. The list on the right of the screen shows which are left.
- The end. The first runner across the finish gets a weapon in the end arena, and the activators are called down to fight them (armed, and a little tougher, since it's one against several). Anybody who makes it after them arrives armed too.
The runners win if every activator is killed or leaves. The activators win if every runner is caught, or if the clock runs out. A new set of activators is drawn each round, from people who weren't one last round. By default there is one activator for every 8 players, and never more than 6 (both are settings, see below). Some stretches of the courses are bunny-hop jumps.
Partway through each course, players vote for the next one (!vote 2, !rtv, !nominate dr_foundry).
The game has a short practice course built in. Many more courses (Ice Works, The Foundry, The Temple and others) come in the separate mg-deathrun-maps pack, which lists them all. A server holds 24 players by default (max_players in game.yml).
Controls
| Key | Action |
|---|---|
| WASD / mouse | Run and look |
| Space | Jump |
| Shift | Walk (for a narrow ledge) |
| Ctrl | Crouch |
| F | Flashlight, runners and activators alike while still in the round (on at the start of a dark course: horror, cave and night ones). A lit beam is seen by everyone who can see you |
| E | Press the button in front of you (activators) |
| Mouse 1 | Fire, at the end |
| Mouse 2 / R / 1-5 | Alt-fire / reload / weapon slots |
| F5 | First or third person |
| G | Free camera while out (move keys fly, Sprint fast, Walk slow); mp_freeroam 0 or mp_forcecamera 1 refuses it |
| H | Help: the rules and every key as you have it bound |
| Esc | Menu: settings (every key above can be rebound), help, and leave |
Getting started
You need Godot 4.7. The game is built from many GameSpice addons, each in its own repository, so the easiest way to get everything is gs-bootstrap. It clones every project and links the addons into each one:
git clone https://github.com/gamespice-platform/bootstrap.git
cd gs-bootstrap
./bootstrap.sh
cd projects/mg-deathrun
./game.sh
On Windows, run bootstrap.ps1 instead and open the project in Godot.
The courses come from the mg-deathrun-maps checkout, which bootstrap links into courses/ for you. On a deployed server they come from the server instead: the game ships only its built-in practice course, and the server owner picks the courses pack (gamemann/mg-deathrun-maps, or their own) in gs-server-deploy's cfg/content.yml.
game.sh does everything else:
| Command | What it does |
|---|---|
./game.sh |
Play offline against bots (one of them works the traps when you run, and they run when you are the activator) |
./game.sh online |
Start a local server and the browser client, and print the link to open |
./game.sh online down |
Stop them |
./game.sh server |
Start a local dedicated server only |
./game.sh test |
Check every script and run every test suite |
./game.sh shot |
Save a screenshot to screenshots/. ./game.sh shot --help lists the views |
./game.sh help |
All of the options |
online and server use gs-server-deploy, which bootstrap clones next to this one. Run its ./setup.sh once first.
Running a server
Settings are cvars. Set them in the server's config, on the command line, or live from the console. Most of them take effect from the next round.
dr_round_seconds 300 // the longest a round runs (a course may ask for less)
dr_countdown_seconds 5 // seconds behind the start gate (default 5, any value of 0 or more)
dr_players_per_activator 8 // one activator for every this many players (default 8, any value of 2 or more)
dr_max_activators 6 // most activators a round has (default 6, any value; 0 = no limit)
dr_activator_repeat 0 // 1 = last round's activator may be drawn again
dr_timeout_winner 2 // who wins when the clock runs out: 0 draw, 1 runners, 2 activators
dr_activator_health 1.5 // how much tougher activators are at the end
dr_autobhop 0 // 1 = hold jump to keep hopping
dr_bot_trap_delay 0.25 // how late bot activators press, in seconds (at bot_difficulty medium; scaled by bot_reaction)
mp_teammate_passthrough 1 // shots and team-mates: 0 a team-mate is hit and blocks, 1 through one at the muzzle, 2 through every team-mate
bot_quota 3 // players a round is kept at with bots; each person who joins replaces one
bot_quota_mode fill // fill (as above), fixed (that many bots), per_player (that many per person) or off
dr_bots 1 // 0 = no bots
bot_difficulty medium // easy, medium, hard or nightmare: how bots aim, react and fire at the end (every bot_* setting is a cvar too)
dr_vote_after 20 // seconds into a course before the vote for the next one opens
The bot cvars are the family's shared ones (gs-server's GSBotQuota, gs-bot's bot_difficulty and bot_*; solo they are console variables, or -- --bot_difficulty hard at launch). dr_min_players still works and sets bot_quota, and dr_bot_spread sets bot_aim_error; both are deprecated.
Dead runners fall as ragdolls (gs-player-char); the server picks how each one goes down and everybody sees the same fall. sv_ragdoll 0 makes it a quick fall with no physics, sv_ragdoll_style picks ragdoll, stiff, topple or hide, sv_ragdoll_time and sv_ragdoll_max say how long and how many, and sv_ragdoll_reactions weights the falls (limp, face_plant, crumple, headshot_launch, power_launch; 0 turns one off).
mp_teammate_passthrough is the family's shared one from gs-combat, live from the next shot. At 2 a team-mate in the line never stops a shot; splash still reaches them.
--dr-course-ids=<ids> limits a server to some courses. The vote's settings go in user://cfg/deathrun_vote.json ({"enabled": false} turns it off); gs-vote's README lists them.
Console commands:
| Command | |
|---|---|
dr_status |
What the server is doing |
dr_courses |
The courses the server has, and any it refused (with the reason) |
dr_traps |
This course's traps, and which are used up |
dr_reload |
Read the course folder again, for the next round |
dr_net |
What the network code is doing |
Admin commands
These come from gs-moderation: noclip, freeze, speed, gravity, god, buddha, hp, slay, slap, rename, the teleports, blind and beacon. respawn puts somebody back at the start of their side. give and strip are turned off, because the weapons are what the end hands out.
Writing a course
A course is a JSON file: a start, a corridor of pieces and traps, a walkway with a button for every trap, a finish and an end arena. The courses are in mg-deathrun-maps, whose tools/build_courses.py writes them section by section (so the corridor and the walkway always line up). That is also the easiest way to write a new one. courses/README.md in that repository describes the format. The server sends the course to each player when the round starts, so players don't need the course files.
Testing
./game.sh test # every script parses, then every suite runs
./game.sh test headless_courses # one suite
| Suite | What it covers |
|---|---|
headless_run |
The game itself: sides, traps, deaths, the end fight |
headless_courses |
Every course: a bot runs it, every trap is sprung on somebody, every button is reached |
headless_net |
A server and a client in one process, over the network code |
dedicated |
A real server: boots, loads the game, runs its commands |
CLAUDE.md has the design decisions and the reasoning behind them.
docs/not-yet.md lists what the game does not do yet.
Credits
| Asset | Author / source | License | Where |
|---|---|---|---|
| Godot Engine logo (boot splash) | Andrea Calabró, godotengine.org | CC BY 4.0 | branding/splash.png |
| Surfaces | Kenney, Prototype Textures, tinted per course | CC0 | each kit's licence |
| Players | Quaternius, Zombie Apocalypse Kit, skinned from Kenney's blocky characters | CC0 1.0 | gs-player-char |
| Weapons | zee-gs-weapons | see that repo | that repo |
| Footsteps | Kenney, Impact Sounds | CC0 | addons/gs_audio/stock/CREDITS.md |
| Ambience beds | Generated by gs-audio | CC0 | addons/gs_audio/stock/CREDITS.md |
| Spikes, blades, fire, pools | Drawn in code | none | in code |
| Toys (balls, barrels, a tyre) | gs-props, drawn in code; sounds by Kenney | CC0 | addons/gs_props/toys/sounds/CREDITS.md |
If you made one of these assets and want it removed, open an issue.
License
MIT. See LICENSE. The Kenney art is CC0, which is public domain.
Choosing which courses are played
The file cfg/game/mg-deathrun/gs_map/maps.yml says which installed courses are drawn, voted on and nominated. A server operator can replace it with cfg/server/addons/gs_map/maps.yml in the --config directory. Start that file with merge: true to add to the shipped list, and use remove: [ids] to drop courses.
| Setting or command | What it does |
|---|---|
map_rotation_file in config_courses/game.yml |
Names a different rotation file |
dr_rotation <name> |
Switches to a named rotation (the shipped file has main, every course, and short, which plays in written order); with no name it lists them |
dr_maps_reload |
Reads the file again |
shuffle_courses in config_courses/game.yml |
Random or in-order choice when no rotation file names rotations (default on) |
A course left out of the rotation stays installed: the map menu and an admin can still load it, marked "not in rotation". The file can also rename the vote commands. The format is gs-map's GSMapRotationFile.
Betrokkenheid in de tijd
Zee's DeathRun is een DeathRun-asset. Hij heeft 2 downloads, 30 weergaven en 0 favorieten.
Reviews
Log in om een review achter te laten.
Reacties (0)
Log in om te reageren.
