Preserve interpolation braces, invariant number formatting, ON/OFF updates and line breaks. Update both initial and refresh paths, portrait and landscape. Exact names/unlocks/free charges: Scripts/NeonWavesGame.cs; effect/help strings: Scripts/NeonWavesGame.cs. Level names/hints remain separate JSON content. If a title appears in art, Title property or another screen, update those visible uses deliberately without renaming GameId, namespace, resources or save keys.
Hard-coded game strings do not automatically use shared localization. To translate the interface, route every display assignment through your translation table. Dictionaries, word banks and theme pools are independent gameplay assets and need separate validation. Test help, settings, results, tutorial and helper introductions after a fresh launch.
| Source | Exact current code |
|---|
NeonWavesGame.cs:23 / class/static declarations | new HelperDef { Id = "shield", Name = "Shield", Sprite = "helper_shield", Col = "#2EF2FF", Unlock = 4, Free = 3, Cost = 30, Key = KeyCode.Alpha1, |
NeonWavesGame.cs:24 / class/static declarations | Desc = "Absorbs one crash. You ghost through for a moment, then fly on.", Guide = "Tap <color=#2EF2FF>SHIELD</color> to arm it. It will absorb one crash!" }, |
NeonWavesGame.cs:25 / class/static declarations | new HelperDef { Id = "slowmo", Name = "Slow-mo", Sprite = "helper_slowmo", Col = "#B07CFF", Unlock = 7, Free = 2, Cost = 40, Key = KeyCode.Alpha2, |
NeonWavesGame.cs:26 / class/static declarations | Desc = "Slows time to 60% for 10 seconds.", Guide = "Tap <color=#B07CFF>SLOW-MO</color> for 10 seconds of slower time." }, |
NeonWavesGame.cs:27 / class/static declarations | new HelperDef { Id = "flag", Name = "Flag", Sprite = "helper_flag", Col = "#A8FF3E", Unlock = 10, Free = 3, Cost = 30, Key = KeyCode.Alpha3, |
NeonWavesGame.cs:28 / class/static declarations | Desc = "Plants a checkpoint. Crashes respawn you at the flag until you leave the level.", Guide = "Tap <color=#A8FF3E>FLAG</color> to plant a checkpoint right here." }, |
NeonWavesGame.cs:29 / class/static declarations | new HelperDef { Id = "magnet", Name = "Magnet", Sprite = "helper_magnet", Col = "#FFB23E", Unlock = 14, Free = 2, Cost = 30, Key = KeyCode.Alpha4, |
NeonWavesGame.cs:30 / class/static declarations | Desc = "Pulls nearby orbs to you for 15 seconds.", Guide = "Tap <color=#FFB23E>MAGNET</color>: nearby orbs fly to you for 15 seconds." }, |
NeonWavesGame.cs:299 / protected override void Update() | if (_slowLeft > 0) { _slowLeft -= dt; if (_slowLeft <= 0) { HzAudio.Play("slowmo_end", 0.5f); W.SetFxSpeed(1f); RefreshHelpers(); } } |
NeonWavesGame.cs:374 / void StepOnce() | Toast("Shield saved you!", HzUI.Hex(Defs[HShield].Col), 1.1f, 0.72f); |
NeonWavesGame.cs:517 / void OnHelper(int h) | if (_endless && h == HFlag) { Toast("No flags in the endless run!", Color.white, 1.2f, 0.7f); HzAudio.Play("locked", 0.5f); return; } |
NeonWavesGame.cs:518 / void OnHelper(int h) | if (!Unlocked(h)) { HzAudio.Play("locked", 0.5f); Toast($"{Defs[h].Name} unlocks at level {Defs[h].Unlock}", Color.white, 1.2f, 0.7f); return; } |
NeonWavesGame.cs:542 / void Activate(int h) | Toast("Checkpoint planted!", col, 1.1f, 0.72f); |
NeonWavesGame.cs:556 / void OfferRefill(int h) | var p = NeonPopup($"Out of {d.Name}", $"You have {Wallet} orbs.", HzUI.Hex(d.Col), |
NeonWavesGame.cs:560 / void OfferRefill(int h) | else { HzAudio.Play("locked", 0.5f); Toast("Not enough orbs: collect more in levels!", Color.white, 1.4f, 0.6f); } |
NeonWavesGame.cs:678 / public override string DebugCommand(string cmd) | case "helper": if (parts.Length > 1 && int.TryParse(parts[1], out var h) && h >= 0 && h < 4) { OnHelper(h); return "ok"; } return "usage"; |
NeonWavesGame.UI.cs:39 / void BuildUi() | _title = HzUI.Label("Title", _hud, "", P ? 40 : 36, Ink, P ? TextAnchor.MiddleCenter : TextAnchor.MiddleLeft); |
NeonWavesGame.UI.cs:41 / void BuildUi() | _attemptTxt = HzUI.Label("Attempt", _hud, "", P ? 30 : 28, Dim, P ? TextAnchor.MiddleCenter : TextAnchor.MiddleLeft, false); |
NeonWavesGame.UI.cs:52 / void BuildUi() | _pctTxt = HzUI.Label("Pct", _hud, "0%", P ? 46 : 42, Color.white); |
NeonWavesGame.UI.cs:57 / void BuildUi() | _orbTxt = HzUI.Label("Orbs", _hud, "0/0", P ? 42 : 40, Color.white, TextAnchor.MiddleLeft); |
NeonWavesGame.UI.cs:60 / void BuildUi() | _prompt = HzUI.Label("Prompt", Root, "", P ? 62 : 56, Color.white); |
NeonWavesGame.UI.cs:70 / void BuildUi() | _loadingTxt = HzUI.Label("T", _loading, "", 52, Ink); _loadingTxt.rectTransform.Stretch(); |
NeonWavesGame.UI.cs:78 / void BuildUi() | _guideTxt = HzUI.Label("T", gcard.transform, "", 44, Color.white, TextAnchor.MiddleCenter, false); |
NeonWavesGame.UI.cs:91 / void BuildHelperBar() | _helperBar = HzUI.Rect("Helpers", Root); |
NeonWavesGame.UI.cs:98 / void BuildHelperBar() | var b = HzUI.Button("Helper" + i, _helperBar, null, new Color(0.08f, 0.07f, 0.2f, 0.85f), Color.white, () => OnHelper(h), 40, (int)(size * 0.28f)); |
NeonWavesGame.UI.cs:111 / void BuildHelperBar() | ui.badge = HzUI.Label("N", ui.badgeBg.transform, "0", (int)(size * 0.24f), Color.white); ui.badge.rectTransform.Stretch(); |
NeonWavesGame.UI.cs:116 / void BuildHelperBar() | ui.lockTxt = HzUI.Label("Lv", ui.lockImg.transform, "LV " + Defs[i].Unlock, (int)(size * 0.2f), Dim); |
NeonWavesGame.UI.cs:118 / void BuildHelperBar() | var key = HzUI.Label("Key", b.transform, P ? "" : (i + 1).ToString(), 24, Dim); |
NeonWavesGame.UI.cs:145 / void RefreshHud(bool force) | _pctTxt.text = m + " m"; |
NeonWavesGame.UI.cs:150 / void RefreshHud(bool force) | if (force) _title.text = $"ENDLESS RUN · best {EndlessBest} m"; |
NeonWavesGame.UI.cs:158 / void RefreshHud(bool force) | _pctTxt.text = pct + "%"; |
NeonWavesGame.UI.cs:163 / void RefreshHud(bool force) | if (force) _title.text = _playLevel <= NwData.Curated ? $"{(_playLevel - 1) / 5 + 1}-{(_playLevel - 1) % 5 + 1} {_level.name.ToUpperInvariant()}" : $"DEEP SPACE {_playLevel} {_level.name.ToUpperInvariant()}"; |
NeonWavesGame.UI.cs:165 / void RefreshHud(bool force) | if (force || _attempt != _shownAttempt) { _shownAttempt = _attempt; _attemptTxt.text = "Attempt " + _attempt; } |
NeonWavesGame.UI.cs:166 / void RefreshHud(bool force) | if (force || _collected != _shownOrbs) { _shownOrbs = _collected; _orbTxt.text = _endless ? _collected.ToString() : _collected + "/" + _track.Orbs.Count; } |
NeonWavesGame.UI.cs:177 / void RefreshHelpers() | if (!usable) ui.lockTxt.text = "OFF"; |
NeonWavesGame.UI.cs:178 / void RefreshHelpers() | else ui.lockTxt.text = "LV " + Defs[i].Unlock; |
NeonWavesGame.UI.cs:181 / void RefreshHelpers() | ui.badge.text = c > 0 ? c.ToString() : "+"; |
NeonWavesGame.UI.cs:286 / void ShowPause() | var p = NeonPopup("Paused", _endless ? $"{Mathf.FloorToInt(_s.x)} m" : $"{Mathf.FloorToInt(Progress * 100)}% · best {BestPct(_playLevel)}%", W.Theme.Edge, |
NeonWavesGame.UI.cs:324 / void BuildDeathCard() | _dcHead = HzUI.Label("Head", card.transform, "CRASHED", 46, Dim); |
NeonWavesGame.UI.cs:326 / void BuildDeathCard() | _dcBig = HzUI.Label("Big", card.transform, "0%", 150, Color.white); |
NeonWavesGame.UI.cs:329 / void BuildDeathCard() | _dcSub = HzUI.Label("Sub", card.transform, "", 42, Ink, TextAnchor.MiddleCenter, false); |
NeonWavesGame.UI.cs:332 / void BuildDeathCard() | _dcRetry = HzUI.Button("Retry", card.transform, "RETRY", HzUI.Hex("#3DBE6E"), Color.white, () => Retry(), 60); |
NeonWavesGame.UI.cs:334 / void BuildDeathCard() | _dcRevive = HzUI.Button("Revive", card.transform, "REVIVE HERE", HzUI.Hex("#7B61FF"), Color.white, () => Revive(), 44); |
NeonWavesGame.UI.cs:337 / void BuildDeathCard() | _dcLevels = HzUI.Button("Levels", card.transform, "LEVELS", HzUI.Hex("#4C5A7A"), Color.white, () => ShowMenu(), 40); |
NeonWavesGame.UI.cs:339 / void BuildDeathCard() | var tip = HzUI.Label("Tip", card.transform, P ? "tap anywhere to retry" : "Space / click anywhere to retry", 28, Dim, TextAnchor.MiddleCenter, false); |
NeonWavesGame.UI.cs:351 / void ShowDeathCard() | _dcHead.text = "RUN OVER"; |
NeonWavesGame.UI.cs:352 / void ShowDeathCard() | _dcBig.text = Mathf.FloorToInt(_s.x) + " m"; |
NeonWavesGame.UI.cs:353 / void ShowDeathCard() | _dcSub.text = _newBest ? "NEW BEST DISTANCE!" : $"Best {EndlessBest} m"; |
NeonWavesGame.UI.cs:357 / void ShowDeathCard() | _dcHead.text = "CRASHED"; |
NeonWavesGame.UI.cs:358 / void ShowDeathCard() | _dcBig.text = Mathf.FloorToInt(Progress * 100) + "%"; |
NeonWavesGame.UI.cs:359 / void ShowDeathCard() | _dcSub.text = _newBest ? "NEW BEST!" : $"Best {BestPct(_playLevel)}%"; |
NeonWavesGame.UI.cs:375 / void ShowDeathCard() | if (Unlocked(i) && Charges(i) > 0) { Toast($"Tip: try {Defs[i].Name} ({i + 1})", HzUI.Hex(Defs[i].Col), 1.8f, 0.86f); break; } |
NeonWavesGame.UI.cs:387 / void ShowWin(int stars, int total, int gain) | var p = NeonPopup(title, $"Orbs {_collected}/{total} · +{gain} orbs\nAttempts: {_attempt}", W.Theme.Accent, |
NeonWavesGame.UI.cs:425 / void ShowIntro(string id, Action next) | var p = NeonPopup(title, text, W.Theme.Edge, ("Got it!", HzUI.Hex("#3DBE6E"), null)); |
NeonWavesGame.UI.cs:434 / void ShowUnlock(int h, Action next) | var p = NeonPopup("New helper: " + d.Name, d.Desc + $"\n<color=#FFD23E>+{d.Free} free charges</color>", HzUI.Hex(d.Col), ("Awesome!", HzUI.Hex("#3DBE6E"), null)); |
NeonWavesGame.UI.cs:452 / void ShowGuide(int h) | _guideTxt.text = Defs[h].Guide + "\n<size=32>It's free this time!</size>"; |
NeonWavesGame.UI.cs:525 / void PopulateMenu() | var title = HzUI.Label("Title", _menuContent, "NEON WAVES", P ? 132 : 128, Color.white); |
NeonWavesGame.UI.cs:529 / void PopulateMenu() | var sub = HzUI.Label("Sub", _menuContent, "Hold. Release. Ride the beat.", P ? 40 : 36, Ink, TextAnchor.MiddleCenter, false); |
NeonWavesGame.UI.cs:537 / void PopulateMenu() | _walletTxt = HzUI.Label("N", wal.transform, Wallet.ToString(), 40, Color.white, TextAnchor.MiddleLeft); _walletTxt.rectTransform.Place(new Vector2(0, 0.5f), new Vector2(140, 60), new Vector2(150, 0)); |
NeonWavesGame.UI.cs:554 / void PopulateMenu() | var play = HzUI.Button("Play", _menuContent, playLabel, HzUI.Hex("#3DBE6E"), Color.white, () => PlayLevel(next), P ? 58 : 52); |
NeonWavesGame.UI.cs:558 / void PopulateMenu() | var end = HzUI.Button("Endless", _menuContent, endlessOpen ? "ENDLESS RUN" : "ENDLESS (LV 6)", endlessOpen ? HzUI.Hex("#7B61FF") : new Color(0.25f, 0.25f, 0.35f), Color.white, () => |
NeonWavesGame.UI.cs:560 / void PopulateMenu() | if (unlocked > 5) StartEndless(); else { HzAudio.Play("locked", 0.5f); Toast("Clear sector 1 to unlock the endless run", Color.white, 1.4f, 0.4f); } |
NeonWavesGame.UI.cs:566 / void PopulateMenu() | var eb = HzUI.Label("EB", _menuContent, $"best {EndlessBest} m", 30, Dim, TextAnchor.MiddleCenter, false); |
NeonWavesGame.UI.cs:579 / void SectorColumn(int s, Vector2 pos, int unlocked) | var nm = HzUI.Label("Name", col, NwArt.SectorNames[s].ToUpperInvariant(), 30, open ? th.Edge : Dim); |
NeonWavesGame.UI.cs:592 / void SectorRow(int s, Vector2 pos, int unlocked) | var nm = HzUI.Label("Name", row, NwArt.SectorNames[s].ToUpperInvariant(), 32, open ? th.Edge : Dim, TextAnchor.MiddleLeft); |
NeonWavesGame.UI.cs:603 / void LevelButton(RectTransform parent, int lv, Vector2 pos, float size, int unlocked, NwTheme th, bool row = false) | var b = HzUI.Button("L" + lv, parent, open ? lv.ToString() : null, bg, Color.white, () => |
NeonWavesGame.UI.cs:606 / void LevelButton(RectTransform parent, int lv, Vector2 pos, float size, int unlocked, NwTheme th, bool row = false) | else { HzAudio.Play("locked", 0.5f); Toast("Clear the previous level first", Color.white, 1.2f, 0.4f); } |
NeonWavesGame.UI.cs:627 / void LevelButton(RectTransform parent, int lv, Vector2 pos, float size, int unlocked, NwTheme th, bool row = false) | var t = HzUI.Label("pct", b.transform, BestPct(lv) + "%", (int)(size * 0.22f), th.Accent); |