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>
This commit is contained in:
2026-11-13 15:45:35 +01:00
parent 819ee0a5c3
commit 7a69651b6d
60 changed files with 1895 additions and 207 deletions

View File

@@ -114,21 +114,21 @@
const pal = (body, accent) => ({ body, accent });
RC.LEAGUE = [
{ id: 'rustbucket', name: 'Rustbucket', style: 'brawler', skill: 0.15, prize: 180,
{ id: 'rustbucket', name: 'Rustbucket', style: 'brawler', skill: 0.1, prize: 250,
build: { chassis: 'crate', motor: 'sparky', wheels: 'rubber', battery: 'lead', armour: null, weapon: 'wedge', tower: null }, paint: pal(0x8a5a3a, 0xd9a066) },
{ id: 'tintoad', name: 'Tin Toad', style: 'pusher', skill: 0.25, prize: 240,
{ id: 'tintoad', name: 'Tin Toad', style: 'pusher', skill: 0.2, prize: 330,
build: { chassis: 'doorstop', motor: 'sparky', wheels: 'rubber', battery: 'lead', armour: null, weapon: 'wedge', tower: null }, paint: pal(0x5d8a3a, 0xc8e070) },
{ id: 'buzzkill', name: 'Buzzkill', style: 'brawler', skill: 0.35, prize: 320,
build: { chassis: 'crate', motor: 'hornet', wheels: 'rubber', battery: 'nicd', armour: 'steel', weapon: 'saw', tower: null }, paint: pal(0xd8b020, 0x202020) },
{ id: 'flapjack', name: 'Flapjack', style: 'flanker', skill: 0.45, prize: 420,
build: { chassis: 'doorstop', motor: 'hornet', wheels: 'bigtyre', battery: 'nicd', armour: 'steel', weapon: 'flipper', tower: null }, paint: pal(0x2a6fd8, 0xffffff) },
{ id: 'pincer', name: 'Pincer', style: 'pusher', skill: 0.55, prize: 540,
{ id: 'buzzkill', name: 'Buzzkill', style: 'brawler', skill: 0.3, prize: 430,
build: { chassis: 'crate', motor: 'sparky', wheels: 'rubber', battery: 'lead', armour: null, weapon: 'saw', tower: null }, paint: pal(0xd8b020, 0x202020) },
{ id: 'flapjack', name: 'Flapjack', style: 'flanker', skill: 0.38, prize: 560,
build: { chassis: 'doorstop', motor: 'sparky', wheels: 'bigtyre', battery: 'lead', armour: null, weapon: 'flipper', tower: null }, paint: pal(0x2a6fd8, 0xffffff) },
{ id: 'pincer', name: 'Pincer', style: 'pusher', skill: 0.55, prize: 700,
build: { chassis: 'bulwark', motor: 'bulldog', wheels: 'tracks', battery: 'nicd', armour: 'steel', weapon: 'crusher', tower: null }, paint: pal(0xc0392b, 0xf0c040) },
{ id: 'thunderclap', name: 'Thunderclap', style: 'brawler', skill: 0.65, prize: 680,
{ id: 'thunderclap', name: 'Thunderclap', style: 'brawler', skill: 0.65, prize: 880,
build: { chassis: 'bulwark', motor: 'hornet', wheels: 'bigtyre', battery: 'nicd', armour: 'titan', weapon: 'hammer', tower: 'flamer' }, paint: pal(0x6a3fb0, 0xffa020) },
{ id: 'gravedigger', name: 'Gravedigger', style: 'gunner', skill: 0.8, prize: 860,
build: { chassis: 'scarab', motor: 'hornet', wheels: 'tracks', battery: 'lipo', armour: 'titan', weapon: 'wedge', tower: 'rockets' }, paint: pal(0x2b2f36, 0x50e080) },
{ id: 'overlord', name: 'Overlord', style: 'flanker', skill: 0.95, prize: 1200,
{ id: 'gravedigger', name: 'Gravedigger', style: 'brawler', skill: 0.8, prize: 1100,
build: { chassis: 'scarab', motor: 'hornet', wheels: 'tracks', battery: 'lipo', armour: 'titan', weapon: 'flipper', tower: 'rockets' }, paint: pal(0x2b2f36, 0x50e080) },
{ id: 'overlord', name: 'Overlord', style: 'flanker', skill: 0.95, prize: 1450,
build: { chassis: 'scarab', motor: 'comet', wheels: 'rubber', battery: 'lipo', armour: 'steel', weapon: 'spinner', tower: null }, paint: pal(0x101418, 0xff3030) },
];
RC.DUMMY = { id: 'dummy', name: 'Dummy', style: 'dummy', skill: 0, prize: 0,