• Mahmoud Aglan's avatar
    nuke v2 SPA, rebuild as single-file app with working games · e620362f
    Mahmoud Aglan authored
    The ES modules approach was overengineered and broken:
    - Import maps failed silently
    - Game engines couldn't find window.App
    - Nothing was responsive
    
    New approach: everything in index.php + one CSS file.
    - Loads public/js/app.js (game engines need App.fetch, App.toast etc)
    - Simple defineScreen() router — no modules, no imports, no build step
    - Chess game works: loads chess.min.js + board.js + game.js, enters immersive mode
    - Ludo/Domino/Backgammon lobbies create games via API
    - All screens responsive (max-width adapts, clamp() on hero heights)
    - Visual identity from DESIGN.md: game-specific gradients, 20px radius cards, gold brand
    - Header shows level + coins + gems (the game currencies, not chess ELO)
    - DESIGN.md added as the visual specification document
    Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
    e620362f
DESIGN.md 4.24 KB