Riffle social card

About

The reactive DendryNexus engine outgrew the Norse duel it was written for and became Riffle: a reactive game engine for SvelteKit built on Svelte 5 runes with no Svelte UI dependencies of its own. It implements the full StoryNexus-style card, deck, and hand system (draw, play, and discard across multiple hands with pinned cards and per-hand state), a quality system of named attributes with typed display modes and min/max clamping, and broad and narrow difficulty checks with configurable scalers and human-readable labels from almost impossible to straightforward. A concentric-circle arena topology adds spatial structure across inner, middle, and outer rings (13 zones) with adjacency relationships, and content rendering covers quality interpolation, conditional text, and markdown-style formatting.

Highlights

  • Card/deck/hand system: draw, play, discard across multiple hands with pinned cards, max hand sizes, and per-hand state.
  • Difficulty checks: broad and narrow curves with configurable scalers, human-readable labels (almost impossible → straightforward), roll tracking.
  • Quality system: named attributes with typed display (integer, fudge, on/off, word scale, raw) and min/max clamping.
  • Arena topology: concentric-circle spatial system (inner/middle/outer rings, 13 zones) with adjacency relationships.
  • Content rendering: quality interpolation, conditional text, markdown-style formatting.

By the numbers

Commits
2
Lines added
+1,269
Lines removed
−1
Source files
1,179