2026-11-13 00:41:54 +01:00
|
|
|
{
|
|
|
|
|
"rules": {
|
|
|
|
|
".read": false,
|
|
|
|
|
".write": false,
|
|
|
|
|
"highscores": {
|
|
|
|
|
".read": true,
|
2026-11-17 14:17:50 +01:00
|
|
|
".indexOn": [
|
|
|
|
|
"score"
|
|
|
|
|
],
|
2026-11-13 00:41:54 +01:00
|
|
|
"$entry": {
|
|
|
|
|
".write": "!data.exists()",
|
|
|
|
|
".validate": "newData.hasChildren(['name', 'score', 'level', 'time'])",
|
2026-11-17 14:17:50 +01:00
|
|
|
"name": {
|
|
|
|
|
".validate": "newData.isString() && newData.val().length >= 1 && newData.val().length <= 20"
|
|
|
|
|
},
|
|
|
|
|
"score": {
|
|
|
|
|
".validate": "newData.isNumber() && newData.val() > 0 && newData.val() <= 10000000"
|
|
|
|
|
},
|
|
|
|
|
"level": {
|
|
|
|
|
".validate": "newData.isNumber() && newData.val() >= 1 && newData.val() <= 999"
|
|
|
|
|
},
|
|
|
|
|
"time": {
|
|
|
|
|
".validate": "newData.val() == now"
|
|
|
|
|
},
|
|
|
|
|
"$other": {
|
|
|
|
|
".validate": false
|
|
|
|
|
}
|
2026-11-13 00:41:54 +01:00
|
|
|
}
|
Online-Lobby, Arenen, Lackiererei, ComfyGen-Grafik, Verschleierung
Grosse Erweiterung ueber die erste spielbare Version hinaus:
- Online (Firebase ueber REST, kein SDK): Konto per E-Mail, globale Lobby
mit Laender-Raeumen, Herausfordern, Live-PvP (Host rechnet, Gast
interpoliert, KI-Uebernahme bei Lag). Gast kann anonym beitreten.
net.js / lobby.js / netfight.js, Regeln in docs/firebase.
- 3 Arenen in verschiedenen Groessen (RC.ARENAS, half 8/12/16), Kamera +
Licht + Boden skalieren; Liga skaliert die Arena mit, Setting + online
aus Seed. Harte Rams/Wandtreffer schleudern Roboter auf den Rucken.
- Intro (3D-Kamerafahrt), Titel, Einstellungen (Kamera, Schwierigkeit,
Steuerung, Grafik, Arena), Lackiererei (painter.js, selbst bemalen).
- Shop mit ComfyGen-Sprites (aus den 3D-Teilen erzeugt), Liga-Gegner sehen
aus wie ihre Portraits (looks.js), kraeftigere Waffen-Modelle.
- Oekonomie: Startgeld 800, Schadensbonus, Schaukaempfe, Online-Preisgeld.
- Verschleierung: build.ps1 -Obfuscate (terser), tablet-taugliche Touch-UI.
- Tests: tests/sim.test.js, balance.js, online.test.js. Dev-Tools in tools/.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-13 15:45:35 +01:00
|
|
|
},
|
|
|
|
|
"users": {
|
|
|
|
|
"$uid": {
|
|
|
|
|
".read": "auth != null && auth.uid == $uid",
|
|
|
|
|
".write": "auth != null && auth.uid == $uid"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"lobby": {
|
|
|
|
|
".read": "auth != null",
|
|
|
|
|
"$uid": {
|
|
|
|
|
".write": "auth != null && auth.uid == $uid",
|
|
|
|
|
".validate": "newData.hasChildren(['name', 'ts'])",
|
2026-11-17 14:17:50 +01:00
|
|
|
"name": {
|
|
|
|
|
".validate": "newData.isString() && newData.val().length <= 20"
|
|
|
|
|
},
|
|
|
|
|
"flag": {
|
|
|
|
|
".validate": "newData.isString() && newData.val().length <= 4"
|
|
|
|
|
},
|
|
|
|
|
"ts": {
|
|
|
|
|
".validate": "newData.isNumber()"
|
|
|
|
|
},
|
|
|
|
|
"$other": {
|
|
|
|
|
".validate": true
|
|
|
|
|
}
|
Online-Lobby, Arenen, Lackiererei, ComfyGen-Grafik, Verschleierung
Grosse Erweiterung ueber die erste spielbare Version hinaus:
- Online (Firebase ueber REST, kein SDK): Konto per E-Mail, globale Lobby
mit Laender-Raeumen, Herausfordern, Live-PvP (Host rechnet, Gast
interpoliert, KI-Uebernahme bei Lag). Gast kann anonym beitreten.
net.js / lobby.js / netfight.js, Regeln in docs/firebase.
- 3 Arenen in verschiedenen Groessen (RC.ARENAS, half 8/12/16), Kamera +
Licht + Boden skalieren; Liga skaliert die Arena mit, Setting + online
aus Seed. Harte Rams/Wandtreffer schleudern Roboter auf den Rucken.
- Intro (3D-Kamerafahrt), Titel, Einstellungen (Kamera, Schwierigkeit,
Steuerung, Grafik, Arena), Lackiererei (painter.js, selbst bemalen).
- Shop mit ComfyGen-Sprites (aus den 3D-Teilen erzeugt), Liga-Gegner sehen
aus wie ihre Portraits (looks.js), kraeftigere Waffen-Modelle.
- Oekonomie: Startgeld 800, Schadensbonus, Schaukaempfe, Online-Preisgeld.
- Verschleierung: build.ps1 -Obfuscate (terser), tablet-taugliche Touch-UI.
- Tests: tests/sim.test.js, balance.js, online.test.js. Dev-Tools in tools/.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-13 15:45:35 +01:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"challenges": {
|
|
|
|
|
"$to": {
|
|
|
|
|
".read": "auth != null && auth.uid == $to",
|
|
|
|
|
"$from": {
|
|
|
|
|
".write": "auth != null && (auth.uid == $from || auth.uid == $to)",
|
|
|
|
|
".validate": "!newData.exists() || (newData.child('from').val() == $from)"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"matches": {
|
|
|
|
|
"$id": {
|
|
|
|
|
".read": "auth != null && $id.contains(auth.uid)",
|
|
|
|
|
".write": "auth != null && $id.contains(auth.uid)",
|
|
|
|
|
"state": {
|
|
|
|
|
".validate": "$id.beginsWith(auth.uid + '_')"
|
|
|
|
|
},
|
|
|
|
|
"in": {
|
|
|
|
|
".validate": "$id.endsWith('_' + auth.uid)"
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-11-17 14:17:50 +01:00
|
|
|
},
|
|
|
|
|
"live": {
|
|
|
|
|
".read": true,
|
|
|
|
|
".write": "auth != null && auth.uid === 'sQwhv1p7KvNHuRLHuyf2fbQI86F2'"
|
|
|
|
|
},
|
|
|
|
|
"ranks": {
|
|
|
|
|
".read": true,
|
|
|
|
|
".indexOn": [
|
|
|
|
|
"fame"
|
|
|
|
|
],
|
|
|
|
|
"$uid": {
|
|
|
|
|
".write": "auth != null && auth.uid == $uid",
|
|
|
|
|
".validate": "newData.hasChildren(['name','fame','ts'])",
|
|
|
|
|
"name": {
|
|
|
|
|
".validate": "newData.isString() && newData.val().length >= 1 && newData.val().length <= 20"
|
|
|
|
|
},
|
|
|
|
|
"fame": {
|
|
|
|
|
".validate": "newData.isNumber() && newData.val() >= 0 && newData.val() <= 10000000"
|
|
|
|
|
},
|
|
|
|
|
"cls": {
|
|
|
|
|
".validate": "newData.isString() && newData.val().length <= 10"
|
|
|
|
|
},
|
|
|
|
|
"season": {
|
|
|
|
|
".validate": "newData.isNumber() && newData.val() >= 1 && newData.val() <= 999"
|
|
|
|
|
},
|
|
|
|
|
"ts": {
|
|
|
|
|
".validate": "newData.val() == now"
|
|
|
|
|
},
|
|
|
|
|
"$other": {
|
|
|
|
|
".validate": false
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"admin": {
|
|
|
|
|
".read": "auth != null && auth.uid === 'sQwhv1p7KvNHuRLHuyf2fbQI86F2'",
|
|
|
|
|
".write": "auth != null && auth.uid === 'sQwhv1p7KvNHuRLHuyf2fbQI86F2'"
|
|
|
|
|
},
|
|
|
|
|
"tourney": {
|
|
|
|
|
".read": "auth != null",
|
|
|
|
|
".write": "auth != null",
|
|
|
|
|
"reg": {
|
|
|
|
|
"$uid": {
|
|
|
|
|
".write": "auth != null && auth.uid == $uid"
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-11-13 00:41:54 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|