jwinterm
a62eefb47b
fix: resolve security/correctness review + AAA graphics pass
...
Backend (Tier 0/1/3): single-payout double-pay -> needs_review; admin-retry tx_hash guard; UNIQUE index on games.payment_id (migration 023) + atomic claim; reconnect no longer resets block-timeout; completeGame keys on user_id+dungeon_seed (not socket_id); token-gated /api/user/:socketId/* endpoints; payout min/max enforcement; orphaned-active-game boot recovery; sessionManager cleanup FK fix; XFF rightmost-hop; global uncaughtException/unhandledRejection guard; server binds 127.0.0.1; provably-fair client-seed (HMAC) + RNG [0,1) bound; difficulty preset ranges reach the digger; chat no longer leaks full socket.id; removed dangerous-keyword SQL theater.
Match mode (Tier 2, still MATCH_ENABLED-gated): fixed match_queue/match_move crash paths + scheduler dead-code + leaked ceiling timer; pot collected before start with abort+refund; BigInt/basis-point fee math, capped payout; no-address winner claimable; winnerId==placement[0]; finalize schema + payout-first isolation; reconnect re-key with ownership; refunds on all cancel paths; real countdown; map/timer cleanup. +16 tests.
Graphics: new overlay FX layer (torch light, vignette, embers, sparkle/burst/flash/shake, self-suspending rAF); gameplay juice; atmospheric screens; CSS design-token chrome with framed modals; richer Kenney tile renderer; imported Kenney dungeon/interior sheets + fx particles.
Verification: 45 suites / 312 tests pass; 40 changed JS files parse; 20 server modules load clean; no regressions.
2026-07-09 17:46:58 -04:00
jwinterm
4ee03f24a6
fix: char customizer flakiness + wire real render-mode entitlement gating
...
- Equipment option tiles register for async redraw (were stuck on '...')
- Render mode switching no longer silently mutates avatar identity
- Dungeon renderer falls back to @ tile when overlay draw fails
- Main-game customizer locked to topdown (no confusing render-mode picker)
- equipRedrawers prevents unbounded redraw array growth
- RENDER_MODE_TEST_UNLOCKS flipped to false; ASCII made free (accessible fallback)
- Documented COSMETIC_PRODUCTS in .env.example
- 5 new tests (239 total, 36 suites, all passing)
2026-07-09 06:15:00 -04:00
jwinterm
3195386ba1
refactor: resolve avatar visuals through render kit
2026-07-06 03:41:11 -04:00
jwinterm
be780c17e6
feat: use character identity in single player
2026-07-06 03:16:26 -04:00
jwinterm
727304996a
fix live game list and swap animations
2026-02-18 20:57:01 -05:00
jwinterm
37323c8683
fix: monster animation p3
2026-01-13 18:37:40 -05:00
jwinterm
12bc3d73d0
fix: monster animation p2
2026-01-13 18:09:04 -05:00
jwinterm
7bd32a929e
fix: monster animation in awaiting payment
2026-01-13 18:04:32 -05:00
jwinterm
0c2d44d429
fix: Animation rendering issues - remove black tile backgrounds
...
- Replace asterisk (*) sparkles with floor tiles + bright golden color
- Remove skull emoji (☠) and death particles (% *) - use red flash effect
- Fix monster shadows causing black boxes - use red floor glow instead
- Replace 'ESCAPED!' emoji text with character-by-character transparent rendering
- Use GameTiles.getPlayerTile() instead of hardcoded '@'
- Use GameTiles.getMonsterTile() instead of hardcoded '~'
All tiles now render with proper transparency on floor tile base.
2026-01-13 17:32:46 -05:00
jwinterm
afe2ac991a
feat: Treasure hunt animation for 'Awaiting payment' state
...
New dedicated animation while waiting for payment:
- Player runs toward BIG pulsating golden treasure
- Player always grabs the treasure (with dramatic pickup moment)
- Monster pack (4-6 monsters) spawns from multiple directions
- 60% chance: player escapes with treasure to the exit
- 40% chance: player gets devoured by monster pack (skull/death effect)
Animation features:
- Massive golden aura around treasure with sparkle ring
- Player glows gold when carrying treasure
- Death particles expand outward on devour
- Monsters converge from edges (left, right, top, bottom)
Existing 'Awaiting next block' animation preserved unchanged.
2026-01-13 17:15:04 -05:00
jwinterm
aec1c71a8c
add early entry and help screens for new users
2025-12-26 10:21:25 -05:00
jwinterm
7f91d83308
fix monster bug and let spectators join pending games
2025-12-22 11:25:22 -05:00
jwinterm
f8241dd309
Continue working on payment logic
2025-09-27 11:21:11 -04:00
jwinterm
e3915dcde2
Begin payment logic and tests
2025-09-27 08:45:22 -04:00
jwinterm
4ad063f735
Get back into it
2025-09-24 14:06:42 -04:00
jwinterm
f02e16272e
refactor frontend and fix debug mode
2025-05-29 13:40:44 -04:00