Atlas: Infrastruktur + Team-Konventionen + Sprachregel Lernarbeit
- Design-System (assets/css/design-system.css) mit 21 Komponenten, iPad-Responsive-Breakpoints, Touch-Ziele 36px, Music-Player, Glossar-Tooltips - Templates (sims/template.html + student/teacher-Dashboard) - Docs: module-interface.md (inkl. 4a Sprachregel, 4b Leichte Sprache, 4c iPad), content-architecture.md, crash-recovery.md, music-registry.md - Admin-Infrastruktur: admin-modules.html + api/admin-modules.php (Titel, Emoji, Bild, Status, Dauer, Alter pro Modul) - Inbox-System: _inbox/README.md + _status.md fuer Atlas + Briefings an Klima, Glossar, Lehrplan, Fluss - Zentrale SFX-Pipeline (scripts/generate-sounds.py) - DALL-E-Bilder: 8 Badges + 5 Glossar-Repraesentationsbilder (Querformat) - Logo + Inter-Font lokal - PHP-APIs: admin, glossar, levels, licenses, progress, waypoints, assignments, profile, tickets - Spielsprache entfernt (admin-modules, admin-levels, schueler) - Landing-Page-Bearbeitungen (Boote sichtbarer, Button-Hintergrund) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
/**
|
||||
* Heli-Spiel — saubere PHP-Seite
|
||||
* Waypoints kommen ausschließlich aus der DB
|
||||
*/
|
||||
require_once __DIR__ . '/../php/config/app.php';
|
||||
require_once __DIR__ . '/../php/config/db.php';
|
||||
|
||||
$db = getDB();
|
||||
$rows = $db->query("SELECT wp_key, name, lat, lon, wp_type, info FROM geo_waypoints")->fetchAll(PDO::FETCH_ASSOC);
|
||||
|
||||
$wpJs = "{\n";
|
||||
foreach ($rows as $w) {
|
||||
$key = $w['wp_key'];
|
||||
$name = addslashes($w['name']);
|
||||
$wpJs .= " '$key':{lat:{$w['lat']},lon:{$w['lon']},name:'$name'},\n";
|
||||
}
|
||||
$wpJs .= "}";
|
||||
|
||||
// POIs für die Karte (nur Basen, Städte, Gipfel)
|
||||
$poisJs = "[\n";
|
||||
foreach ($rows as $w) {
|
||||
if (in_array($w['wp_type'], ['base','city','peak'])) {
|
||||
$name = addslashes($w['name']);
|
||||
$info = addslashes($w['info'] ?? '');
|
||||
$poisJs .= " {key:'{$w['wp_key']}',name:'$name',lat:{$w['lat']},lon:{$w['lon']},type:'{$w['wp_type']}',info:'$info'},\n";
|
||||
}
|
||||
}
|
||||
$poisJs .= "]";
|
||||
|
||||
// game.html laden
|
||||
$html = file_get_contents(__DIR__ . '/../sims/heli/game.html');
|
||||
|
||||
// Placeholder ersetzen
|
||||
$html = str_replace('/*__DB_WAYPOINTS__*/', "var WP = $wpJs;\nvar wpLoaded = true;\nvar DB_POIS = $poisJs;", $html);
|
||||
|
||||
echo $html;
|
||||
Reference in New Issue
Block a user