← All code projects

Skills Exercised

Languages

  • Rust
  • JSON

Frameworks & Tools

  • ratatui
  • crossterm
  • Serde
  • rand
  • Cargo

Concepts

  • Procedural Generation
  • Game Loop
  • Terminal UI
  • Data-Driven Design

Overview

Rust Adventure (RAD) is a text-based adventure game in the style of Legend of the Red Dragon, with inspiration from MUDs, Zork, and Nethack/Rogue. Each run sends the player into a freshly generated dungeon to fight monsters, dodge traps, and find treasure, then back to the town to bank gold, buy gear, and train before delving again. There is no deep story; it is built for short sessions you can pick up and walk away from. The game is still in progress (roughly v0.5), with rewards, character upgrades, and deeper dungeons on the roadmap.

RAD is written entirely in Rust, with ratatui and crossterm drawing a split-screen terminal interface: a scrolling message log, a context-sensitive command bar, and a stats, ability, and inventory panel. Combat runs in real time on a 100 ms heartbeat, so attacks have cooldowns and enemies telegraph their moves before striking. Mobs, bosses, items, and dungeon themes are defined in JSON files that Serde loads and validates once at startup into a global lookup table. Each dungeon floor is built as a shuffled deck of room cards, weighted toward monsters, traps, treasure, and empty rooms, that grows with depth and ends at a boss door.

Screenshots

The town screen with the stats, ability, and inventory panel
The Town
A Dungeon Bat telegraphing its attacks while the attack cooldown shows ready
Real-Time Combat
The Dungeon Bat defeated, with explore and leave options in the command bar
Victory and Exploration
Returning to town and entering the bank
Back in Town: The Bank