Skip to content

About

Compact top-down action RPG dungeon slice built with Godot 4.7 and Rust

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

36 Commits

Folders and files

Repository files navigation

Grim Delver: Trench 9

Grim Delver's armored trench delver mascot carrying an axe and the Ember Cell

Current version: 0.2.0

Run the demo:

./play

Open the authored map directly in LDtk:

./edit

The editor starts in maps/, opens the native top-down Grim Delver LDtk project, and restores the latest edited level. The current project opens directly on the Trench 9 1-1 level.

Grim Delver is a compact top-down action-RPG dungeon slice built with Godot 4.7 and Rust through GDExtension. It combines ARPG combat and loot with a grim, inhabited industrial-underground setting.

Screenshots

Trench 9 encampment Stealth sight and backstab cones
The delver in the Trench 9 encampment Stealth mode showing distinct enemy sight and backstab cones
Bow precision charge Melee combat
The delver aiming a fully charged bow shot A frame-synchronized axe strike hitting multiple enemies
Fog-of-war exploration LDtk map authoring
Combat at the edge of the dungeon's persistent fog of war The native top-down Trench 9 map open in LDtk
Inventory and equipment Classless progression
The equipment inventory with the Cinder Bow selected The character sheet showing attributes, skills, and derived statistics
Title and settings menu Trench 9 dungeon overview
The Grim Delver title menu with live audio controls The explored industrial dungeon and its persistent fog of war
Charged melee attack Interactive field stash
A fully charged stamina-scaled melee strike The solid field stash opened after interaction
Authored character animation Industrial acid hazards
The deterministic in-engine character animation showcase Animated acid pools embedded in the dungeon floor

The playable loop is complete:

  1. Start in the Trench 9 encampment.
  2. Speak with Quartermaster Vela and check the medic or field stash.
  3. Cross the blast gate into Trench 9.
  4. Take the safe maintenance rooms or jump the two-tile Ember fissure shortcut.
  5. Fight sump thralls and rivet mutants, collecting scrap, gear, and stims.
  6. Equip the weapon style you want to train from the field stash.
  7. Kill the Chief Goblin Foreman in the sealed pump hall.
  8. Extract the Ember Cell and return it to Vela.
  9. Watch the recovered cell power up the encampment.

Controls

Input Action
W A S D Move
Left mouse Tap for a quick main-hand attack; hold and release for a charged attack
Right mouse Tap for a quick bow shot; hold to draw, aim with the crosshair, and release
1–4 Use or equip a hotbar item; in the inventory, bind or clear the selected item
Q Toggle skill-based stealth and reveal enemy view cones
Tap Space Jump in the movement or aim direction
Double-tap Space Dash
E Interact / pick up the Ember Cell; equip or use the selected inventory item
Enter Confirm a menu action; equip or use the selected inventory item
I Open / close the inventory; use W A S D to select its 5×3 grid
C Character sheet
Esc Open / close the in-game field menu
W / S, A / D Select and adjust title or pause-menu entries
R Restart after completing the demo

Classless progression

Grim Delver uses a classless, use-based system. Actions train the skill that performed them: swords, axes, blunt weapons, bows, athletics, medicine, survival, stealth, scavenging, or influence. Five skill increases raise the overall character level. The two governing attributes practiced most during that level increase automatically, so the character grows from what the player actually does rather than from a class choice.

The seven attributes are Strength, Dexterity, Agility, Constitution, Perception, Will, and Intelligence. They feed live derived values including vitality, stamina, movement speed, jump distance, damage, recovery time, critical chance, armor resistance, stealth detection, backstab damage, and carry capacity.

Jumping and dashing train Athletics. Crossing the Ember fissure while airborne avoids Ember damage and awards a larger Athletics gain; higher Athletics and Agility increase the distance shown on the character sheet. Walking into an Ember fissure causes recurring damage. The north and south maintenance rooms remain safe routes for a fresh or injured delver.

The inventory contains concrete weapons derived from four trainable families: swords, axes, blunt weapons, and bows. Swords, axes, and blunt weapons equip to the main hand and attack with left mouse; bows equip to a dedicated sidearm slot and fire with right mouse. Each slot has its own cooldown. Every item retains distinct damage, reach, attack speed, fatigue, and targeting behavior. Quick melee strikes chain through a weapon-specific combo whose steps also vary recovery, reach, and hitbox. Armor keeps its own protection, resistance, movement, and stealth trade-offs. Controls, item quantities, cooldown masks, resource orbs, level bar, tooltips, and character statistics all render live state.

Stamina is the combat rhythm. Quick attacks are cheaper and weaker; holding left mouse winds up a stronger attack whose damage, stamina cost, and recovery rise continuously until release. Heavy axe and hammer charges convert stamina into damage more efficiently than light swords, but leave less reserve for the 28-stamina jump or 38-stamina dash. Attacks and traversal also delay stamina regeneration, so committing without an escape reserve is dangerous.

The bow has its own precision charge. Every release consumes one arrow from the selected quiver; holding right mouse changes the cursor to a crosshair and raises critical chance and critical damage, while normal damage and stamina cost stay fixed. Once the bow reaches full draw, continuing to hold drains stamina; walking while aiming drains it faster, and exhaustion cancels the shot and resets the draw. The field stash supplies 24 Standard arrows. Venom and fire arrows already have typed inventory and rendering contracts, but the playable demo does not supply them or apply poison or burning damage.

Press Q to enter or leave stealth. Stealth skill and Agility shrink the 360-degree noise radius around the delver. Enemy sight is a separate channel: each monster has a forward view cone that stops at walls and solid scenery, and stealth mode renders that exact cone so the player can route around it. Either nearby noise or direct unobstructed sight causes detection. A concealed melee strike made from behind is always critical and trains Stealth. The amber or red forward region is sight; a separate cyan rear region shows the current main-hand reach and armor-dependent angle in which a backstab can land. Heavy Rivet Plate is deliberately noisy: it increases noise radius and visibly narrows that rear cone, trading infiltration control for protection.

Fog of war is persistent and wall-aware. A soft, mottled haze feathers across the visibility boundary instead of blinking one square at a time. Unexplored tiles remain concealed, previously visited rooms stay dimly remembered, and enemies, drops, NPCs, animated props, lights, and minimap contacts appear only while they are in the player's current line of sight.

Development

./test.sh

Build a standalone Linux package:

./tools/export-linux

The executable, resource pack, and Rust GDExtension library are written to dist/.

The gameplay state, enemy behavior, combat, loot, objective flow, and collision rules live in Rust. The multi-level LDtk world owns each map's identity, dimensions, walkable layout, walls, hazards, scenery, ambient animation, lights, and optional actors. Godot owns the window, input, rendering, audio, and asset import pipeline. The demo uses Godot's Vulkan-backed Mobile renderer and nearest-neighbor pixel filtering.

How the code fits together

No Godot knowledge is required to follow the gameplay code:

  1. game/scenes/main.tscn is a text scene. It declares one Rust-backed Node2D plus its audio children. A Node2D is simply a drawable 2D scene object.
  2. rust/src/lib.rs is the GDExtension entry point. GDExtension is Godot's native-library bridge; it lets the scene instantiate a Rust type.
  3. rust/src/game.rs handles Godot callbacks: ready loads resources, process reads input and advances one frame, and draw paints the resulting state.
  4. rust/src/model.rs contains engine-independent game rules. Its unit tests can exercise combat, fog, collision, and progression without opening Godot.
  5. rust/src/render.rs translates that state into ordered canvas drawing. rust/src/authored_map.rs validates and loads any selected level from the LDtk world embedded in the build.

The small files included by these module roots are implementation sections, not separate subsystems. Keeping each maintained code file below 300 lines makes the flow browsable while preserving one clear simulation, bridge, and renderer.

The title and pause screens are complete Lucifer menus with keyboard navigation, restart/quit actions, and live music and sound-effect volume controls. Music and dungeon ambience loop independently of the gameplay pause. Both controls default to a displayed 50%; that midpoint is calibrated to the preferred mix of 120% music and 35% effects. The replacement free-licensed audio suite provides weapon-specific swings and impacts, the bow's dedicated release, a short human damage grunt, six alternating stone footsteps, a dedicated physical jump cue, separate traversal and inventory cues, three monster vocal tiers, and distinct move/confirm/cancel interface feedback.

All player, NPC, and monster states use authored multi-frame animation from Shade's coherent Puny family: eight-direction idle and movement, melee actions, hurt reactions, and persistent death frames. Vela has a non-casting work and conversation loop; medic Anja alone uses the authored caster action. The same family supplies the encampment and dungeon, including animated torches, drains, fire jets, blades, portals, machinery, and gate. Physical scenery and every detail tile tagged Solid in LDtk block movement and attacks, while wall-mounted and floor effects remain traversable; the field stash uses the pack's authored closed and open chest frames when looted. The companion Puny World atlas adds 1,026 usable terrain, pathway, building, nature, resource, and furnishing tiles with the upstream animation and Wang-terrain metadata preserved in LDtk. Static terrain can never select an animated frame; acid, wall-fed discharge, Ember, and ambient devices each have their own typed layer. A separate compatible Mini World town atlas adds 511 semantically tagged buildings, shops, housing, defenses, harbor pieces, graveyard elements, signs, props, and nature cells while reusing Puny World for outdoor ground, paths, elevations, and water.

Attack art is authored in each character sheet; the Rust animation module maps those atlas frames into clips. Concrete weapons derive their trainable skill from a generic family while retaining their own duration, reach, impact frame, collision pattern, and combo sequence. Damage is applied only when the matching authored clip enters its visible impact frame: the sabre and ironblade select one target, the trench axe sweeps an arc, the rivet hammer hits a radial impact zone, and the Cinder Bow sidearm holds its authored aim pose before releasing a wall-blocked long-range shot from its dedicated bow frames on right mouse. The selected arrow is removed when the shot is committed, carried through projectile flight, and reported at impact for payload-colored projectile and hit effects.

The deterministic in-engine animation showcase is captured at artifacts/animation-showcase.png. The frame-synchronized multi-target axe impact is captured at artifacts/combat-impact.png, a fully charged stamina-scaled strike at artifacts/charged-attack.png, and the dedicated right-button bow sidearm at artifacts/bow-combat.png. Its full precision draw, critical readout, and quiver count are captured at artifacts/bow-precision-charge.png. The asset-backed RPG interfaces and traversal route are captured at artifacts/inventory.png, artifacts/character-sheet.png, and artifacts/dungeon-jump-route.png. Fog and the in-game menu are captured at artifacts/fog-of-war.png and artifacts/field-menu.png. The solid, animated field stash is captured open at artifacts/interactive-props.png. The separately authored acid basin and wall-fed discharge are shown in artifacts/acid-pools.png and artifacts/acid-discharge.png; the complete top-down layer stack is visible in artifacts/ldtk-map-editor.png. Stealth's distinct line-of-view and backstab cones are shown in artifacts/stealth.png. The Grim Delver mascot is available as an alpha PNG at artifacts/grim-delver-mascot.png.

Godot is discovered from GODOT_BIN, godot, or godot4. On this workstation, the wrapper also recognizes the already-installed pinned Godot 4.7.1 runtime. play and the retained run.sh entrypoint use Godot's Wayland display driver when launched inside a Wayland session, avoiding the unsupported OpenGL dialog caused by an X11 fallback. edit launches the free LDtk map editor.

Free asset credits

Grim Delver's code is MIT licensed. Every bundled third-party art, interface, font, sound, and music source is credited below. CC0 attribution is voluntary; the Blender Foundation jump cue requires attribution under CC BY 3.0. Exact upstream filenames, SHA-256 hashes, local derivatives, and processing notes are recorded in ASSETS.md. The Grim Delver mascot was created specifically for Grim Delver. The gallery images are in-game captures.

Visual art, interface, and font

Sound and music

About

Compact top-down action RPG dungeon slice built with Godot 4.7 and Rust

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages