main init
This commit is contained in:
26
docs/firebase/README.md
Normal file
26
docs/firebase/README.md
Normal file
@@ -0,0 +1,26 @@
|
||||
# Online-Highscores (Firebase Realtime Database)
|
||||
|
||||
Das Spiel spricht die Datenbank über die REST-API an (`game/kit/kit-scores.js`), ohne SDK und ohne Login.
|
||||
Solange `DB_URL` in `game/game.js` leer ist, läuft alles offline (keine Namenseingabe, keine Liste).
|
||||
|
||||
## Einrichten (einmal, ~5 Minuten)
|
||||
|
||||
1. [Firebase-Konsole](https://console.firebase.google.com/) → **Projekt hinzufügen** (Name z. B. `robotclash`, Analytics aus).
|
||||
2. **Build → Realtime Database → Datenbank erstellen** → Standort **europe-west1** → „Im gesperrten Modus starten“.
|
||||
3. Tab **Regeln**: alles durch den Inhalt von `database.rules.json` ersetzen → **Veröffentlichen**.
|
||||
4. Die URL oben im Tab **Daten** (`https://<projekt>-default-rtdb.europe-west1.firebasedatabase.app`)
|
||||
in `game/game.js` bei `DB_URL` eintragen.
|
||||
|
||||
## Was die Regeln erlauben
|
||||
|
||||
- Lesen: nur `highscores` (sortiert/begrenzt nach `score`).
|
||||
- Schreiben: nur **neue** Einträge unter `highscores` – bestehende können nicht geändert/gelöscht werden.
|
||||
- Jeder Eintrag hat genau `name` (1–20 Zeichen), `score` (1–10 000 000), `level` (1–999), `time` (Server-Zeit).
|
||||
|
||||
## Grenzen
|
||||
|
||||
Punkte lassen sich per Hand-Request fälschen; die Regeln prüfen nur Format und Bereich. Echter Schutz
|
||||
bräuchte eine Server-Prüfung (Cloud Function). Einträge löschen: Konsole → **Daten** → `highscores` →
|
||||
Eintrag → ⋮ / Papierkorb. Schimpfwort-Namen blockt `Kit.badName` bei der Eingabe und blendet sie in der Liste aus.
|
||||
|
||||
Referenz im Einsatz: `D:\Oculusquest\Projekt\Pipefix\docs\firebase\`.
|
||||
19
docs/firebase/database.rules.json
Normal file
19
docs/firebase/database.rules.json
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"rules": {
|
||||
".read": false,
|
||||
".write": false,
|
||||
"highscores": {
|
||||
".read": true,
|
||||
".indexOn": ["score"],
|
||||
"$entry": {
|
||||
".write": "!data.exists()",
|
||||
".validate": "newData.hasChildren(['name', 'score', 'level', 'time'])",
|
||||
"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 }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
38
docs/itchio/README.md
Normal file
38
docs/itchio/README.md
Normal file
@@ -0,0 +1,38 @@
|
||||
# itch.io-Seite einrichten
|
||||
|
||||
Bilder erzeugen (Cover, Banner, Hintergrund) aus einem Hintergrundbild und dem Titel:
|
||||
|
||||
```
|
||||
py -3.12 D:\Oculusquest\Projekt\_Tools\Itch\itch_images.py --title "Robot Clash" --tagline "…" --backdrop <bild.png> --out docs\itchio
|
||||
```
|
||||
|
||||
Upload-Dateien: `.\build.ps1` → `release\robotclash-web.zip` (Browser) und `release\RobotClash.exe` (Windows).
|
||||
|
||||
## Felder unter „Edit game“
|
||||
|
||||
| Feld | Eintrag |
|
||||
|---|---|
|
||||
| Title | `Robot Clash` |
|
||||
| Project URL | `robotclash` |
|
||||
| Short description or tagline | _ein Satz_ |
|
||||
| Classification | Games |
|
||||
| Kind of project | **HTML** |
|
||||
| Release status | Released |
|
||||
| Pricing | z. B. „No payments“ oder „Donation“ |
|
||||
| Uploads | `release/robotclash-web.zip` → „This file will be played in the browser“ · optional `release/RobotClash.exe` → Windows |
|
||||
| Viewport dimensions | `1120 × 720` (oder passend zum Seitenverhältnis von `#app`) |
|
||||
| Frame options | ✅ Fullscreen button · Mobile friendly nur wenn Touch getestet |
|
||||
| Description | Inhalt von `description.html` (im Browser öffnen, Strg+A, kopieren, einfügen) |
|
||||
| Genre / Tags | passend, max. 10 Tags |
|
||||
| AI generation disclosure | **Yes** – Grafik/Sound mit KI erzeugt (ComfyUI, Flux, Stable Audio) |
|
||||
| Input methods | Keyboard, Mouse, Touchscreen (falls getestet) |
|
||||
| Cover image | `cover.png` (630×500) |
|
||||
| Screenshots | 3–5 Stück, 1920×1080 oder Spielgröße |
|
||||
|
||||
## Seiten-Design („Edit theme“)
|
||||
|
||||
- Banner: `banner_960x256.png` (oder `banner_1920x512.png`)
|
||||
- Background: `background_1920x1200.jpg`, Repeat aus, oben mittig
|
||||
- Farben passend zum Spiel (`:root` in `game/index.html`)
|
||||
|
||||
Referenz im Einsatz: `D:\Oculusquest\Projekt\Pipefix\docs\itchio\`.
|
||||
28
docs/itchio/description.html
Normal file
28
docs/itchio/description.html
Normal file
@@ -0,0 +1,28 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head><meta charset="utf-8"><title>Robot Clash - itch.io description</title></head>
|
||||
<body style="max-width:720px;margin:40px auto;font:16px/1.5 system-ui,sans-serif">
|
||||
<!-- Open in a browser, Ctrl+A, copy, paste into the itch.io "Description" field.
|
||||
Placeholder text - the itchiocreater skill writes the real one. -->
|
||||
<h2>🎮 Robot Clash</h2>
|
||||
<p><strong>One sentence that sells the game.</strong> Two or three more that say what you do and why it is fun.</p>
|
||||
|
||||
<h3>✨ Features</h3>
|
||||
<ul>
|
||||
<li>⭐ <strong>Feature one</strong> – …</li>
|
||||
<li>⭐ <strong>Feature two</strong> – …</li>
|
||||
<li>🏆 <strong>Online highscores</strong></li>
|
||||
</ul>
|
||||
|
||||
<h3>🕹️ Controls</h3>
|
||||
<p>⌨️ <strong>Arrows / WASD</strong> move · <strong>P / Esc</strong> pause · <strong>M</strong> sound · <strong>F11</strong> fullscreen</p>
|
||||
|
||||
<h3>🌍 Languages</h3>
|
||||
<p>English, Deutsch (switch in the menu).</p>
|
||||
|
||||
<h3>💬 Community</h3>
|
||||
<p>Feedback and ideas are welcome on <a href="https://discord.gg/Ej4JPmCZva">Discord</a>.</p>
|
||||
|
||||
<p><em>© 2026 Michael Media. Graphics, music and sound were created with the help of AI tools (ComfyUI).</em></p>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user