Unity 6000.0.62f1 · Complete offline documentation

Potion Pour Sort
Developer Guide

Install. Edit. Reskin. Build your release.

szekipapa77@gmail.com
Potion Pour Sort cover
CHAPTER 01

Start here: Potion Pour Sort

Select one flask and pour matching layers of potion into another. Sort the bright colours into separate flasks.

This is a standalone editable Unity game with 25 authored levels, 4 guided helpers, game-specific authoring/generation and local saves. The required game Kit, publisher-owned HyperCasual LiveOpsKit and TextMesh Pro resources are included. Ads ship in Dummy simulation and IAP is Disabled; external provider SDK binaries are excluded. Additional HLK example systems are reference content, not a claim that this game has every backend feature integrated.

CHAPTER 02

Requirements, installation and first play

  1. Install Unity 6000.0.62f1 with matching Android SDK/NDK/OpenJDK and WebGL modules in Unity Hub. Retain URP 17.0.4, Unity UI 2.0.0, Input System 1.14.2 and the supplied standard modules, including screen capture and Android JNI.
  2. Extract the complete standalone project to a short writable path. Keep Assets/Packages/ProjectSettings together, open it with the matching editor and wait for import. Fix the first Console error before continuing.
  3. For native .unitypackage import, use a matching URP project and import every supplied entry. Retain the private game Kit and actual backend layer. Retain the supplied TextMesh Pro Essential Resources; no extra nested TMP installer is needed.
  4. Run Tools > Szekipapa77 > Potion Pour Sort> Setup. Check Graphics and every Quality URP assignment, and Active Input Handling=Both. The game uses classic pointer input.
  5. Open Assets/Szekipapa77PotionSort/Games/PotionSort/Scenes/PotionSort_Mobile.unity and press Play. Follow its opening card/tutorial, then use the actual controls described in the next chapter.
  6. Stop Play, open Assets/Szekipapa77PotionSort/Games/PotionSort/Scenes/PotionSort_WebGL.unity and repeat in landscape. Preserve all .meta GUIDs and the exact resource basenames.
CHAPTER 03

Folders and exact source map

All game-relative paths start at Assets/Szekipapa77PotionSort/Games/PotionSort. Runtime UI is constructed in game code; editing an unrelated static Canvas is insufficient. Scripts owns rules/views/HUD, Editor owns authoring, Kit is required game support and Resources/potionsort owns gameplay data and media. Backend settings: Assets/Szekipapa77PotionSort/HyperCasualLiveOpsKit/Resources/HLK/HLKSettings.asset.

Source filePurpose/source heading
PotionSortGame.Hud.csGame runtime partial
PotionSortGame.View.csThe portrait play column (identical in both scenes): procedural glass flasks in one or two rows, the lift-tilt-stream / pour animation, obstacle overlays and pooled sparkles. Per-frame work is in AnimateView and allocation-free.
PotionSortGame.csPotion Pour Sort: tap a flask to pick it up, tap another to pour its top potion; finish every flask with one colour. / This file: level flow, input, pours, boosters, win/lose and test hooks. / PotionSortGame.View.cs draws the portrait play column (flasks, pour animation, effects), / PotionSortGame.Hud.cs builds the header, booster bar, landscape side panels, popups, tutorial and guided booster use.
PsArt.csGame-specific model, renderer or rule support
PsGen.csGame-specific model, renderer or rule support
PsLevels.csGame-specific model, renderer or rule support
PsModel.csGame-specific model, renderer or rule support
PsSfx.csSound event names -> files in Resources/potionsort/Sfx/ (variants "name_2", "name_3" play at random). / "click" also overrides the kit synth for every button press.
PublisherNamespaceMarker.csGame-specific model, renderer or rule support

Customer Setup/build/package tools are Kit/Editor/HzTools.cs. Keep the game-specific Kit and backend references; other standalone games should be integrated deliberately rather than copying overlapping Kit classes into the same project.

CHAPTER 04

Gameplay, controls and progression

Select one flask and pour matching layers of potion into another. Sort the bright colours into separate flasks.

Read the current level goal/limits and first-time hint; the win/fail condition is specific to this game. Complete the guided opening, an ordinary level, retry/failure, helper use and a save/relaunch. Curated content count refers only to the actual levels array, not dictionary words, helper catalogues or extra data libraries. Compare the second record with its first neighbour before changing shape, sequences or identifiers. This record uses name, hint, breather, difficulty, flasks. Keep array lengths and named object references consistent when adapting the level.

Actual gameplay-model entry pointCurrent continuation/loading implementation
CHAPTER 05

Tutorials and all helpers

Follow the authored first-level guidance and each new helper announcement/guided use. The table gives the actual per-game catalogue, including free-charge counts rather than an assumed shared default. Activating a targeted helper only arms it: perform its required target action and check the effect. An ordinary use and a guided free use can consume charges differently.

HelperUnlockFree chargesActual effect
Rewind33Takes back your last pour. Tap it as often as you have charges.
Spare Flask52Adds an empty flask for this level (up to two per level).
Stir82Tap Stir, then a mixed flask: its colours settle into neat groups and mystery layers show their colour.
Dispel122Tap Dispel, then a flask with a seal, web, label, hourglass or mystery layers: the magic is gone.

Exact catalogue/effect sources: PotionSortGame.cs. Unlocks and ordinary charge/refill logic live in the game source. Out-of-charge ad actions must wait for the actual success callback. Reset only an isolated test save when replaying the entire tutorial sequence.

CHAPTER 06

Visual editor: a worked editing session

  1. Stop Play and back up Assets/Szekipapa77PotionSort/Games/PotionSort/Resources/potionsort/Levels/levels.json. Open Tools > Szekipapa77 > Potion Pour Sort> Level Editor.
  2. Select an ordinary early entry, duplicate it with the actual Dup/Duplicate control, and edit the visible name/title where available. Preserve the original guided opening.
  3. Apply this game-specific example: In a backup of the second entry, change name from Two Tonics to Two Tonics Remix. Reopen that entry in the level editor and confirm its new name. Keep the original difficulty value (0.04) during this first edit to isolate the naming change.
  4. Use the exact controls in the table below, validate the edited entry, resolve every issue, Save explicitly and stop/restart Play before testing the correct index.
  5. Check the result in portrait and landscape, including completion/retry. Generator or painter changes are not necessarily saved until Save is pressed; inspect the editor dirty marker.
Current editor locationExact control
Editor/PotionSortLevelEditor.cs:116if (GUILayout.Button(_dirty ? "Save *" : "Save", EditorStyles.toolbarButton, GUILayout.Width(70))) Save();
Editor/PotionSortLevelEditor.cs:117if (GUILayout.Button("Reload", EditorStyles.toolbarButton, GUILayout.Width(60)) && (!_dirty || EditorUtility.DisplayDialog("Reload", "Discard unsaved changes?", "Discard", "Cancel"))) Load();
Editor/PotionSortLevelEditor.cs:120if (GUILayout.Button("Undo", EditorStyles.toolbarButton, GUILayout.Width(50))) Undo.PerformUndo();
Editor/PotionSortLevelEditor.cs:121if (GUILayout.Button("Redo", EditorStyles.toolbarButton, GUILayout.Width(50))) Undo.PerformRedo();
Editor/PotionSortLevelEditor.cs:123if (GUILayout.Button("Validate", EditorStyles.toolbarButton, GUILayout.Width(70)) && Cur != null) ValidateOne(_sel);
Editor/PotionSortLevelEditor.cs:124if (GUILayout.Button("Validate All", EditorStyles.toolbarButton, GUILayout.Width(85))) ValidateAll();
Editor/PotionSortLevelEditor.cs:127if (GUILayout.Button(new GUIContent("Play this level", "Optional: saves, opens the WebGL scene at this level and enters Play mode. Editing never needs it."), EditorStyles.toolbarButton, GUILayout.Width(100)) && Cur != null) Play(_sel + 1);
Editor/PotionSortLevelEditor.cs:154if (GUILayout.Button("Add"))
Editor/PotionSortLevelEditor.cs:160if (GUILayout.Button("Dup") && Cur != null) { var c = Clone(Cur); c.name += " copy"; Insert(_sel + 1, c); }
Editor/PotionSortLevelEditor.cs:161if (GUILayout.Button("Del") && Cur != null && EditorUtility.DisplayDialog("Delete", $"Delete level {_sel + 1} '{Cur.name}'?", "Delete", "Cancel"))
Editor/PotionSortLevelEditor.cs:165if (GUILayout.Button("Up") && _sel > 0) Move(-1);
Editor/PotionSortLevelEditor.cs:166if (GUILayout.Button("Down") && _sel < _file.levels.Length - 1) Move(1);
Editor/PotionSortLevelEditor.cs:194EditorGUILayout.LabelField($"Level {_sel + 1}", EditorStyles.boldLabel);
Editor/PotionSortLevelEditor.cs:195l.name = EditorGUILayout.TextField("Name", l.name);
Editor/PotionSortLevelEditor.cs:196EditorGUILayout.LabelField("First-time hint (popup before play; \\n = new line)");
Editor/PotionSortLevelEditor.cs:197l.hint = EditorGUILayout.TextArea(l.hint ?? "", GUILayout.Height(40));
Editor/PotionSortLevelEditor.cs:199l.breather = EditorGUILayout.Toggle("Breather", l.breather);
Editor/PotionSortLevelEditor.cs:200l.difficulty = EditorGUILayout.Slider("Difficulty (design)", l.difficulty, 0, 1);
Editor/PotionSortLevelEditor.cs:205EditorGUILayout.LabelField("Flasks (click a cell to paint; bottom = first layer)", EditorStyles.boldLabel);
Editor/PotionSortLevelEditor.cs:215EditorGUILayout.HelpBox(v.solved ? $"Solvable: solver line {v.length} pours ({v.nodes} nodes). Casual bot wins {v.BotRate}% of {v.botRuns} runs." : $"NOT SOLVABLE (searched {v.nodes} nodes{(v.hitLimit ? ", node limit hit" : "")}).", v.solved ? MessageType.Info : MessageType.Error);
Editor/PotionSortLevelEditor.cs:305if (GUILayout.Button("+ Flask", GUILayout.Width(80))) { var list = l.flasks.ToList(); list.Add(new PsFlaskData()); l.flasks = list.ToArray(); _flask = l.flasks.Length - 1; Changed(); }
Editor/PotionSortLevelEditor.cs:306if (GUILayout.Button("+ Mini vial", GUILayout.Width(90))) { var list = l.flasks.ToList(); list.Add(new PsFlaskData { cap = 2 }); l.flasks = list.ToArray(); _flask = l.flasks.Length - 1; Changed(); }
Editor/PotionSortLevelEditor.cs:307if (GUILayout.Button("Remove flask", GUILayout.Width(100)) && l.flasks.Length > 1) { var list = l.flasks.ToList(); list.RemoveAt(Mathf.Clamp(_flask, 0, list.Count - 1)); l.flasks = list.ToArray(); _flask = Mathf.Clamp(_flask, 0, l.flasks.Length - 1); Changed(); }
Editor/PotionSortLevelEditor.cs:308if (GUILayout.Button("<", GUILayout.Width(24)) && _flask > 0) { Swap(l, _flask, _flask - 1); _flask--; Changed(); }
Editor/PotionSortLevelEditor.cs:309if (GUILayout.Button(">", GUILayout.Width(24)) && _flask < l.flasks.Length - 1) { Swap(l, _flask, _flask + 1); _flask++; Changed(); }
Editor/PotionSortLevelEditor.cs:316EditorGUILayout.LabelField($"Flask {_flask}", EditorStyles.boldLabel);
Editor/PotionSortLevelEditor.cs:318bool mini = EditorGUILayout.ToggleLeft("Mini vial (2 layers)", f.cap == 2, GUILayout.Width(150));
Editor/PotionSortLevelEditor.cs:321f.web = EditorGUILayout.ToggleLeft("Cobweb", f.web, GUILayout.Width(80));
Editor/PotionSortLevelEditor.cs:322f.timer = EditorGUILayout.IntSlider("Hourglass", f.timer, 0, 20);
Editor/PotionSortLevelEditor.cs:326f.seal = EditorGUILayout.Popup("Rune seal", f.seal + 1, opts) - 1;
Editor/PotionSortLevelEditor.cs:327f.label = EditorGUILayout.Popup("Label", f.label + 1, opts) - 1;
Editor/PotionSortLevelEditor.cs:329f.units = EditorGUILayout.TextField("Units (bottom first, A-L = mystery)", f.units ?? "");
Editor/PotionSortLevelEditor.cs:341if (bad.Count > 0) EditorGUILayout.HelpBox("Every potion needs exactly 4 units: " + string.Join(", ", bad), MessageType.Warning);
Editor/PotionSortLevelEditor.cs:363EditorGUILayout.LabelField("Difficulty curve (bar = 1 - casual bot win rate after Validate All, else the design value; green = breather)", EditorStyles.boldLabel);
Editor/PotionSortLevelEditor.cs:380_showGen = EditorGUILayout.Foldout(_showGen, "Auto Generate (same PsGen code as levels 26+; every result is solver-proven)", true);
Editor/PotionSortLevelEditor.cs:382_genCount = EditorGUILayout.IntSlider("Levels to generate", _genCount, 1, 30);
Editor/PotionSortLevelEditor.cs:383_genStart = EditorGUILayout.IntField("Level number of the first (names)", _genStart);
Editor/PotionSortLevelEditor.cs:384_genSeed = EditorGUILayout.IntField("Seed", _genSeed);
Editor/PotionSortLevelEditor.cs:385EditorGUILayout.LabelField("Curve: values ramp linearly from the first to the last generated level");
Editor/PotionSortLevelEditor.cs:386EditorGUILayout.BeginHorizontal(); _colFrom = EditorGUILayout.IntSlider("Potions from", _colFrom, 1, 12); _colTo = EditorGUILayout.IntSlider("to", _colTo, 1, 12); EditorGUILayout.EndHorizontal();
Editor/PotionSortLevelEditor.cs:387EditorGUILayout.BeginHorizontal(); _mixFrom = EditorGUILayout.IntSlider("Mix % from", _mixFrom, 0, 100); _mixTo = EditorGUILayout.IntSlider("to", _mixTo, 0, 100); EditorGUILayout.EndHorizontal();
Editor/PotionSortLevelEditor.cs:388EditorGUILayout.BeginHorizontal(); _hidFrom = EditorGUILayout.IntSlider("Mystery from", _hidFrom, 0, 20); _hidTo = EditorGUILayout.IntSlider("to", _hidTo, 0, 20); EditorGUILayout.EndHorizontal();
Editor/PotionSortLevelEditor.cs:389_genEmpties = EditorGUILayout.IntSlider("Empty flasks", _genEmpties, 1, 4);
Editor/PotionSortLevelEditor.cs:390_genBreather = EditorGUILayout.IntSlider("Breather every N (0 = none)", _genBreather, 0, 10);
Editor/PotionSortLevelEditor.cs:392_genSeals = EditorGUILayout.ToggleLeft("Seals", _genSeals, GUILayout.Width(70));
Editor/PotionSortLevelEditor.cs:393_genWebs = EditorGUILayout.ToggleLeft("Cobwebs", _genWebs, GUILayout.Width(80));
Editor/PotionSortLevelEditor.cs:394_genLabels = EditorGUILayout.ToggleLeft("Labels", _genLabels, GUILayout.Width(70));
Editor/PotionSortLevelEditor.cs:395_genTimers = EditorGUILayout.ToggleLeft("Hourglasses", _genTimers, GUILayout.Width(100));
Editor/PotionSortLevelEditor.cs:396_genMinis = EditorGUILayout.ToggleLeft("Mini vials", _genMinis, GUILayout.Width(90));
Editor/PotionSortLevelEditor.cs:398_genReplace = EditorGUILayout.ToggleLeft("Replace from the selected level (else insert after it)", _genReplace);
Editor/PotionSortLevelEditor.cs:399if (GUILayout.Button("Generate", GUILayout.Height(28))) Generate();
CHAPTER 07

Generation, insertion, replacement and validation

This editor has its own Replace existing and start-index behavior. The exact range-write statements below show which existing records are overwritten and when new records are inserted/appended; review those controls before committing a range that overlaps published levels.

Worked extension: back up the bank and generate a small trailing set of 3 entries with a reproducible seed such as 4242 and a moderate increasing difficulty where that panel exposes it. For a From/To panel choose the next 3 unused 1-based indexes. Review the real controls, range-write code and cancellation behavior below; then validate, Save, reopen JSON and verify the count. A deterministic solver/bot result helps detect invalid layouts but does not certify an enjoyable difficulty curve. Runtime-generated continuation does not automatically append records to the project bank.

Actual generator implementationCurrent source
Editor/PotionSortLevelEditor.cs:41int _genCount = 5, _genStart = 26, _genSeed = 1234, _genBreather = 5, _genEmpties = 2;
Editor/PotionSortLevelEditor.cs:43bool _genSeals = true, _genWebs = true, _genLabels = true, _genTimers = true, _genMinis = true, _genReplace;
Editor/PotionSortLevelEditor.cs:382_genCount = EditorGUILayout.IntSlider("Levels to generate", _genCount, 1, 30);
Editor/PotionSortLevelEditor.cs:383_genStart = EditorGUILayout.IntField("Level number of the first (names)", _genStart);
Editor/PotionSortLevelEditor.cs:384_genSeed = EditorGUILayout.IntField("Seed", _genSeed);
Editor/PotionSortLevelEditor.cs:389_genEmpties = EditorGUILayout.IntSlider("Empty flasks", _genEmpties, 1, 4);
Editor/PotionSortLevelEditor.cs:390_genBreather = EditorGUILayout.IntSlider("Breather every N (0 = none)", _genBreather, 0, 10);
Editor/PotionSortLevelEditor.cs:392_genSeals = EditorGUILayout.ToggleLeft("Seals", _genSeals, GUILayout.Width(70));
Editor/PotionSortLevelEditor.cs:393_genWebs = EditorGUILayout.ToggleLeft("Cobwebs", _genWebs, GUILayout.Width(80));
Editor/PotionSortLevelEditor.cs:394_genLabels = EditorGUILayout.ToggleLeft("Labels", _genLabels, GUILayout.Width(70));
Editor/PotionSortLevelEditor.cs:395_genTimers = EditorGUILayout.ToggleLeft("Hourglasses", _genTimers, GUILayout.Width(100));
Editor/PotionSortLevelEditor.cs:396_genMinis = EditorGUILayout.ToggleLeft("Mini vials", _genMinis, GUILayout.Width(90));
Editor/PotionSortLevelEditor.cs:398_genReplace = EditorGUILayout.ToggleLeft("Replace from the selected level (else insert after it)", _genReplace);
Editor/PotionSortLevelEditor.cs:406for (int i = 0; i < _genCount; i++)
Editor/PotionSortLevelEditor.cs:408float k = _genCount <= 1 ? 0 : i / (float)(_genCount - 1);
Editor/PotionSortLevelEditor.cs:409bool br = _genBreather > 0 && (i + 1) % _genBreather == 0;
Editor/PotionSortLevelEditor.cs:412name = "Brew " + (_genStart + i),
Editor/PotionSortLevelEditor.cs:417empties = _genEmpties,
Editor/PotionSortLevelEditor.cs:418seals = !br && _genSeals && i % 2 == 0 ? 1 : 0,
Editor/PotionSortLevelEditor.cs:419webs = !br && _genWebs && i % 3 == 1 ? 1 : 0,
Editor/PotionSortLevelEditor.cs:420labels = !br && _genLabels && i % 3 == 2 ? 1 : 0,
Editor/PotionSortLevelEditor.cs:421timers = !br && _genTimers && i % 4 == 3 ? 1 : 0,
Editor/PotionSortLevelEditor.cs:422minis = !br && _genMinis && i % 4 == 1 ? 1 : 0,
Editor/PotionSortLevelEditor.cs:428var lv = PsGen.Make(sp, _genSeed + i * 31, PsSolver.DefaultLimit, info, out int used);
Editor/PotionSortLevelEditor.cs:433int at = _genReplace ? _sel : _sel + 1;
Editor/PotionSortLevelEditor.cs:436if (_genReplace && at + i < list.Count) list[at + i] = made[i];
CHAPTER 08

Actual level schema and safe identifiers

Compare the second record with its first neighbour before changing shape, sequences or identifiers. This record uses name, hint, breather, difficulty, flasks. Keep array lengths and named object references consistent when adapting the level.

Canonical bank: Assets/Szekipapa77PotionSort/Games/PotionSort/Resources/potionsort/Levels/levels.json. The actual first record below is an example of the shipped schema, including any diagnostic fields. Preserve numeric/boolean types, root version fields and array order. Source fields/comments follow; use the visual editor for encoded coordinates and type enums.

{
  "name": "First Drop",
  "hint": "Pour the potion so one flask holds a single colour.",
  "breather": false,
  "difficulty": 0.01,
  "flasks": [
    {
      "units": "a",
      "cap": 4,
      "seal": -1,
      "web": false,
      "label": -1,
      "timer": 0
    },
    {
      "units": "aaa",
      "cap": 4,
      "seal": -1,
      "web": false,
      "label": -1,
      "timer": 0
    }
  ]
}
Model declarationExact field/property
Scripts/PsModel.cs:15public string units = ""; // bottom-first, 'a'..'l' = potion colour, UPPERCASE = mystery (hidden)
Scripts/PsModel.cs:16public int cap = 4; // 4 = flask, 2 = mini vial
Scripts/PsModel.cs:17public int seal = -1; // rune seal colour (-1 none)
Scripts/PsModel.cs:18public bool web; // cobweb
Scripts/PsModel.cs:19public int label = -1; // potion label colour (-1 none)
Scripts/PsModel.cs:20public int timer; // hourglass lock count (0 none)
Scripts/PsModel.cs:26public string name = "";
Scripts/PsModel.cs:27public string hint = "";
Scripts/PsModel.cs:28public bool breather;
Scripts/PsModel.cs:29public float difficulty;
Scripts/PsModel.cs:30public PsFlaskData[] flasks = new PsFlaskData[0];
Scripts/PsModel.cs:36public PsLevelData[] levels = new PsLevelData[0];
Scripts/PsModel.cs:44public int Range(int lo, int hiExcl) { if (hiExcl <= lo) return lo; return lo + (int)(Next() % (uint)(hiExcl - lo)); }
Scripts/PsModel.cs:45public bool Chance(int percent) => Range(0, 100) < percent;
Scripts/PsModel.cs:55public int n, baseN, topRow;
Scripts/PsModel.cs:65public int pours;
Scripts/PsModel.cs:121public int Top(int i) => cnt[i] > 0 ? col[i * Cap + cnt[i] - 1] : -1;
Scripts/PsModel.cs:122public int At(int i, int k) => col[i * Cap + k];
Scripts/PsModel.cs:123public bool Hidden(int i, int k) => hid[i * Cap + k];
Scripts/PsModel.cs:125public int TopRun(int i)
Scripts/PsModel.cs:133public bool Blocked(int i) => seal[i] >= 0 || web[i] || timer[i] > 0;
Scripts/PsModel.cs:134public bool HasObstacle(int i) { if (Blocked(i) || label[i] >= 0) return true; for (int k = 0; k < cnt[i]; k++) if (hid[i * Cap + k]) return true; return false; }
Scripts/PsModel.cs:136public bool IsUniform(int i)
Scripts/PsModel.cs:147public bool AreNeighbours(int a, int b)
Scripts/PsModel.cs:154public bool CanPick(int s) => s >= 0 && s < n && !done[s] && !Blocked(s) && cnt[s] > 0;
Scripts/PsModel.cs:156public bool CanMove(int s, int t)
Scripts/PsModel.cs:166public int MoveAmount(int s, int t) => Math.Min(TopRun(s), cap[t] - cnt[t]);
Scripts/PsModel.cs:168public bool IsWin()
Scripts/PsModel.cs:174public bool AnyMove()
Scripts/PsModel.cs:184public bool IsStuck() => !IsWin() && !AnyMove();
Scripts/PsModel.cs:186public int CompletedCount() { int c = 0; for (int i = 0; i < n; i++) if (done[i]) c++; return c; }
Scripts/PsModel.cs:188public int ColorCount()
Scripts/PsModel.cs:198public int Move(int s, int t)
Scripts/PsModel.cs:232public bool AddFlask(int capacity = Cap)
Scripts/PsModel.cs:241public bool Dispel(int i)
Scripts/PsModel.cs:280public bool CanStir(int i)
Scripts/PsModel.cs:305public bool solved;
Scripts/PsModel.cs:306public int nodes;
Scripts/PsModel.cs:307public int length;
Scripts/PsModel.cs:308public bool hitLimit;
Scripts/PsModel.cs:310public int botWins, botRuns;
Scripts/PsModel.cs:311public int BotRate => botRuns == 0 ? 0 : botWins * 100 / botRuns;

Keep GameId=potionsort, save prefixes, resource IDs, enum values and script GUIDs stable during cosmetic editing. Visible names/hints and hierarchy/object IDs are different things. Derived validation properties are not a substitute for changing actual model fields.

CHAPTER 09

Reskin recipe: exact interface colours

Open Scripts/PsArt.cs and find Ink, currently assigned HzUI.Hex("#3A1E6E"). For a worked edit, replace only that expression with HzUI.Hex("#42C9B0"), compile and relaunch. Keep the symbol/type and intended contrast. Actual consumers follow, then the full current palette/hex inventory. This edit changes those consumers; it does not automatically recolour sprites,3 Dmaterials or other independent palettes.

Actual consumerCurrent code
Scripts/PotionSortGame.Hud.cs:168 / void BuildSides(float W, float H, float colW)var bt = HzUI.Label("T", bubble.transform, "One colour per flask!", 44, Ink); bt.rectTransform.Stretch(10);

Review HUD, menus, help, locked/unlocked tools, goal states, result popups and both orientations. Look through the actual Art/View/Theme files below for board/procedural colours. Rebuild affected demo outputs after accepting a colour change.

Palette locationExact source
Scripts/PotionSortGame.Hud.cs:211 / void RefreshBoosters()v.Ring.color = sel || _guide == b ? HzUI.Hex("#FFE066") : new Color(1, 1, 1, 0);
Scripts/PotionSortGame.Hud.cs:319 / void ShowSettingsPopup()(MusicLabel(), HzUI.Hex("#8E5BEF"), null),
Scripts/PotionSortGame.View.cs:207 / void LayoutFlasks(bool keepState)if (v.cap == 2) v.outline.color = HzUI.Hex("#FFC9F0");
Scripts/PotionSortGame.View.cs:294 / void SyncOverlays(int i)v.outline.color = done ? HzUI.Hex("#FFE89A") : v.cap == 2 ? HzUI.Hex("#FFC9F0") : new Color(0.92f, 0.94f, 1f, 0.92f);
Scripts/PotionSortGame.cs:34 / declarationspublic static readonly string[] BoostColor = { "#3FA0FF", "#2FC27A", "#FF8A2A", "#E04AB8" };
Scripts/PsArt.cs:10 / declarationspublic static readonly Color NightTop = HzUI.Hex("#2E2370"), NightBottom = HzUI.Hex("#1B1446"), Panel = HzUI.Hex("#6A2FD6"), PanelDark = HzUI.Hex("#4A1EA8"),
Scripts/PsArt.cs:11 / declarationsPanelDeep = HzUI.Hex("#2A1466"), GoldC = HzUI.Hex("#FFC53A"), GoldDark = HzUI.Hex("#C98A12"), Cream = HzUI.Hex("#FFF4D6"), Ink = HzUI.Hex("#3A1E6E"),
Scripts/PsArt.cs:12 / declarationsSub = HzUI.Hex("#B9A8E8"), Mint = HzUI.Hex("#2FD08A"), Rose = HzUI.Hex("#FF4F7B"), Sky = HzUI.Hex("#3FA0FF"), Orange = HzUI.Hex("#FF9A1F"),
Scripts/PsArt.cs:13 / declarationsLocked = HzUI.Hex("#5B4C86"), Smoke = HzUI.Hex("#3B2D63"), Glass = new Color(0.86f, 0.9f, 1f, 1f), Wood = HzUI.Hex("#B9773C");
Scripts/PsArt.cs:16 / declarationspublic static readonly Color[] PotionC =
Scripts/PsArt.cs:18 / declarationsHzUI.Hex("#9B4DFF"), HzUI.Hex("#FF6A1F"), HzUI.Hex("#FFD21F"), HzUI.Hex("#3FCF3A"), HzUI.Hex("#2F6BFF"), HzUI.Hex("#E8233F"),
Scripts/PsArt.cs:19 / declarationsHzUI.Hex("#FF6FC8"), HzUI.Hex("#13B5A2"), HzUI.Hex("#EDE8F7"), HzUI.Hex("#9A5A1E"), HzUI.Hex("#62E6FF"), HzUI.Hex("#B8F23A"),
CHAPTER 10

Reskin recipe: visible interface text and localization

Worked string edit: open Scripts/PotionSortGame.Hud.cs, find the display literal "Settings" in var p = PsPopup("Settings", "", Panel, null, null, and change its visible value to "Options". Keep the method/property/resource/save identifiers unchanged. The Title property and title artwork can be separate visible uses; changing the title must not rename GameId.

The exact table covers construction and later refresh assignments. In Label/Button calls, an object-name argument is not necessarily the displayed label: edit the displayed-text argument. Update initial and refreshed Sound/Music/ON/OFF labels, HUD numbering, results/help/tutorial messages and helper names/descriptions deliberately. Preserve interpolation braces, numeric formatting, rich-text tags and line breaks. Shared HLK localization does not automatically translate hard-coded game strings. Word/dictionary/category data is separate gameplay content with its own validation.

Current method/locationDisplay assignment
Scripts/PotionSortGame.Hud.cs:47 / void BuildHeader()_levelTxt = HzUI.Label("Level", pin.transform, "", 60, Cream); _levelTxt.rectTransform.Stretch(4);
Scripts/PotionSortGame.Hud.cs:52 / void BuildHeader()_nameTxt = HzUI.Label("Name", _col, "", 34, Cream, TextAnchor.MiddleCenter, false); _nameTxt.fontStyle = FontStyle.Bold; _nameTxt.raycastTarget = false;
Scripts/PotionSortGame.Hud.cs:65 / void BuildHeader()_brewTxt = HzUI.Label("Brew", bp.transform, "", 42, Cream, TextAnchor.MiddleLeft); _brewTxt.raycastTarget = false;
Scripts/PotionSortGame.Hud.cs:93 / void BuildBoosterBar()var btn = HzUI.Button("Booster" + b, parent, null, Color.white, Color.white, () => OnBooster(bb), 40, (int)(size * 0.5f));
Scripts/PotionSortGame.Hud.cs:119 / void BuildBoosterBar()v.BadgeText = HzUI.Label("N", bd.transform, "", (int)(size * 0.25f), Color.white); v.BadgeText.rectTransform.Stretch(); v.BadgeText.raycastTarget = false;
Scripts/PotionSortGame.Hud.cs:121 / void BuildBoosterBar()v.Caption = HzUI.Label("Cap", v.Root, "", 30, Cream); v.Caption.raycastTarget = false;
Scripts/PotionSortGame.Hud.cs:134 / void BuildSides(float W, float H, float colW)var title = HzUI.Label("Title", _layer, "Potion Pour\nSort", 92, GoldC, TextAnchor.MiddleCenter);
Scripts/PotionSortGame.Hud.cs:141 / void BuildSides(float W, float H, float colW)_sideLevel = HzUI.Label("Level", cin.transform, "", 60, Cream); _sideLevel.AddOutline(PanelDeep, 3);
Scripts/PotionSortGame.Hud.cs:143 / void BuildSides(float W, float H, float colW)_sideName = HzUI.Label("Name", cin.transform, "", 36, Sub, TextAnchor.MiddleCenter, false); _sideName.fontStyle = FontStyle.Bold;
Scripts/PotionSortGame.Hud.cs:149 / void BuildSides(float W, float H, float colW)_sideBrew = HzUI.Label("Brew", cin.transform, "", 34, Cream, TextAnchor.MiddleCenter, false); _sideBrew.fontStyle = FontStyle.Bold;
Scripts/PotionSortGame.Hud.cs:154 / void BuildSides(float W, float H, float colW)var how = HzUI.Label("How", tip.transform, "Tap a flask to pick it up,\nthen tap another to pour.\nPour onto the same colour\nor into an empty flask.", 32, Cream, TextAnchor.MiddleCenter, false);
Scripts/PotionSortGame.Hud.cs:168 / void BuildSides(float W, float H, float colW)var bt = HzUI.Label("T", bubble.transform, "One colour per flask!", 44, Ink); bt.rectTransform.Stretch(10);
Scripts/PotionSortGame.Hud.cs:169 / void BuildSides(float W, float H, float colW)var restart = HzUI.Button("Restart", _layer, "Restart", Sky, Color.white, () => { if (!PopupOpen) Retry(); }, 40, 34);
Scripts/PotionSortGame.Hud.cs:180 / void RefreshHud()if (_nameTxt) _nameTxt.text = D.name + (D.breather ? " - breather" : "");
Scripts/PotionSortGame.Hud.cs:183 / void RefreshHud()if (_sideName) _sideName.text = D.name + (D.breather ? " (breather)" : "");
Scripts/PotionSortGame.Hud.cs:185 / void RefreshHud()if (_brewTxt) _brewTxt.text = Num(done) + "/" + Num(_startColors);
Scripts/PotionSortGame.Hud.cs:186 / void RefreshHud()if (_sideBrew) _sideBrew.text = "Potions brewed " + Num(done) + "/" + Num(_startColors);
Scripts/PotionSortGame.Hud.cs:206 / void RefreshBoosters()v.BadgeText.text = c > 0 ? Num(c) : "+";
Scripts/PotionSortGame.Hud.cs:208 / void RefreshBoosters()v.Caption.text = un ? BoostShort[b] : "Lv " + Num(BoostUnlock[b]);
Scripts/PotionSortGame.Hud.cs:258 / HzPopup PsPopup(string title, string message, Color accent, Sprite art, string subtitle, params (string label, Color color, Action action)[] buttons)var t = HzUI.Label("Title", ribbon.transform, title, 66, Cream); t.rectTransform.Stretch(6);
Scripts/PotionSortGame.Hud.cs:263 / HzPopup PsPopup(string title, string message, Color accent, Sprite art, string subtitle, params (string label, Color color, Action action)[] buttons)var st = HzUI.Label("Sub", card.transform, subtitle, 40, GoldC); st.rectTransform.Place(new Vector2(0.5f, 1), new Vector2(cw - 80, 50), new Vector2(0, y - 25));
Scripts/PotionSortGame.Hud.cs:269 / HzPopup PsPopup(string title, string message, Color accent, Sprite art, string subtitle, params (string label, Color color, Action action)[] buttons)p.Message = HzUI.Label("Msg", card.transform, message, 42, Cream, TextAnchor.MiddleCenter, false);
Scripts/PotionSortGame.Hud.cs:308 / void UnlockPopup(int b, Action done)PsPopup("New: " + BoostName[b] + "!", BoostDesc[b] + "\nYou get " + BoostStart[b] + " free!", HzUI.Hex(BoostColor[b]), PsArt.Get(BoostArt[b]), null,
Scripts/PotionSortGame.Hud.cs:317 / void ShowSettingsPopup()var p = PsPopup("Settings", "", Panel, null, null,
Scripts/PotionSortGame.Hud.cs:319 / void ShowSettingsPopup()(MusicLabel(), HzUI.Hex("#8E5BEF"), null),
Scripts/PotionSortGame.Hud.cs:331 / static string SoundLabel() => HzAudio.Muted ? "Sound: OFF" : "Sound: ON";static string SoundLabel() => HzAudio.Muted ? "Sound: OFF" : "Sound: ON";
Scripts/PotionSortGame.Hud.cs:332 / static string MusicLabel() => HzAudio.MusicMuted ? "Music: OFF" : "Music: ON";static string MusicLabel() => HzAudio.MusicMuted ? "Music: OFF" : "Music: ON";
Scripts/PotionSortGame.Hud.cs:348 / void HelpPage(int i)if (last) PsPopup($"How to Play {i + 1}/{HelpPages.Length}", HelpPages[i], Sky, art, null, ("Got it", Mint, (Action)null));
Scripts/PotionSortGame.Hud.cs:349 / void HelpPage(int i)else PsPopup($"How to Play {i + 1}/{HelpPages.Length}", HelpPages[i], Sky, art, null, ("Next", Mint, () => HelpPage(i + 1)), ("Close", PanelDark, (Action)null));
Scripts/PotionSortGame.Hud.cs:461 / void CompleteGuide(int b)Say("Nice! " + BoostName[b] + " is yours", GoldC, 1.4f);
Scripts/PotionSortGame.View.cs:196 / void LayoutFlasks(bool keepState)var q = HzUI.Label("Q", l.transform, "?", (int)(_uh * 0.62f), new Color(1, 1, 1, 0.9f)); q.raycastTarget = false; q.rectTransform.Stretch();
Scripts/PotionSortGame.View.cs:241 / void LayoutFlasks(bool keepState)v.hourTxt = HzUI.Label("N", v.hourBadge.transform, "", (int)(_fw * 0.34f), Color.white); v.hourTxt.raycastTarget = false; v.hourTxt.rectTransform.Stretch();
Scripts/PotionSortGame.View.cs:627 / void BuildStrip()_stripText = HzUI.Label("T", _stripBg.transform, "", 36, Cream, TextAnchor.MiddleCenter, false);
Scripts/PotionSortGame.cs:23 / declarationspublic override string Title => "Potion Pour Sort";
Scripts/PotionSortGame.cs:30 / declarationspublic static readonly string[] BoostName = { "Rewind", "Spare Flask", "Stir", "Dispel" };
Scripts/PotionSortGame.cs:109 / void ShowIntro()PsPopup("Welcome, apprentice!", "Help Professor Hoot brew pure potions.\nPour until every flask holds\njust one colour.", Panel, PsArt.Get("mascot"), "Level 1", ("Let's brew!", Mint, (Action)Begin));
Scripts/PotionSortGame.cs:115 / void ShowIntro()PsPopup($"Level {_playLevel}", D.hint, Panel, HintArt(), D.name, ("Play", Mint, (Action)Begin));
Scripts/PotionSortGame.cs:127 / void ShowIntro()else if (_playLevel >= 18 && HasLabel()) a = "label";
Scripts/PotionSortGame.cs:173 / void Win()PsPopup("Brew complete!", msg, Panel, PsArt.Get("win_badge") ?? PsArt.Get("mascot"), D.name,
Scripts/PotionSortGame.cs:193 / void Lose()PsPopup("No moves left!", "The brews are stuck: no flask can\ntake another pour.", Rose, PsArt.Get("mystery"), null, buttons.ToArray());
Scripts/PotionSortGame.cs:405 / void OnBooster(int b)Say(BoostName[b] + " unlocks at level " + BoostUnlock[b], null, 1.4f); HzAudio.Play(Sfx.Locked, 0.4f);
Scripts/PotionSortGame.cs:463 / void OfferCharge(int b)PsPopup("+1 " + BoostName[b], "Out of " + BoostName[b] + ".\nWatch a short ad for one more?", HzUI.Hex(BoostColor[b]), PsArt.Get(BoostArt[b]), null,
Scripts/PotionSortGame.cs:647 / string PopupTitle()return t ? t.GetComponent<Text>().text.Replace(' ', '_') : "popup";
CHAPTER 11

Artwork, fonts, sound and licences

Replace actual images under Resources/potionsort/Art through Unity while retaining resource basenames, .meta GUIDs, Sprite/UI settings, alpha, pivots and slicing. Procedural fallback graphics in Art/View/Theme code may need separate changes. Keep all supplied font licence notices with their corresponding fonts in Kit/Resources/potionsort/kit/Fonts, and keep applicable TMP notices in HLK editions.

Effects are the supplied PCM WAV files in Sfx; supplied music, when present, is in Music. HzAudio loads extension-free resource keys. Preserve basenames, verify loop/import settings, and audition your own replacements. A Music toggle alone does not prove a music track is supplied; inspect this actual game folder. Lossless delivery format does not recreate quality absent in an original recording.

CHAPTER 12

Saving, resets and migrations

HzSave/PlayerPrefs store local progress, options and helper state. The actual calls below identify this game save keys and defaults; do not rename them during a visual reskin. WebGL persistence belongs to the hosting origin/browser storage, not a cloud account. Clearing site data or changing browser/origin starts separate local progress.

Test fresh progress, a completed level, helper consumption/refill, sound/music options, focus loss and relaunch. Reset only a dedicated test save. When changing a released schema, level order or key scheme, implement and test migration instead of discarding existing progress.

Actual save sourceCurrent call
Scripts/PotionSortGame.Hud.cs:458 / void CompleteGuide(int b)HzSave.SetInt("potionsort_guided" + b, 1);
Scripts/PotionSortGame.Hud.cs:468 / void EndGuide(bool save)if (save) HzSave.SetInt("potionsort_guided" + _guide, 1);
Scripts/PotionSortGame.cs:50 / declarationsint Brewed { get => HzSave.GetInt("potionsort_brewed", 0); set => HzSave.SetInt("potionsort_brewed", value); }
Scripts/PotionSortGame.cs:51 / declarationsbool TutorialDone { get => HzSave.GetInt("potionsort_tut", 0) == 1; set => HzSave.SetInt("potionsort_tut", value ? 1 : 0); }
Scripts/PotionSortGame.cs:52 / int Charges(int b) => HzSave.GetInt("potionsort_b" + b, 0);int Charges(int b) => HzSave.GetInt("potionsort_b" + b, 0);
Scripts/PotionSortGame.cs:53 / void SetCharges(int b, int v) => HzSave.SetInt("potionsort_b" + b, Mathf.Max(0, v));void SetCharges(int b, int v) => HzSave.SetInt("potionsort_b" + b, Mathf.Max(0, v));
Scripts/PotionSortGame.cs:98 / void ShowIntro()if (_playLevel < BoostUnlock[b] || HzSave.GetInt("potionsort_seen" + b, 0) == 1) continue;
Scripts/PotionSortGame.cs:99 / void ShowIntro()HzSave.SetInt("potionsort_seen" + b, 1);
Scripts/PotionSortGame.cs:106 / void ShowIntro()if (_tut == 0 && HzSave.GetInt(key, 0) == 0)
Scripts/PotionSortGame.cs:108 / void ShowIntro()HzSave.SetInt(key, 1);
Scripts/PotionSortGame.cs:112 / void ShowIntro()if (!string.IsNullOrEmpty(D.hint) && HzSave.GetInt(key, 0) == 0 && _tut < 0)
Scripts/PotionSortGame.cs:114 / void ShowIntro()HzSave.SetInt(key, 1);
Scripts/PotionSortGame.cs:151 / void Begin()if (_playLevel >= BoostUnlock[b] && HzSave.GetInt("potionsort_seen" + b, 0) == 1 && HzSave.GetInt("potionsort_guided" + b, 0) == 0) { StartGuide(b); break; }
Scripts/PotionSortGame.cs:635 / int Arg(int i, int d = 0) => p.Length > i && int.TryParse(p[i], NumberStyles.Integer, CultureInfo.InvariantCulture, out var v) ? v : d;for (int b = 0; b < 4; b++) { SetCharges(b, 0); HzSave.SetInt("potionsort_seen" + b, 0); HzSave.SetInt("potionsort_guided" + b, 0); }
Scripts/PotionSortGame.cs:636 / int Arg(int i, int d = 0) => p.Length > i && int.TryParse(p[i], NumberStyles.Integer, CultureInfo.InvariantCulture, out var v) ? v : d;for (int l = 1; l <= 60; l++) HzSave.SetInt("potionsort_hint" + l, 0);
CHAPTER 13

Backend and advertising configuration

Settings asset: Assets/Szekipapa77PotionSort/HyperCasualLiveOpsKit/Resources/HLK/HLKSettings.asset. Shipping HLK defaults are Ads.Mode=0(Dummy) and IAP.Mode=3(Disabled). Retain these clean defaults when evaluating the template. Do not describe simulated banners/interstitials/rewarded callbacks as bundled AdMob or live revenue. To use a real service, install the appropriate external provider into your own project, configure your account/placement IDs, consent and testing, then deliberately select the production provider/mode. Disabled IAP must not be marketed as working real-money purchases.

Rewarded success, cancellation and failure are distinct; grant an earned reward once only. Test callbacks on supported hardware. A WebGL simulation does not prove native SDK delivery or production account approval. Keep service credentials outside delivered sources. The required game Kit, publisher-owned HyperCasual LiveOpsKit and TextMesh Pro resources are included. Ads ship in Dummy simulation and IAP is Disabled; external provider SDK binaries are excluded. Additional HLK example systems are reference content, not a claim that this game has every backend feature integrated.

CHAPTER 14

Android build, signing and release

  1. Install matching Android modules. Run the game Setup menu and select Android. Review Company=Szekipapa77, product title, application identifier com.szekipapa77.potionsort, version/code, orientation, icons, API targets, permissions and signing.
  2. Use the supplied Build Android menu or a reviewed Build Profile with the Mobile scene. The command writes Builds/Android/potionsort.apk. Require BuildResult.Succeeded and the final actual APK file.
  3. Use your own keystore for a commercial release; a test/demo signature is not a store release signature. Keep signing secrets outside the delivery.
  4. Play touch controls, tutorials, helper effects, safe areas, pause/resume, audio, save/relaunch and reward callbacks on supported hardware. A provider-free demo simulates ads; it does not validate a production provider account.
CHAPTER 15

WebGL build and HyperCodeStore hosting

Install WebGL Build Support and run Setup. The supplied Build WebGL command includes landscape and portrait scenes; preserve their order and the Kit/mobile query routing when adapting a page template. Scene orientation and outer browser size are separate. Output: Builds/WebGL/potionsort.

Deploy index.html and all matching loader/framework/data/WASM/StreamingAssets files over HTTP(S), never file://. Match compression, decompression fallback, MIME types and headers. The publisher demo belongs on HyperCodeStore, with the actual build uploaded. Verify a fresh anonymous load, real pointer controls, tutorial/helper effects, audio after interaction, save/reload and phone/desktop sizing. A 200 response alone is not gameplay verification; rebuild/rehost after accepted runtime changes.

CHAPTER 16

Troubleshooting

SymptomAction
Compilation failsRestore the matching packages and full required Kit/backend; fix the first Console error and avoid overlapping standalone game Kits.
Pink/invisible renderingRun Setup, inspect Graphics and every Quality URP asset, and preserve renderer/profile GUIDs.
No inputEnable classic input via Both, focus the canvas and close blocking modals. Use this game actual drag/tap/hold control.
Tool has no visible effectCheck unlock/charges and target preconditions; show activation and subsequent effect, not only a button animation.
Editor changes disappearStop Play, Save explicitly, reopen the bank and select the edited index. Generation may leave unsaved in-memory data.
Generated level failsReview this game schema, solver diagnostics, board/data relationships and range behavior; restore the backup if needed.
Text revertsEdit both construction and refresh assignments from the exact source table.
Resources missingRestore exact basenames/paths, importer settings, licence files and .meta GUIDs.
No live adsThe clean buyer excludes provider SDKs. Review actual Dummy/fallback mode and your own installed provider/account configuration.
Browser fails or progress resetsInspect Console/network/compression headers and storage/origin; this is local persistence, not cloud sync.

After source/data changes, repeat clean import, both scene tests, an early scene replacement, tutorial/ordinary win/retry, all helper effects and a saved-progress relaunch. Preserve owner-lifetime guards on delayed callbacks when extending the game.

CHAPTER 17

Support and release checklist

Publisher: Szekipapa77. Support: szekipapa77@gmail.com. Include Potion Pour Sort, exact Unity version, platform, first Console error and reproduction steps. Never send passwords, tokens or signing secrets.

  1. Clean-import the standalone project and native package into matching Unity/URP.
  2. Play both scenes and replace a scene shortly after startup.
  3. Verify the guided opening, ordinary success/retry, every helper activation/effect and save/relaunch.
  4. Work through the editor and concrete colour/text recipes in both layouts.
  5. Rebuild Android/WebGL after accepted changes; test your intended provider setup on supported hardware.
  6. Retain complete offline HTML/PDF documentation and applicable licences in the main download.
  7. Verify actual public showcase, HyperCodeStore browser demo, anonymously downloadable APK and documentation links before storefront submission.