## Inspiration
I love two things: the deep buildcraft of classic roguelites (Hades, Slay the Spire, Archero) and the legendary
martial-arts world of Jin Yong's Wuxia novels—where a wandering hero masters 18 Dragon-Subduing Palms, pairs it with the
Nine-Yin True Sutra, and wields the Dragon-Slaying Saber.
I wanted to bring that "just one more run" thrill natively into the Reddit feed as a **bite-sized Daily Game** where every
Redditor faces the exact same Cult Sect, boss mutations, and Daily Mastery Bounty each day, then compares builds directly in
the Reddit comments.
## What it does
**Wuxia Spire** runs natively inside a Reddit Interactive Post via **Devvit Web**:
- **Instant Inline Splash → Full ARPG Combat:** A lightweight sumi-e ink-brush feed card shows today's Cult Sect, login
streak, and daily runs—one tap expands into a 60fps Phaser 4 martial-arts arena.
- **Shared Daily Spire (30 Floors) + Endless Spire (31F+):** Every UTC day (`daily:YYYY-MM-DD`) generates a seeded 30-floor
Daily Spire with rotating Cult Sects, **Daily Milestone Chests** (F10/F20/F30), a **Daily Mastery Bounty**, and a live Redis
**Daily Leaderboard**. Endless Spire opens past Floor 30 for uncapped Personal Best chases.
- **Active Combat & Skill Expression:** Auto-combat pacing meets tactile skill expression—click or press `Q` to shatter
exposed **Qi Flaws** (`3.5x` guaranteed crit + shield break + stun + cooldown refund), time `Space` **Qinggong Cloud-Step**
against telegraphed Boss Heavy Strikes for a **Perfect Dodge** counter-slash, and unleash `[R]` Ultimate Qi.
- **Deep Wuxia Buildcraft:** 14 Active Martial Arts (with 3-tier projectile evolutions), 13 decoupled Inner Qi passives,
**23 discoverable Secret Peerless Synergies**, 10 stackable High-Realm Enlightenment Scrolls, and **48 Jin Yong Legendary
Relics** with an Altar of Fate reveal & purification gamble.
- **Native Reddit Retention & Community Loop:** 7-day / 30-day login streak track (with 1 grace day/week) and **1-click
Share Build Report to Reddit Comments** (`/api/share-comment`) so players can post their Floor 30 clears, synergies, and
relic drops right under the thread.
## How I built it
- Platform: Built purely on Devvit Web (@devvit/web, @devvit/start), splitting splash.html (zero Phaser
overhead for instant feed rendering) from game.html (full expanded experience).
- Frontend: Phaser 4 for the combat engine, boss telegraphs, hitstop, and particle FX; React 19 + Meta Astryx UI
for Camp, Codex, Skill Drafts, and HUD overlays.
- 100% Procedural Art & Audio: Every character sprite, Cult Leader, sumi-e ink-wash vista, SVG martial emblem,
pentatonic Wuxia BGM, and layered combat SFX is generated procedurally in TypeScript—zero external asset bloat and
instant load times inside Reddit's iFrame.
- Backend: Hono 4 serverless API (/api/init, /api/run/start, /api/run/complete, /api/camp/action,
/api/share-comment) backed by Devvit Redis for persistent profiles, daily seeds, and leaderboards, with shared
pure-TypeScript catalogs and runtime typeguards in src/shared/.
## Challenges I ran into
- **Fast Reddit Feed Load vs. Rich Game Depth:** Keeping the inline splash bundle tiny while packing 14 evolving martial
arts, 23 synergies, 48 relics, and procedural BGM into the expanded view required strict entrypoint separation and zero
external media files.
- **Tactile ARPG Feel in a Bite-Sized Loop:** Balancing quick daily runs with genuine skill expression meant tuning
telegraphed Boss Heavy Strikes, Perfect Dodge windows, Qi Flaw Meridian Shatter payoffs, and hitstop without cluttering
mobile screens.
- **Server/Client Reward Parity:** Ensuring daily chests, mastery bounties, cursed relic purification, and leaderboard
scores stay deterministic and consistent between Devvit Redis persistence and client previews.
## Accomplishments that I'm proud of
- **Authentic Sumi-e Wuxia Identity:** Procedural ink-brush multi-frame sprites, pentatonic BGM, and pure Jin Yong lore
across every manual, synergy, and relic—with zero external sprite sheets or audio downloads.
- **Sticky Daily Loop:** Combining a shared daily seed, 30-floor Daily Spire milestones, 7/30-day streak rewards with grace
days, and 1-click comment build reports turns every run into a community conversation.
- **Automated Simulation & Test Suite:** Built 26 unit tests across 4 suites plus a headless run simulator (`npm run sim`)
to verify floor scaling and build balance across Floors 1–60.
## What I learned
Designing for Reddit Interactive Posts rewards **immediate visual clarity** on the inline splash card, **fast 3–5 minute
session loops** with 100% loot retention, and **shareable run artifacts** that give Redditors a reason to jump into the
comments.
## What's next
- **Wanderer Look Customization:** Hairstyles, robe tints, and accessories rendered directly on the sumi-e paperdoll and
combat sprite.
- **Community-Voted Daily Decrees:** Let subreddits vote on weekly Cult Sect modifiers via Reddit comments/polls.
- **Sect Tournaments:** Cross-day seasonal leaderboards and shareable challenge seeds.