7994e47cff
logo.png gelöscht
2026-04-14 15:03:42 +02:00
Spiel-Generator Workshop
39bdc2fa0a
Coverbild für die projects.md-phw.de Seite
2026-03-15 13:48:22 +01:00
Spiel-Generator Workshop
3ba191a490
ohne dämliche Emojis
2026-03-15 13:25:47 +01:00
Spiel-Generator Workshop
2db4a7cb79
chore: add LICENSE
2026-03-15 13:17:59 +01:00
Spiel-Generator Workshop
da4f6dc102
fix: remove duplicate codegen.js inline block, add missing unlockSection
...
- codegen.js war doppelt: einmal im Haupt-Script (korrekt) und einmal
nochmals inline eingebettet → 'const unlocked already declared' Fehler
- Doppelten Inline-Block entfernt
- unlockSection() fehlte (beim Refactoring verloren gegangen):
als Wrapper für setCodeFocus/unlocked.add wiederhergestellt
- s3init() läuft jetzt korrekt: Board + Palette erscheinen sofort
2026-03-14 22:47:43 +00:00
Spiel-Generator Workshop
99852fc0f5
docs: update README with URL-sharing system documentation
2026-03-14 22:38:06 +00:00
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