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:
114
game/lang.js
114
game/lang.js
@@ -17,7 +17,7 @@ window.LANG = {
|
||||
reset_text: 'Delete your robot, credits and league progress and start again?',
|
||||
reset_yes: 'Yes, start over', cancel: 'Cancel', ok: 'OK', back: 'Back', menu: 'Menu',
|
||||
help_text: 'In the <b>workshop</b> you fit one chassis, motor, wheels and battery, plus armour, a weapon and a tower. Keep under <b>100 kg</b>, and the battery must supply enough power. Win fights for credits and buy better parts.',
|
||||
key_drive: 'drive (tank steering)', key_space: 'Space', key_weapon: 'main weapon', key_tower: 'tower weapon',
|
||||
key_drive: 'drive (simple: screen direction, tank: turn + throttle)', key_space: 'Space', key_weapon: 'main weapon', key_tower: 'tower weapon',
|
||||
key_pad: 'Gamepad', key_pad_text: 'stick, A = weapon, B = tower',
|
||||
help_arena: 'You win by <b>knockout</b>, by pushing the enemy into the <b>pit</b> (it opens at half time) or on damage when the time runs out. Watch the floor saws, flame grilles, spike walls, the <b>forge press</b> and the <b>magnet crane</b> in the corners!',
|
||||
loading: 'loading…', ranking: 'Fame ranking',
|
||||
@@ -69,7 +69,7 @@ window.LANG = {
|
||||
// fight
|
||||
pad_weapon: 'Weapon', pad_tower: 'Tower',
|
||||
fight_go: 'ACTIVATE!', pit_open: 'PIT OPEN!', into_pit: 'INTO THE PIT!', knockout: 'KNOCKOUT!',
|
||||
fight_hint: 'W A S D drive · Space weapon · Shift / E tower · P pause',
|
||||
fight_hint: 'W/S drive · A/D turn · Space weapon · Shift / E tower · C camera · P pause',
|
||||
st_lifted: 'MAGNET!', st_grabbed: 'GRABBED!', st_flipped: 'UPSIDE DOWN!', st_stunned: 'STUNNED', pit_is_open: 'PIT IS OPEN', pit_soon: 'pit opens soon',
|
||||
continue: 'Continue', give_up: 'Give up',
|
||||
// result
|
||||
@@ -102,16 +102,62 @@ window.LANG = {
|
||||
s_screen: 'Display', s_controls: 'Controls', s_career: 'Career', on: 'On', off: 'Off',
|
||||
gfx_low: 'Low', gfx_medium: 'Medium', gfx_high: 'High',
|
||||
// paint booth
|
||||
// online lobby + live PvP
|
||||
rotate_hint: 'Turn your device sideways for a bigger picture',
|
||||
s_account: 'Account',
|
||||
s_arena: 'Arena', arena_random: 'Random', arena_workshop: 'Workshop Pit', arena_foundry: 'The Foundry', arena_arena64: 'Mega Dome',
|
||||
peer_back: 'Opponent is back', no_pause_online: 'No pause in live fights',
|
||||
r_draw_prize: 'Draw prize',
|
||||
online_guest: 'Join as guest (no e-mail)', online_short: '🌍 Online',
|
||||
room_title: '{room} lobby', room_count: '{n} in this room', other_rooms: 'Other countries', you: 'you',
|
||||
pick_room: 'Pick your country - then you see who is sitting in that lobby.',
|
||||
cc_DE: 'Germany',
|
||||
cc_AT: 'Austria',
|
||||
cc_CH: 'Switzerland',
|
||||
cc_GB: 'United Kingdom',
|
||||
cc_US: 'USA',
|
||||
cc_FR: 'France',
|
||||
cc_ES: 'Spain',
|
||||
cc_IT: 'Italy',
|
||||
cc_NL: 'Netherlands',
|
||||
cc_PL: 'Poland',
|
||||
cc_TR: 'Turkey',
|
||||
cc_RU: 'Russia',
|
||||
cc_BR: 'Brazil',
|
||||
cc_JP: 'Japan',
|
||||
cc_KR: 'Korea',
|
||||
cc_XX: 'International',
|
||||
online_play: 'Play online', online_login_text: 'One account for your career and the online lobby - your robot and progress go with it.',
|
||||
f_email: 'E-mail',
|
||||
lobby: 'Global lobby', lobby_empty: 'Nobody else online right now. Keep this open - players show up here.',
|
||||
your_flag: 'Your flag:', challenge: 'Challenge', busy: 'in a fight', quick_match: 'Quick match',
|
||||
waiting_accept: 'Waiting for the other player...', challenge_in: 'Challenge!', wants_fight: 'wants to fight you!',
|
||||
accept: 'Accept', decline: 'Decline', back_to_lobby: 'Back to lobby',
|
||||
peer_lost: 'Connection to opponent lost - AI takes over', peer_left: '(left the fight)',
|
||||
e_EMAIL_EXISTS: 'That e-mail is already registered.', e_EMAIL_NOT_FOUND: 'No account with that e-mail.',
|
||||
e_INVALID_PASSWORD: 'Wrong password.', e_INVALID_LOGIN_CREDENTIALS: 'Wrong e-mail or password.',
|
||||
e_WEAK_PASSWORD: 'Password needs at least 6 characters.', e_INVALID_EMAIL: 'That is not a valid e-mail.',
|
||||
e_MISSING_PASSWORD: 'Please enter a password.', e_OPERATION_NOT_ALLOWED: 'Guest login is off - use e-mail.',
|
||||
e_OFFLINE: 'Online is not set up yet.', e_ERROR: 'Something went wrong. Try again.',
|
||||
pt_open: '🎨 Paint it yourself', pt_title: 'Paint booth', pt_top: 'TOP VIEW · front', pt_side: 'SIDE · front',
|
||||
pt_view_top: 'Top', pt_view_right: 'Right', pt_view_left: 'Left', pt_view_front: 'Front', pt_view_free: 'Turn',
|
||||
pt_brush: 'Brush', pt_spray: 'Spray', pt_erase: 'Eraser', pt_stamp: 'Stamp', pt_text: 'Text', pt_fill: 'Fill',
|
||||
pt_mirror: 'Mirror both sides', pt_size: 'Size', pt_undo: 'Undo', pt_clear: 'Clear all', pt_done: 'Done', pt_text_ph: 'Text or number',
|
||||
s_cam: 'Camera', cam_iso: 'Arena', cam_chase: 'Chase', cam_fpv: 'Cockpit', key_cam: 'switch camera',
|
||||
// easier play + income
|
||||
s_diff: 'Difficulty', diff_easy: 'Easy', diff_normal: 'Normal', diff_hard: 'Hard',
|
||||
s_steer: 'Steering', steer_simple: 'Simple', steer_tank: 'Tank',
|
||||
s_autofire: 'Weapon helper',
|
||||
fight_hint_simple: 'W A S D: drive in that direction · Space weapon · Shift / E tower · C camera · P pause',
|
||||
exhibition_hint: 'Tip: click a beaten opponent for an exhibition fight - half the prize, as often as you like.',
|
||||
exhibition_note: 'Exhibition fight: half prize money, no league progress.',
|
||||
exhibition_btn: 'Exhibition fight!', r_exhibition: 'Exhibition prize', r_dmg_bonus: 'Damage bonus',
|
||||
// shop
|
||||
owned: 'owned', need_money: '{n} credits missing', fight_go_btn: 'Into the arena!',
|
||||
tip_bought: '{name}? Good choice. Let me bolt that on.',
|
||||
tip_overweight: 'Too heavy! The judges weigh every robot - drop a part or pick lighter armour.',
|
||||
tip_power: 'Your battery can\'t feed all that. Buy a stronger battery or a weapon that needs less power.',
|
||||
tip_0: 'Welcome to the workshop! Pick a category on top and click a part to see what it does.',
|
||||
tip_0: 'Welcome to the workshop! Pick a category on top and click a part to see what it does. Tip: a flipper is a great first buy.',
|
||||
tip_1: 'The white bar in the stats shows how your robot changes with the selected part.',
|
||||
tip_2: 'A wedge plus a strong motor is cheap and nasty - shove them into the saws!',
|
||||
tip_3: 'Big tyres keep you driving when a flipper turns you over.',
|
||||
@@ -119,7 +165,10 @@ window.LANG = {
|
||||
tip_5: 'Stay out of the corners: the forge press and the magnet crane don\'t care whose robot it is.',
|
||||
tip_6: 'Tracks win every shoving match, but they are slow.',
|
||||
tip_7: 'Hammers ignore half of the armour. Great against heavy plates.',
|
||||
tip_8: 'Lost a fight? You still get an appearance fee - repairs come off your winnings.',
|
||||
tip_8: 'Lost a fight? You still get an appearance fee and a bonus for every hit.',
|
||||
tip_9: 'Short on credits? Beat an old opponent again in an exhibition fight.',
|
||||
tip_10: 'Too hard? Settings: difficulty Easy, weapon helper on.',
|
||||
tip_11: 'Your 800 starting credits buy a flipper right away - it beats saw robots easily.',
|
||||
},
|
||||
de: {
|
||||
lang_self: 'Deutsch',
|
||||
@@ -135,7 +184,7 @@ window.LANG = {
|
||||
reset_text: 'Roboter, Credits und Liga-Fortschritt löschen und neu anfangen?',
|
||||
reset_yes: 'Ja, neu anfangen', cancel: 'Abbrechen', ok: 'OK', back: 'Zurück', menu: 'Menü',
|
||||
help_text: 'In der <b>Werkstatt</b> baust du je ein Chassis, einen Motor, Räder und eine Batterie ein, dazu Panzerung, Waffe und Turm. Bleib unter <b>100 kg</b>, und die Batterie muss genug Strom liefern. Siege bringen Credits für bessere Teile.',
|
||||
key_drive: 'fahren (Panzersteuerung)', key_space: 'Leertaste', key_weapon: 'Hauptwaffe', key_tower: 'Turmwaffe',
|
||||
key_drive: 'fahren (einfach: Bildschirmrichtung, Panzer: drehen + Gas)', key_space: 'Leertaste', key_weapon: 'Hauptwaffe', key_tower: 'Turmwaffe',
|
||||
key_pad: 'Gamepad', key_pad_text: 'Stick, A = Waffe, B = Turm',
|
||||
help_arena: 'Du gewinnst durch <b>K.o.</b>, indem du den Gegner in die <b>Grube</b> schiebst (öffnet zur Halbzeit) oder nach Schaden, wenn die Zeit abläuft. Achtung vor Bodensägen, Flammengittern, Stachelwänden, der <b>Schmiedepresse</b> und dem <b>Magnetkran</b> in den Ecken!',
|
||||
loading: 'lädt…', ranking: 'Ruhmesliste',
|
||||
@@ -187,7 +236,7 @@ window.LANG = {
|
||||
// fight
|
||||
pad_weapon: 'Waffe', pad_tower: 'Turm',
|
||||
fight_go: 'AKTIVIEREN!', pit_open: 'GRUBE OFFEN!', into_pit: 'IN DIE GRUBE!', knockout: 'K.O.!',
|
||||
fight_hint: 'W A S D fahren · Leertaste Waffe · Shift / E Turm · P Pause',
|
||||
fight_hint: 'W/S fahren · A/D drehen · Leertaste Waffe · Shift / E Turm · C Kamera · P Pause',
|
||||
st_lifted: 'MAGNET!', st_grabbed: 'GEPACKT!', st_flipped: 'AUF DEM KOPF!', st_stunned: 'BETÄUBT', pit_is_open: 'GRUBE IST OFFEN', pit_soon: 'Grube öffnet gleich',
|
||||
continue: 'Weiter', give_up: 'Aufgeben',
|
||||
// result
|
||||
@@ -220,16 +269,62 @@ window.LANG = {
|
||||
s_screen: 'Anzeige', s_controls: 'Steuerung', s_career: 'Karriere', on: 'An', off: 'Aus',
|
||||
gfx_low: 'Niedrig', gfx_medium: 'Mittel', gfx_high: 'Hoch',
|
||||
// paint booth
|
||||
// online lobby + live PvP
|
||||
rotate_hint: 'Dreh dein Gerät quer für ein größeres Bild',
|
||||
s_account: 'Konto',
|
||||
s_arena: 'Arena', arena_random: 'Zufällig', arena_workshop: 'Werkstatt-Grube', arena_foundry: 'Die Gießerei', arena_arena64: 'Mega-Dome',
|
||||
peer_back: 'Gegner ist wieder da', no_pause_online: 'Keine Pause im Live-Kampf',
|
||||
r_draw_prize: 'Unentschieden-Preis',
|
||||
online_guest: 'Als Gast beitreten (ohne E-Mail)', online_short: '🌍 Online',
|
||||
room_title: 'Lobby {room}', room_count: '{n} in diesem Raum', other_rooms: 'Andere Länder', you: 'du',
|
||||
pick_room: 'Wähl dein Land - dann siehst du, wer in dieser Lobby sitzt.',
|
||||
cc_DE: 'Deutschland',
|
||||
cc_AT: 'Österreich',
|
||||
cc_CH: 'Schweiz',
|
||||
cc_GB: 'Großbritannien',
|
||||
cc_US: 'USA',
|
||||
cc_FR: 'Frankreich',
|
||||
cc_ES: 'Spanien',
|
||||
cc_IT: 'Italien',
|
||||
cc_NL: 'Niederlande',
|
||||
cc_PL: 'Polen',
|
||||
cc_TR: 'Türkei',
|
||||
cc_RU: 'Russland',
|
||||
cc_BR: 'Brasilien',
|
||||
cc_JP: 'Japan',
|
||||
cc_KR: 'Korea',
|
||||
cc_XX: 'International',
|
||||
online_play: 'Online spielen', online_login_text: 'Ein Konto für Karriere und Online-Lobby - dein Roboter und Fortschritt gehören dazu.',
|
||||
f_email: 'E-Mail',
|
||||
lobby: 'Globale Lobby', lobby_empty: 'Gerade ist niemand sonst online. Lass das Fenster offen - Spieler erscheinen hier.',
|
||||
your_flag: 'Deine Flagge:', challenge: 'Herausfordern', busy: 'im Kampf', quick_match: 'Schnelles Match',
|
||||
waiting_accept: 'Warte auf den anderen Spieler...', challenge_in: 'Herausforderung!', wants_fight: 'will gegen dich kämpfen!',
|
||||
accept: 'Annehmen', decline: 'Ablehnen', back_to_lobby: 'Zurück zur Lobby',
|
||||
peer_lost: 'Verbindung zum Gegner weg - KI übernimmt', peer_left: '(hat den Kampf verlassen)',
|
||||
e_EMAIL_EXISTS: 'Diese E-Mail ist schon registriert.', e_EMAIL_NOT_FOUND: 'Kein Konto mit dieser E-Mail.',
|
||||
e_INVALID_PASSWORD: 'Falsches Passwort.', e_INVALID_LOGIN_CREDENTIALS: 'E-Mail oder Passwort falsch.',
|
||||
e_WEAK_PASSWORD: 'Passwort braucht mindestens 6 Zeichen.', e_INVALID_EMAIL: 'Das ist keine gültige E-Mail.',
|
||||
e_MISSING_PASSWORD: 'Bitte ein Passwort eingeben.', e_OPERATION_NOT_ALLOWED: 'Gast-Login ist aus - nimm E-Mail.',
|
||||
e_OFFLINE: 'Online ist noch nicht eingerichtet.', e_ERROR: 'Etwas ist schiefgelaufen. Nochmal versuchen.',
|
||||
pt_open: '🎨 Selbst bemalen', pt_title: 'Lackiererei', pt_top: 'OBEN · vorne', pt_side: 'SEITE · vorne',
|
||||
pt_view_top: 'Oben', pt_view_right: 'Rechts', pt_view_left: 'Links', pt_view_front: 'Vorne', pt_view_free: 'Drehen',
|
||||
pt_brush: 'Pinsel', pt_spray: 'Spray', pt_erase: 'Radierer', pt_stamp: 'Stempel', pt_text: 'Text', pt_fill: 'Füllen',
|
||||
pt_mirror: 'Beide Seiten spiegeln', pt_size: 'Größe', pt_undo: 'Zurück', pt_clear: 'Alles löschen', pt_done: 'Fertig', pt_text_ph: 'Text oder Nummer',
|
||||
s_cam: 'Kamera', cam_iso: 'Arena', cam_chase: 'Verfolger', cam_fpv: 'Cockpit', key_cam: 'Kamera wechseln',
|
||||
// easier play + income
|
||||
s_diff: 'Schwierigkeit', diff_easy: 'Leicht', diff_normal: 'Normal', diff_hard: 'Schwer',
|
||||
s_steer: 'Steuerung', steer_simple: 'Einfach', steer_tank: 'Panzer',
|
||||
s_autofire: 'Waffen-Hilfe',
|
||||
fight_hint_simple: 'W A S D: in diese Richtung fahren · Leertaste Waffe · Shift / E Turm · C Kamera · P Pause',
|
||||
exhibition_hint: 'Tipp: Klick einen besiegten Gegner für einen Schaukampf – halbes Preisgeld, so oft du willst.',
|
||||
exhibition_note: 'Schaukampf: halbes Preisgeld, kein Liga-Fortschritt.',
|
||||
exhibition_btn: 'Schaukampf!', r_exhibition: 'Schaukampf-Preis', r_dmg_bonus: 'Schadensbonus',
|
||||
// shop
|
||||
owned: 'im Besitz', need_money: 'Es fehlen {n} Credits', fight_go_btn: 'Ab in die Arena!',
|
||||
tip_bought: '{name}? Gute Wahl. Ich schraub das gleich dran.',
|
||||
tip_overweight: 'Zu schwer! Jeder Roboter wird gewogen – lass ein Teil weg oder nimm leichtere Panzerung.',
|
||||
tip_power: 'Deine Batterie schafft das nicht. Kauf eine stärkere oder nimm eine Waffe mit weniger Strombedarf.',
|
||||
tip_0: 'Willkommen in der Werkstatt! Wähl oben eine Kategorie und klick ein Teil an, um zu sehen, was es kann.',
|
||||
tip_0: 'Willkommen in der Werkstatt! Wähl oben eine Kategorie und klick ein Teil an, um zu sehen, was es kann. Tipp: Ein Flipper ist ein super erster Kauf.',
|
||||
tip_1: 'Der weiße Balken bei den Werten zeigt, wie sich dein Roboter mit dem gewählten Teil ändert.',
|
||||
tip_2: 'Keil plus starker Motor: billig und gemein – schieb sie in die Sägen!',
|
||||
tip_3: 'Große Reifen fahren weiter, wenn dich ein Flipper umdreht.',
|
||||
@@ -237,6 +332,9 @@ window.LANG = {
|
||||
tip_5: 'Bleib aus den Ecken: Schmiedepresse und Magnetkran ist egal, wessen Roboter da steht.',
|
||||
tip_6: 'Ketten gewinnen jedes Schiebeduell, sind aber langsam.',
|
||||
tip_7: 'Hämmer ignorieren die halbe Panzerung. Ideal gegen dicke Platten.',
|
||||
tip_8: 'Kampf verloren? Antrittsgeld gibt es trotzdem – die Reparatur geht davon ab.',
|
||||
tip_8: 'Kampf verloren? Antrittsgeld gibt es trotzdem, dazu einen Bonus für jeden Treffer.',
|
||||
tip_9: 'Knapp bei Kasse? Besieg einen alten Gegner nochmal im Schaukampf.',
|
||||
tip_10: 'Zu schwer? Einstellungen: Schwierigkeit Leicht, Waffen-Hilfe an.',
|
||||
tip_11: 'Mit deinen 800 Start-Credits kannst du sofort einen Flipper kaufen – der schlägt Säge-Roboter locker.',
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user