Skip to content

About

Rex Ruckus: Meltdown — a fast, interactive 90s-style 3D shooter inspired by the Build-engine classics (Rust + Bevy)

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

Rex Ruckus: Meltdown

A fast, interactive, 90s-style 3D shooter inspired by the Build-engine classics. Original code and content; CC0 assets credited in CREDITS.md.

Rex Ruckus demo: chaingun fight in the loading dock, a barrel chain reaction and a rocket through the atrium glass

▶ Full-quality demo video (MP4)

Run: cargo run -p rr-game --release (starts at the main menu) Test: cargo test --workspace

Download

Grab the latest build from the latest release.

  • Windows: rex-ruckus-<version>-windows-x64-setup.exe installs the game for your user (no admin rights needed; the installer can install for all users instead) with a Start Menu entry. Uninstall it from Settings > Apps.
  • Linux: unpack rex-ruckus-<version>-linux-x86_64.tar.gz and run ./rex-ruckus.sh from the unpacked folder (it needs ALSA and a Wayland or X11 session). ./install-desktop-entry.sh adds it to your application menu with its icon.

Every pull request and push to main also builds both; they are attached to the run of the Release builds workflow as artifacts.

Building

Requires Rust 1.95+ (edition 2024). On Linux, Bevy also needs the ALSA and udev development packages, e.g. on Debian/Ubuntu:

sudo apt install libasound2-dev libudev-dev pkg-config

To build the Windows installer locally, install Inno Setup 6.6+, then:

cargo build -p rr-game --release
iscc /DAppVersion=0.2.0 installer\rex-ruckus.iss

The installer is written to installer\Output\. To build the Linux tarball locally, run scripts/package-linux.sh 0.2.0 after the release build; it lands in dist/. Pushing a v* tag publishes the installer and the tarball as a GitHub release.

License

GPL-3.0-or-later — see LICENSE.

Menus, difficulty and settings

The game opens on the main menu. New Game asks for a difficulty (Easy, Normal or Hard) and then plays the episode (assets/episode.ron) level by level, carrying health, armour, weapons and ammo over; an end-of-level stats screen follows each level. Esc pauses (resume, options, restart level, quit to menu). Options has mouse sensitivity, invert Y, field of view, the master, effects, voice and music volumes, a Low-res mode (360 rows, at the window's aspect) toggle for a chunky retro look, and Controls, where you pick an action and press the new key or mouse button to rebind it (each action keeps up to two bindings, Esc always opens the menu and cannot be rebound, Esc while capturing cancels).

--difficulty easy|normal|hard sets the difficulty for runs that skip the menu. --partners 1|2|3 (a dev aid) spawns that many stand-in co-op partners beside the start; they stand still.

Settings (volumes, sensitivity, low-res, bindings) are saved to settings.ron in the OS config directory:

  • Linux: ~/.config/rex-ruckus/settings.ron (or under $XDG_CONFIG_HOME)
  • Windows: %APPDATA%\rex-ruckus\config\settings.ron
  • macOS: ~/Library/Application Support/rex-ruckus/settings.ron

Set $RR_SETTINGS to use another file. A missing file means defaults. Running a level directly (rex-ruckus LEVEL) or a demo (--demo) skips the menu, uses default settings and never reads or writes the settings file.

Multiplayer (LAN)

Up to four players can play the episode together in co-op. Multiplayer on the main menu holds your player name (saved with the settings), Host game (pick the episode and difficulty, wait in the lobby, then Start) and Join game (pick a game found on the LAN, or type the host's address and Connect). The host runs the game; players can join mid-level, and Leave game in the pause menu ends your session.

  • The game uses UDP port 27960 (play) and 27961 (LAN discovery); allow both through the firewall.
  • Over the internet, join by the host's IP address; the host forwards UDP port 27960.
  • For testing: --host [LEVEL] hosts at once (LEVEL is a file in assets/levels/), --join ADDRESS joins at once, --name NAME sets the name for that run only.

Co-op rules:

  • A downed player watches from the floor for 3 seconds, then gets back up at the level start with the loadout they entered the level with, as long as a partner is still alive. A player who joins mid-level enters with the default loadout.
  • Keys are the team's: one player's key opens doors for everyone.
  • The first player to grab a pickup takes it for the team.
  • If everyone is down at once the level restarts, and everyone gets their entry loadout back.
  • Anyone reaching the exit ends the level for all (a player down at that moment carries their entry loadout into the next level). The stats screen lists the kills of each player by name.
  • Only the host moves on from the stats and death screens; clients see "Waiting for the host". The host's Main menu on the episode-end screen ends the session (clients get a notice).

Controls

Defaults (the actions are rebindable under Options, except Esc; the M, [ and ] sound keys are fixed, and yield to any action bound to them). Click to capture the mouse (that first click does not fire) · Esc pauses and releases the mouse · WASD move · Mouse look · Space jump · C / Left Ctrl crouch · E use (doors, lifts, switches) · LMB fire · R reload · F quick-kick · 1–6 or the mouse wheel switch weapons (1 boot, 2 pistol, 3 shotgun, 4 chaingun, 5 rocket launcher, 6 pipe bombs; with bombs out, a fresh fire press detonates them) · Q use the medkit · J toggle the jetpack (Space climbs, C / Left Ctrl descends) · N toggle night vision · Tab toggle the automap (rotates with you; walls appear as you see them; the game keeps running) · M mute / unmute · [ and ] lower / raise the master volume by 10%

Audio

Sound effects are a mix of synthesised sounds (recipes in assets/sounds/synth.ron, rendered to assets/sounds/synth/) and curated CC0 recordings (assets/sounds/cc0/); assets/sounds/bank.ron maps game events to them. Rex's voice quips are generated with Kokoro-82M (voice am_onyx, assets/quips/) and shown as a subtitle on their own HUD line. Each level can name a music track (assets/music/). Pass --mute to start silent; --record is always silent and skips music. The outputs are committed, so you only regenerate them after changing a recipe or a quip:

cargo run -p rr-tools -- synth assets/sounds/synth.ron -o assets/sounds/synth
scripts/gen-quips.sh                       # needs Python 3.10-3.12, sox, espeak-ng
scripts/import-sfx.sh SRC DEST             # imports a CC0 recording (sox)

import-sfx.sh honours LOOP="START LEN", CHANNELS=2 and NO_TRIM=1; see the script header. rr-tools quips-list prints the quip texts that gen-quips.sh voices.

Pickups, death and level complete

Walk over items to collect them: ammo (bullets, shells, rockets, pipe bombs), the shotgun, chaingun, rocket launcher, health packs, atomic health (up to 200), armour, the medkit, the jetpack and night-vision goggles. Keycards work as before. When you die or finish the level, press Use or Fire to restart.

Levels

The default level is arsenal_depot.ron, the M4a showcase: rockets and exploding barrels, glass, drones, a jetpack shaft and a secret behind a crack wall a pipe bomb opens. combat_arena.ron, mechanics_lab.ron and test_yard.ron can be passed as an argument (a file name in assets/levels/, or a path to a level file):

cargo run -p rr-game --release -- test_yard.ron

engine_lab.ron is the M5b showcase (not part of the episode): a gag room (a toilet to flush, a vending machine, a pool table), a slime pit to cross by jetpack, a Grunt and an Enforcer that fight each other, a live electric grate, a trigger pad that sets off a quake and drops the floor ahead, and a boss whose death ends the level. West of the hall, a material gallery shows the Aftershock materials, with a magma pit. assets/demo/engine_lab.ron tours it.

Add --mute to start with the sound off (M toggles it in game).

Level format: engine features

Every engine field defaults off, so older levels parse unchanged:

sectors: [ ( ..., hazard: Some((damage: 4, interval: 0.75, kind: Slime)) ),   // or Electric, Burn (magma)
           ( ..., mover: Some((kind: Lift(to: -1.5), channel: Some(7), speed: 0.8, one_shot: true)) ) ],
triggers: [ (sector: 5, action: Channel(7)), (sector: 12, action: Exit) ],   // once: true default
quakes:   [ (channel: 7, duration: 3.0, strength: 0.8) ],
props:    [ (kind: Toilet, pos: (3.0, 9.5), angle_deg: 270.0),
            (kind: Vending, pos: (6.0, 2.0), angle_deg: 90.0, stock: 3),
            (kind: PoolTable, pos: (10.0, 6.0), angle_deg: 0.0) ],
actors:   [ (kind: Boss, pos: (20.0, 20.0), on_death: Some(Exit)) ],
  • Hazards burn the player on the floor (not in jetpack flight) at once, then every interval seconds; their floors are drawn as slime or a live grate whatever material the sector names.
  • One-shot movers stay put once they reach their end: a Lift on a channel is a collapsing floor.
  • Triggers run a switch action when the player enters the sector; quakes shake the screen when their channel fires.
  • Props block movement and respond to the use key (the toilet and the vending machine heal).
  • on_death runs a switch action when the actor is dead (here: the boss exits the level).

Models

Enemies, viewmodel weapons and pickups are CC0 glTF models in assets/models/, mapped to the game by assets/defs/models.ron and imported with scripts/import-models.sh (sources in CREDITS.md). The boot, kick leg, pipe-bomb fist and switch panels are built from primitives at runtime.

Tuning

Weapon and enemy stats live in assets/defs/weapons.ron and assets/defs/enemies.ron; edit them and restart.

Level tools

cargo run -p rr-tools -- validate assets/levels/*.ron
cargo run -p rr-tools -- render-svg assets/levels/arsenal_depot.ron -o depot.svg
cargo run -p rr-tools -- info assets/levels/engine_lab.ron
cargo run -p rr-tools -- render-svg assets/levels/engine_lab.ron --ids -o lab.svg

validate also checks that the sound bank covers every event, that quip files exist, that level music files exist and that models cover every enemy, weapon and pickup (clip and bone names, triangle budget) and that every third-party audio and model file is listed in CREDITS.md.

info prints the sector table (heights, area, vertex ids, hazard and mover flags), the channel table (switches, triggers and on_death actors to movers and quakes), the exits and the actor, item and prop counts. validate also counts triggers and on_death as channel sources and exits, allows one boss per level and keeps props inside their sector and out of mover sectors.

In the SVG, glass panes are dashed cyan, crack walls hatched and secret sectors starred; it also shows lights, hazard floors, props, trigger sectors and the boss, and --ids labels sectors and vertices.

Property tests

CI runs the property tests with a small case count. A nightly workflow (.github/workflows/nightly.yml, also runnable by hand) reruns them at PROPTEST_CASES=20000. Set the variable yourself to go deeper locally:

PROPTEST_CASES=2000 cargo test -p rr-core --release --test movement_props

Demo playback and recording

--demo replays a scripted run instead of reading the keyboard and mouse (a RON list of timed input segments; see assets/demo/arsenal_depot.ron), and --record DIR saves every frame as a PNG at a fixed 30 fps:

cargo run -p rr-game --release -- arsenal_depot.ron --demo assets/demo/arsenal_depot.ron --record /tmp/frames

scripts/record-demo.sh does that and encodes docs/media/demo.mp4 and docs/media/demo.gif (needs a display and ffmpeg). Rerun it after visible changes to keep the README demo current.

About

Rex Ruckus: Meltdown — a fast, interactive 90s-style 3D shooter inspired by the Build-engine classics (Rust + Bevy)

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages