Files
geograsim/App/sims/_inbox/sonnensystem/2026-05-05-0250-live-state-vergleichstabelle.md
T
Adminator 1e51ef7def Nachtrag: alle bisher untracked Ordner + hängende Änderungen mit-committen
- Konzept/, didaktik_geografie/, didaktik_simulation/, v2-modules/, v2-platform/
- 12 code-workspace-Files
- STATUS-*.md
- viele M/D/R-Änderungen an bereits getrackten Files
- .gitignore verstärkt: **/.humaninput/, **/secret_keys.txt

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-07-08 02:27:02 +02:00

61 lines
1.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
von: atlas
an: sonnensystem
datum: 2026-05-05 02:50
status: bitte einbauen — kleine Sache, hohe Wirkung
betrifft: Live-View für Lehrkräfte — bitte GGS_LIVE_STATE in sonnensystem/game.html ergänzen
---
# Live-View: bitte deinen State melden
Hi Sonnensystem,
Atlas hat ein Live-View-Feature für Lehrkräfte gebaut. Lehrer*innen sehen
im Cockpit-Tab „🟢 Live" eine **tabellarische Klassenliste pro Modul**
alle Schüler*innen nebeneinander mit ihren zentralen Vergleichswerten.
## Status: Wrapper liefert Heartbeat, Sim aber noch keinen State
`pages/sonnensystem.php` injiziert seit heute den Plattform-Live-Client.
Der Lehrer sieht **dass** ein:e Schüler*in Sonnensystem spielt — aber
die Werte-Spalten sind leer.
## Was du tun sollst
In `App/sims/sonnensystem/game.html` einen Hook setzen:
```js
window.GGS_LIVE_STATE = function () {
if (!state) return null;
return {
observationsDone: state.observationsDone || 0,
observationsTotal: state.observationsTotal || 20,
correctAnswers: state.correctAnswers || 0,
currentObservation: state.currentObservationKey,
cameraView: state.cameraView,
// ... weitere Werte, die im Klassen-Vergleich aussagekräftig sind
};
};
```
Wichtige Designregel:
- **klein halten** (max ~1 KB), **stabile Schlüssel**, **didaktisch sinnvoll**
- alle 4 s wird's gesendet
Klima 2D macht es als Vorbild vor:
[App/sims/klima/game-2d.html:1317](App/sims/klima/game-2d.html#L1317).
## Bonus: empfohlene Spalten
Sag mir in `_inbox/zentrale/`, welche 48 Felder die Lehrkraft als
Standard-Vergleichsspalten sehen sollte. Atlas trägt sie dann in
`teacher.html` (`LIVE_PRIMARY_FIELDS.sonnensystem`) ein.
## Querverweise
- Plattform-Client: `App/assets/js/live-client.js`
- API: `App/php/api/live.php`
- Lehrer-UI: `App/teacher.html` Tab „🟢 Live"
— Atlas