Preserve interpolation braces, invariant number formatting, ON/OFF updates and line breaks. Update both initial and refresh paths, portrait and landscape. Exact helper names/unlocks/charges: Scripts/RopeWordGame.cs; help and effect descriptions: Scripts/RopeWordGame.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 |
|---|
RopeWordGame.cs:23 / class/static declarations | new HelperDef { Id = "reveal", Name = "Reveal", Sprite = "helper_reveal", Glyph = HzIcons.Search, Col = "#19B5A5", Unlock = 3, Cost = 10, Free = 3, |
RopeWordGame.cs:24 / class/static declarations | Desc = "Uncovers the first hidden letter of the answer.", Guide = "Tap <color=#FFD166>Reveal</color> to uncover a letter. This one is free!" }, |
RopeWordGame.cs:25 / class/static declarations | new HelperDef { Id = "snip", Name = "Snip", Sprite = "helper_remove", Glyph = "", Col = "#FF7A45", Unlock = 6, Cost = 15, Free = 2, |
RopeWordGame.cs:26 / class/static declarations | Desc = "Cuts 3 wrong letters off the keyboard. No strands lost!", Guide = "Tap <color=#FFD166>Snip</color> to cut 3 wrong letters off the keyboard." }, |
RopeWordGame.cs:27 / class/static declarations | new HelperDef { Id = "lantern", Name = "Lantern", Sprite = "helper_vowels", Glyph = "", Col = "#7A5BA8", Unlock = 10, Cost = 20, Free = 2, |
RopeWordGame.cs:28 / class/static declarations | Desc = "Lights up the vowels: the right ones appear, the wrong ones go dark.", Guide = "Tap the <color=#FFD166>Lantern</color> to light up every vowel." }, |
RopeWordGame.cs:29 / class/static declarations | new HelperDef { Id = "rope", Name = "Spare Rope", Sprite = "helper_life", Glyph = HzIcons.Heart, Col = "#E2553F", Unlock = 15, Cost = 25, Free = 1, |
RopeWordGame.cs:30 / class/static declarations | Desc = "Ties one extra strand onto the rope: one more mistake allowed.", Guide = "Tap <color=#FFD166>Spare Rope</color> to tie on an extra strand." }, |
RopeWordGame.cs:240 / void OnMiss() | if (m == 3 && Unlocked(HReveal) && !Flag("nudged")) Bubble("Stuck? A helper can save the day!", Gem, 1.8f, _rHelpers); |
RopeWordGame.cs:265 / void OnHelper(int h) | Bubble(d.Name + " unlocks at level " + d.Unlock, Ink, 1.5f, HelperRect(h)); |
RopeWordGame.cs:270 / void OnHelper(int h) | if (!CanUse(h, out var why)) { HzAudio.Play("locked", 0.5f); HzTween.Shake(_helperUI[h].rt, 8, 0.25f); Bubble(why, Ink, 1.4f, HelperRect(h)); return; } |
RopeWordGame.cs:424 / public override string DebugCommand(string cmd) | case "helper": if (p.Length > 1 && int.TryParse(p[1], out var hi) && hi >= 0 && hi < 4) { OnHelper(hi); return "charges=" + Charges(hi) + " gems=" + Gems + " masked=" + R.Masked(); } return "usage: helper 0-3"; |
RopeWordGame.cs:425 / public override string DebugCommand(string cmd) | case "unlockall": for (int i = 0; i < 4; i++) { SetFlag("unl_" + Defs[i].Id); SetFlag("guide_" + Defs[i].Id); } RefreshHelpers(); return "ok"; |
RopeWordGame.UI.cs:61 / void LevelHint() | CardButton(m, "Got it!", Good, 450, 420, 112, () => { _enterAction = ok; ok(); }, 52); |
RopeWordGame.UI.cs:97 / void ShowUnlock(List<int> list, int k) | CardButton(m, k + 1 < list.Count ? "Next" : "Try it!", Good, 820, 460, 116, () => { _enterAction = go; go(); }, 56); |
RopeWordGame.UI.cs:144 / void EndGuide(int h) | Toast("Nice! " + Defs[h].Name + " is ready whenever you need it.", HzUI.Hex("#7CFFB2"), 1.8f); |
RopeWordGame.UI.cs:157 / void Bubble(string text, Color color, float secs, Rect anchor, RectTransform parent = null) | var lbl = HzUI.Label("T", b.transform, text, 38, Color.white); lbl.supportRichText = true; lbl.rectTransform.Stretch(18); |
RopeWordGame.UI.cs:184 / void Bubble(string text, Color color, float secs, Rect anchor, RectTransform parent = null) | var tl = HzUI.Label("Title", ribbon.transform, title, 62, Color.white); tl.rectTransform.Stretch(6); |
RopeWordGame.UI.cs:230 / void CloseAllModals() | var t = HzUI.Label("Txt", m.card, text, size, color, TextAnchor.MiddleCenter, display); |
RopeWordGame.UI.cs:241 / static void AdTag(Transform parent) | HzUI.Label("t", tag.transform, "AD", 26, Color.white).rectTransform.Stretch(); |
RopeWordGame.UI.cs:255 / void WordTiles(ModalInfo m, float y, bool revealAll) | HzUI.Label("L", p.transform, ch, (int)(size * 0.6f), Color.white).rectTransform.Stretch(); |
RopeWordGame.UI.cs:308 / void ShowWin(int level, int stars, int gems, bool timedBonus) | CardButton(m, "Next level", Good, 850, 560, 124, () => { _enterAction = next; next(); }, 58); |
RopeWordGame.UI.cs:309 / void ShowWin(int level, int stars, int gems, bool timedBonus) | var home = HzUI.Button("Home", m.card, "", Plum, Color.white, () => { _enterAction = null; CloseModal(m); NewRound(); ShowMenu(); }, 40, 30); |
RopeWordGame.UI.cs:329 / void ShowLose() | var ad = CardButton(m, "Extra rope: +2 strands", Gem, y, 600, 124, null, 48); |
RopeWordGame.UI.cs:338 / void ShowLose() | CardButton(m, "Try again", Good, y, 560, 120, () => { _enterAction = retry; retry(); }, 54); |
RopeWordGame.UI.cs:339 / void ShowLose() | var home = HzUI.Button("Home", m.card, "", Plum, Color.white, () => { _enterAction = null; CloseModal(m); NewRound(); ShowMenu(); }, 40, 30); |
RopeWordGame.UI.cs:351 / void OfferGems(int cost) | var ad = CardButton(m, "Watch ad: +15 gems", Good, 440, 560, 116, null, 46); |
RopeWordGame.UI.cs:364 / void OfferGems(int cost) | CardButton(m, "No, thanks", InkSoft, 570, 420, 96, () => CloseModal(m), 42); |
RopeWordGame.UI.cs:374 / void ShowSettingsModal() | sound = CardButton(m, SoundLabel(), HzUI.Hex("#4C9EEB"), 190, 560, 112, null); |
RopeWordGame.UI.cs:375 / void ShowSettingsModal() | sound.onClick.AddListener(() => { HzAudio.Muted = !HzAudio.Muted; sound.SetText(SoundLabel()); HzAudio.Play("toggle", 0.5f); }); |
RopeWordGame.UI.cs:376 / void ShowSettingsModal() | music = CardButton(m, MusicLabel(), HzUI.Hex("#4C9EEB"), 330, 560, 112, null); |
RopeWordGame.UI.cs:377 / void ShowSettingsModal() | music.onClick.AddListener(() => { HzAudio.MusicMuted = !HzAudio.MusicMuted; music.SetText(MusicLabel()); HzAudio.Play("toggle", 0.5f); }); |
RopeWordGame.UI.cs:380 / void ShowSettingsModal() | CardButton(m, "Restart level", Coral, 470, 560, 112, () => |
RopeWordGame.UI.cs:386 / void ShowSettingsModal() | CardButton(m, "Home", Plum, 610, 560, 112, () => { CloseModal(m); ShowMenu(); }); |
RopeWordGame.UI.cs:387 / void ShowSettingsModal() | CardButton(m, "Resume", Good, 770, 560, 120, () => CloseModal(m), 56); |
RopeWordGame.UI.cs:389 / void ShowSettingsModal() | else CardButton(m, "Close", Good, 490, 560, 120, () => CloseModal(m), 56); |
RopeWordGame.UI.cs:391 / static string SoundLabel() => HzAudio.Muted ? "Sound: OFF" : "Sound: ON"; | static string SoundLabel() => HzAudio.Muted ? "Sound: OFF" : "Sound: ON"; |
RopeWordGame.UI.cs:392 / static string MusicLabel() => HzAudio.MusicMuted ? "Music: OFF" : "Music: ON"; | static string MusicLabel() => HzAudio.MusicMuted ? "Music: OFF" : "Music: ON"; |
RopeWordGame.UI.cs:440 / void ShowMenu() | var t1 = HzUI.Label("T", sign.transform, "Rope Riddle", portrait ? 120 : 130, Ink); t1.rectTransform.Stretch(); t1.rectTransform.anchoredPosition = new Vector2(0, 18); |
RopeWordGame.UI.cs:442 / void ShowMenu() | var t2 = HzUI.Label("S", sign.transform, "Guess the word. Keep the climber on the rope!", 34, InkSoft, TextAnchor.MiddleCenter, false); |
RopeWordGame.UI.cs:448 / void ShowMenu() | var play = HzUI.Button("Play", _menu, "Play", Good, Color.white, () => |
RopeWordGame.UI.cs:455 / void ShowMenu() | HzUI.Label("Lv", lvTag.transform, "Level " + Level, 44, Ink).rectTransform.Stretch(); |
RopeWordGame.UI.cs:462 / void ShowMenu() | var sT = HzUI.Label("V", sp.transform, TotalStars.ToString(), 54, Ink); sT.rectTransform.Stretch(); sT.rectTransform.offsetMin = new Vector2(90, 0); |
RopeWordGame.UI.cs:529 / void Dim(float x, float y, float w, float h) { if (w <= 0 || h <= 0) return; var d = HzUI.Panel("Dim", _tut, dark, 0); d.rectTransform.Place(new Vector2(0, 1), new Vector2(w, h), new Vector2(x, -y), new Vector2(0, 1)); } | var ct = HzUI.Label("T", cap.transform, TutText[_tutStep], 42, Ink); ct.rectTransform.Stretch(26); |
RopeWordGame.UI.cs:530 / void Dim(float x, float y, float w, float h) { if (w <= 0 || h <= 0) return; var d = HzUI.Panel("Dim", _tut, dark, 0); d.rectTransform.Place(new Vector2(0, 1), new Vector2(w, h), new Vector2(x, -y), new Vector2(0, 1)); } | var step = HzUI.Label("N", cap.transform, (_tutStep + 1) + "/" + TutText.Length, 26, InkSoft, TextAnchor.UpperRight, false); |
RopeWordGame.UI.cs:532 / void Dim(float x, float y, float w, float h) { if (w <= 0 || h <= 0) return; var d = HzUI.Panel("Dim", _tut, dark, 0); d.rectTransform.Place(new Vector2(0, 1), new Vector2(w, h), new Vector2(x, -y), new Vector2(0, 1)); } | var tap = HzUI.Label("Tap", _tut, "Tap to continue", 36, Color.white, TextAnchor.MiddleCenter, false); |
RopeWordGame.View.cs:106 / void BuildView() | var home = HzIcons.IconButton(_layer, HzIcons.Home, Plum, () => { if (!Overlaid && !_ended) { HzAudio.Play("popup_close", 0.4f); ShowMenu(); } }, hudH); |
RopeWordGame.View.cs:111 / void BuildView() | _levelTxt = HzUI.Label("Lv", lvPill.transform, "Level 1", (int)(hudH * 0.5f), Ink); _levelTxt.rectTransform.Stretch(6); |
RopeWordGame.View.cs:119 / void BuildView() | var title = HzUI.Label("Title", _layer, "Rope Riddle", 58, Ink); |
RopeWordGame.View.cs:171 / void BuildView() | _clueTag = HzUI.Label("t", tag.transform, "CATEGORY", 26, Color.white); _clueTag.rectTransform.Stretch(); |
RopeWordGame.View.cs:172 / void BuildView() | _clueTxt = HzUI.Label("Cat", _clueCard.transform, "", 54, Ink); |
RopeWordGame.View.cs:209 / void Pill(RectTransform parent, float x, float y, float w, float h, Color iconColor, out Text label) | label = HzUI.Label("V", p.transform, "0", (int)(h * 0.56f), Ink); |
RopeWordGame.View.cs:257 / float BuildSlots(float cx, float top, float availW, float maxTile) | s.txt = HzUI.Label("L", s.rt, "", (int)(t * 0.64f), Ink); |
RopeWordGame.View.cs:277 / float BuildSlots(float cx, float top, float availW, float maxTile) | k.txt = HzUI.Label("K", img.transform, char.ToUpperInvariant(c).ToString(), (int)(h * 0.5f), Ink); |
RopeWordGame.View.cs:286 / void BuildHelperBar(Rect bar) | var panel = HzUI.Panel("HelperBar", _layer, new Color(1, 1, 1, 0.55f), 40); |
RopeWordGame.View.cs:296 / void BuildHelperBar(Rect bar) | var b = HzUI.Button("Helper_" + d.Id, _layer, null, HzUI.Hex(d.Col), Color.white, () => OnHelper(hh), 40, (int)(size * 0.28f)); |
RopeWordGame.View.cs:301 / void BuildHelperBar(Rect bar) | var name = HzUI.Label("Name", ui.rt, d.Name, 26, Ink); name.rectTransform.Place(new Vector2(0.5f, 0), new Vector2(slotW, 34), new Vector2(0, -24)); |
RopeWordGame.View.cs:305 / void BuildHelperBar(Rect bar) | ui.badgeTxt = HzUI.Label("N", bd.transform, "0", 30, Color.white); ui.badgeTxt.rectTransform.Stretch(); |
RopeWordGame.View.cs:310 / void BuildHelperBar(Rect bar) | ui.priceTxt = HzUI.Label("P", pr.transform, d.Cost.ToString(), 28, Color.white); ui.priceTxt.rectTransform.Stretch(); ui.priceTxt.rectTransform.offsetMin = new Vector2(34, 0); |
RopeWordGame.View.cs:316 / void BuildHelperBar(Rect bar) | ui.lockTxt = HzUI.Label("L", lp.transform, "LV " + d.Unlock, 24, Ink); ui.lockTxt.rectTransform.Stretch(); |
RopeWordGame.View.cs:358 / void BuildScene(Rect r) | string sceneName = _data != null ? _data.scene : "canyon"; |
RopeWordGame.View.cs:423 / void BuildScene(Rect r) | _timerTxt = HzUI.Label("T", _timerPill.transform, "0:00", 40, Ink); _timerTxt.rectTransform.Stretch(); _timerTxt.rectTransform.offsetMin = new Vector2(56, 0); |
RopeWordGame.View.cs:543 / void RefreshAll() | _levelTxt.text = "Level " + Level; |
RopeWordGame.View.cs:565 / void RefreshClue(bool animate) | _clueTxt.text = vis ? R.category : "? ? ?"; |
RopeWordGame.View.cs:567 / void RefreshClue(bool animate) | _clueTag.text = R.hidden && !vis ? "MYSTERY CLUE" : "CATEGORY"; |
RopeWordGame.View.cs:583 / void RefreshTimer() | _timerTxt.text = _bonusLost ? "Bonus lost" : (sec / 60) + ":" + (sec % 60).ToString("00"); |
RopeWordGame.View.cs:593 / void StyleSlot(int i, bool lostShow) | t.txt.text = shown ? char.ToUpperInvariant(R.answer[i]).ToString() : ""; |