v0.2.0 — M7: LLM Integration Frontend ↔ Backend

- api.js: API bridge to FastAPI backend
- Dynamic NPC dialogues via gemma4:12b (cached 30s)
- Periodic world event generation (every ~10s)
- Event validation (no soft-lock)
- Backend health check on startup
- Fallback to static dialogue if LLM offline
- Tested: events , dialogues 
This commit is contained in:
arch_agent
2026-07-17 20:24:58 +02:00
parent 5cf42a5e5d
commit face8023a4
5 changed files with 190 additions and 5 deletions
+1
View File
@@ -74,6 +74,7 @@
<script src="js/camera.js"></script>
<script src="js/player.js"></script>
<script src="js/input.js"></script>
<script src="js/api.js"></script>
<script src="js/game.js"></script>
</body>
</html>