Spiel-Generator Workshop
4afa0e0a99
feat: URL-sharing system with QR code + share buttons
...
- buildShareURL(): JSON → pako.deflate → Base64 → URL-Hash
- doPublish(): Share-Modal mit QR-Code, Kopieren, E-Mail, WhatsApp, Native Share
- game.html: loadGameConfig() liest URL-Hash vor localStorage
- Format 'z:' = komprimiert (pako), 'j:' = plain Base64
- Fallback auf localStorage (Editor-Test), dann Demo-Config
- CDN: pako 2.1.0 + qrcodejs 1.0.0 (cloudflare)
- Kein Backend nötig: Link ist selbsttragend (~800-1100 Zeichen)
- QR-Code-tauglich für alle normalen Konfigurationen
2026-03-14 22:37:52 +00:00
Spiel-Generator Workshop
43752fa8e4
fix: s3 board+palette init, module loading order, openMGTest API
...
- editor.html: script tags for all 14 modules now correctly BEFORE init
- init script moved to last <script> block, runs after all modules loaded
- openMGTest() now uses MG_<id>.preview() from module system
- closeMGTest() calls mgTestActive.stop() to clean up properly
- mgTestWrap div replaces static canvas (modules render into it)
- BACKGROUNDS array extended with color+glow for theme-aware previews
- game.html: getMgInfo() reads from loaded modules dynamically
2026-03-14 22:21:58 +00:00
Spiel-Generator Workshop
016be6ea90
feat: initial project structure with modular mini-game system
...
- editor.html: 5-step game editor with live Python code split-screen
- game.html: playable board game engine
- codegen.js: Python live-code generator (extracted from editor)
- logo.png: PH Weingarten logo (extracted from Base64)
- minigames/_api.js: shared Mini-Game API (makeCanvas, onResult, helpers)
- 12 Mini-Games as individual modules (launch + preview API):
snake, flappy, memory, quiz, reaction,
basketball, catch, maze, simon, typing, puzzle, spotdiff
- README.md with architecture docs and deployment guide
Refactoring highlights:
- editor.html: 251 KB → 102 KB (-59%)
- Mini-games fully decoupled, each ~100-200 lines
- All 12 games now have working launch() + preview()
- Maze uses recursive backtracker algorithm
- spotdiff uses canvas-drawn scene with 5 differences
2026-03-14 22:12:25 +00:00