fix: fight restart bug, mobile TTS, character sizing, bitcoin symbols
- Fix fight replay showing empty scene: validate rounds before playing, retry loading fight data up to 5 times when rounds are missing - Add COOP/COEP headers to production server for SharedArrayBuffer (required by Kokoro TTS WASM threading on mobile) - Add blob: to scriptSrc/workerSrc CSP for Web Worker support - Fix mobile character cutoff: raise ground line to 0.82, add MOBILE_SCALE_CAP (0.55) so fighters never shrink too small - Add ₿ bitcoin chest badge to all fighter sprites (scales with tier) - Add sats coin stack on bot profile page proportional to satsWon - Seed dev tournament with 8 mock bots on startup (dev mode only) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
a10c1c9cb6
commit
5ee6b6c88c
@@ -87,10 +87,11 @@ export const HYPERDETAIL_BASE_CHANCE = 0.05 // Base hyperdetail chance
|
||||
export const HYPERDETAIL_INTENSITY_SCALE = 0.45 // Scales with intensity
|
||||
|
||||
// --- Scene layout ---
|
||||
export const GROUND_Y_RATIO = 0.78 // Ground line as fraction of canvas height
|
||||
export const GROUND_Y_RATIO = 0.82 // Ground line as fraction of canvas height
|
||||
export const HOME_A_RATIO = 0.28 // Fighter A home X position ratio
|
||||
export const HOME_B_RATIO = 0.72 // Fighter B home X position ratio
|
||||
export const REFERENCE_HEIGHT = 500 // Reference canvas height for scale factor
|
||||
export const MOBILE_SCALE_CAP = 0.55 // Cap SF on small screens so fighters aren't too tiny
|
||||
export const SPRITE_LOAD_TIMEOUT_MS = 5_000 // Max wait for sprite loading (mobile hang prevention)
|
||||
|
||||
// --- Fighter scaling ---
|
||||
|
||||
Reference in New Issue
Block a user