Wownerogue

A browser-based roguelike synchronized with crypto block timing. A run is a race
against the next block: reach the exit before the block lands, or the house wins.
The same codebase runs the solo dungeon, the social Tavern, and operator-selected
PvP and race rulesets, with separate free and paid leaderboards.

Self-hostable under the MIT License. See README.md to run it, docs/ARCHITECTURE.md
for the design, and docs/DEPLOY.md to operate an instance.
This commit is contained in:
jwinterm
2026-07-27 08:23:01 -04:00
commit fad2a695bd
578 changed files with 102281 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
const Appearance = require('../src/multiplayer/appearance');
describe('appearance normalization for 3D avatars', () => {
test('preserves base colors for model avatars', () => {
const ap = Appearance.normalizeAppearance({
avatar: 'kenney-survivor-male',
tint: 'gold',
colors: { base: 'teal', skin: 'umber', hair: 'silver' },
equipment: { body: 'mail', head: 'helm' }
});
expect(ap).toMatchObject({
avatar: 'kenney-survivor-male',
tint: 'teal',
equipment: { body: 'none', head: 'none', shield: 'none', weapon: 'none' },
colors: expect.objectContaining({ base: 'teal', skin: 'umber', hair: 'silver' })
});
});
});