feat: add fullscreen mode and extract shared game engine

- Add new fullscreen game mode playable in a dedicated browser tab
- Extract shared game logic into `engine.js` to be used by both popup and fullscreen modes
- Implement self-protection to prevent closing the game tab or popup tab
- Update documentation and bump version to 1.1.0
This commit is contained in:
Janik Dietz 2026-08-04 08:02:53 +02:00
parent 0f566b02ac
commit 25fc6fb345
Signed by: Tronax
SSH key fingerprint: SHA256:2pKKXDZucWvaF/GzXNz0FY53EAO1YDLN80bqS+TTz/o
8 changed files with 1064 additions and 798 deletions

View file

@ -27,6 +27,7 @@
</div>
<button id="start-btn" class="primary-btn">SPIEL STARTEN</button>
<button id="fullscreen-btn" class="secondary-btn">🖥️ Im Vollbild spielen</button>
<div class="highscore-display">
<span class="hs-label">🏆 Highscore</span>
@ -91,6 +92,6 @@
</div>
</div>
<script src="popup.js"></script>
<script type="module" src="popup.js"></script>
</body>
</html>