nuke v2 SPA, rebuild as single-file app with working games
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:
Claude Opus 4.6 <noreply@anthropic.com>
Showing
DESIGN.md
0 → 100644
app/core/animate.js
deleted
100644 → 0
app/core/api.js
deleted
100644 → 0
app/core/audio.js
deleted
100644 → 0
app/core/haptics.js
deleted
100644 → 0
app/core/router.js
deleted
100644 → 0
app/core/state.js
deleted
100644 → 0
app/main.js
deleted
100644 → 0
app/screens/home.js
deleted
100644 → 0
app/screens/login.js
deleted
100644 → 0
app/screens/shop.js
deleted
100644 → 0
app/styles/el3ab.css
0 → 100644
This diff is collapsed.
app/styles/reset.css
deleted
100644 → 0
app/styles/shell.css
deleted
100644 → 0
This diff is collapsed.
Please register or sign in to comment