Unity 6000.0.62f1 · Complete offline documentation

Tiny Blocks
Developer Guide

Install. Edit. Reskin. Build your release.

szekipapa77@gmail.com
Tiny Blocks cover
CHAPTER 01

Start here: Tiny Blocks

Drag small coloured toy bricks from the tray onto the baseplate. A same-colour square snaps into a big brick; let it grow or tap it to pack it for points. Meet the displayed score, big-brick or crate goals before the piece budget is exhausted. A packed big brick and an ordinary placed small brick are different actions.

This is a standalone editable Unity game with 25 authored levels, 4 guided helpers, game-specific authoring/generation and local saves. The publisher-owned Szekipapa77Ads adapter is included, with no external provider SDK binaries, HLK, IAP or remote backend in this edition.

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. Keep the WebGLTemplates special folder at Assets/WebGLTemplates/Szekipapa77.
  4. Run Tools > Szekipapa77 > Tiny Blocks> Setup. Check Graphics and every Quality URP assignment, and Active Input Handling=Both. The game uses classic pointer input.
  5. Open Assets/Szekipapa77TinyBlocks/Games/TinyBlocks/Scenes/TinyBlocks_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/Szekipapa77TinyBlocks/Games/TinyBlocks/Scenes/TinyBlocks_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/Szekipapa77TinyBlocks/Games/TinyBlocks. 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/tinyblocks owns gameplay data and media. Backend settings: Assets/Szekipapa77TinyBlocks/Szekipapa77Ads/Resources/AdsSettings.asset.

Source filePurpose/source heading
PublisherNamespaceMarker.csGame-specific model, renderer or rule support
TbArt.csGame-specific model, renderer or rule support
TbCore.csGame-specific model, renderer or rule support
TbGen.csLevel generator shared by the runtime (levels after the curated list) and the editor (Auto Generate, curated rebuild). / Steps: board shape, obstacles and starter bricks, an exploration run of the bot to see what the deal allows, / goals set to a share of that, then the proof bot must meet the goals within the budget (else retry easier).
TbLevels.csGame-specific model, renderer or rule support
TbSfx.csSound event names → files in Resources/tinyblocks/Sfx/ (variants "name_2", "name_3" play at random). / "click" also overrides the kit synth for every button press.
TbSolver.csGame-specific model, renderer or rule support
TinyBlocksGame.Hud.csGame runtime partial
TinyBlocksGame.View.csGame runtime partial
TinyBlocksGame.csTiny Blocks: drag tiny toy bricks onto the baseplate; same-colour squares snap into big bricks that grow while they wait; / tap a big brick to pack it for points. Meet the level's goals before the pieces run out. / This file: level flow, moves, boosters and test hooks. TinyBlocksGame.View.cs draws the board, tray, drag and effects; / TinyBlocksGame.Hud.cs builds the two layouts, popups, the tutorial and the guided booster uses.

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

Drag small coloured toy bricks from the tray onto the baseplate. A same-colour square snaps into a big brick; let it grow or tap it to pack it for points. Meet the displayed score, big-brick or crate goals before the piece budget is exhausted. A packed big brick and an ordinary placed small brick are different actions.

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. Keep rows at the declared width/height. Colour letters, crate encoding and fixed piece sequence are model data in the actual level/model files; use the editor preview instead of inventing shape IDs.

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
Hammer33Knocks out one small brick, or hits a crate once.
Turn63Turns a piece in the tray a quarter turn.
Rainbow102Makes a piece in the tray fit with ANY colour.
Popper152Pops every small brick in a 3x3 area and hits the crates in it.

Exact catalogue/effect sources: TinyBlocksGame.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/Szekipapa77TinyBlocks/Games/TinyBlocks/Resources/tinyblocks/Levels/levels.json. Open Tools > Szekipapa77 > Tiny Blocks> 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 an ordinary duplicated level, lower goalScore from 40 to 30 for an easier score target. Keep the authored rows, colour letters, piece sequence and piece budget consistent; use the actual big-brick and crate goal controls separately.
  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/TinyBlocksLevelEditor.cs:110if (GUILayout.Button(Dirty ? "Save *" : "Save", EditorStyles.toolbarButton, GUILayout.Width(70))) Save();
Editor/TinyBlocksLevelEditor.cs:111if (GUILayout.Button("Reload", EditorStyles.toolbarButton, GUILayout.Width(60)) && (!Dirty || EditorUtility.DisplayDialog("Reload", "Discard unsaved changes?", "Discard", "Cancel"))) Load();
Editor/TinyBlocksLevelEditor.cs:114if (GUILayout.Button("Validate", EditorStyles.toolbarButton, GUILayout.Width(70)) && Cur != null) ValidateOne(_sel);
Editor/TinyBlocksLevelEditor.cs:115if (GUILayout.Button("Validate All", EditorStyles.toolbarButton, GUILayout.Width(85))) ValidateAll();
Editor/TinyBlocksLevelEditor.cs:118if (GUILayout.Button(new GUIContent("Play this level", "Optional quick test: 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/TinyBlocksLevelEditor.cs:146if (GUILayout.Button("Add"))
Editor/TinyBlocksLevelEditor.cs:153if (GUILayout.Button("Dup") && Cur != null) { var c = Cur.Clone(); c.name += " copy"; Insert(_sel + 1, c); }
Editor/TinyBlocksLevelEditor.cs:154if (GUILayout.Button("Del") && Cur != null && EditorUtility.DisplayDialog("Delete", $"Delete level {_sel + 1} '{Cur.name}'?", "Delete", "Cancel"))
Editor/TinyBlocksLevelEditor.cs:158if (GUILayout.Button("Up") && _sel > 0) Move(-1);
Editor/TinyBlocksLevelEditor.cs:159if (GUILayout.Button("Down") && _sel < _file.levels.Length - 1) Move(1);
Editor/TinyBlocksLevelEditor.cs:188EditorGUILayout.LabelField($"Level {_sel + 1}", EditorStyles.boldLabel);
Editor/TinyBlocksLevelEditor.cs:190l.name = EditorGUILayout.TextField("Name", l.name);
Editor/TinyBlocksLevelEditor.cs:191l.hint = EditorGUILayout.TextField(new GUIContent("Hint", "First-time hint on the level card (use \\n for a new line)"), l.hint.Replace("\n", "\\n")).Replace("\\n", "\n");
Editor/TinyBlocksLevelEditor.cs:193int nw = Mathf.Clamp(EditorGUILayout.IntField("Width", l.w), 3, TbBoard.MaxSide);
Editor/TinyBlocksLevelEditor.cs:194int nh = Mathf.Clamp(EditorGUILayout.IntField("Height", l.h), 3, TbBoard.MaxSide);
Editor/TinyBlocksLevelEditor.cs:195l.shape = EditorGUILayout.TextField("Shape label", l.shape);
Editor/TinyBlocksLevelEditor.cs:199l.colors = EditorGUILayout.IntSlider(new GUIContent("Colours", "How many brick colours the deal uses"), l.colors, 1, TbBoard.Colors);
Editor/TinyBlocksLevelEditor.cs:200l.pieces = Mathf.Max(1, EditorGUILayout.IntField(new GUIContent("Pieces", "Piece budget"), l.pieces));
Editor/TinyBlocksLevelEditor.cs:203l.goalScore = Mathf.Max(0, EditorGUILayout.IntField("Goal: score", l.goalScore));
Editor/TinyBlocksLevelEditor.cs:204l.goalBig = Mathf.Max(0, EditorGUILayout.IntField("Goal: big bricks", l.goalBig));
Editor/TinyBlocksLevelEditor.cs:205l.bigSize = Mathf.Clamp(EditorGUILayout.IntField("Big = side", l.bigSize), 2, TbBoard.MaxSide);
Editor/TinyBlocksLevelEditor.cs:206l.goalCrates = EditorGUILayout.ToggleLeft("Goal: open all crates", l.goalCrates, GUILayout.Width(160));
Editor/TinyBlocksLevelEditor.cs:209l.seed = EditorGUILayout.IntField(new GUIContent("Deal seed", "The deal is fixed by this seed"), l.seed);
Editor/TinyBlocksLevelEditor.cs:210l.hard = EditorGUILayout.IntSlider(new GUIContent("Hard shapes %", "Share of awkward shapes in the deal"), l.hard, 0, 100);
Editor/TinyBlocksLevelEditor.cs:211l.wild = EditorGUILayout.IntSlider(new GUIContent("Rainbow %", "Chance a dealt piece has a rainbow brick"), l.wild, 0, 40);
Editor/TinyBlocksLevelEditor.cs:214l.party = EditorGUILayout.ToggleLeft("Party meter", l.party, GUILayout.Width(110));
Editor/TinyBlocksLevelEditor.cs:215l.breather = EditorGUILayout.ToggleLeft("Breather", l.breather, GUILayout.Width(90));
Editor/TinyBlocksLevelEditor.cs:216l.difficulty = EditorGUILayout.Slider("Design difficulty", l.difficulty, 0, 1);
Editor/TinyBlocksLevelEditor.cs:218l.seq = EditorGUILayout.TextField(new GUIContent("Scripted pieces", "Optional first pieces, e.g. \"1:a 20:b c0:a\" (shape:colour, * = rainbow)"), l.seq);
Editor/TinyBlocksLevelEditor.cs:220EditorGUILayout.LabelField("Goal: " + l.GoalText() + " - " + l.LooseCount + " bricks, " + l.CrateCount + " crates (" + l.ChestCount + " chests)", EditorStyles.miniBoldLabel);
Editor/TinyBlocksLevelEditor.cs:232EditorGUILayout.LabelField("Left-click / drag paints, right-click erases. Pre-placed same-colour squares snap into big bricks at the start.", EditorStyles.miniLabel);
Editor/TinyBlocksLevelEditor.cs:283if (board.Blocks.Count > 0) EditorGUILayout.LabelField($"{board.Blocks.Count} big brick(s) at the start (white bar)", EditorStyles.miniLabel);
Editor/TinyBlocksLevelEditor.cs:289if (!_results.TryGetValue(_sel, out var v)) { EditorGUILayout.HelpBox("Not validated yet (Validate runs the proof bot and a casual-player bot).", MessageType.None); return; }
Editor/TinyBlocksLevelEditor.cs:290EditorGUILayout.HelpBox(v.ToString() + (v.Solvable ? "\nThe bot meets the goals with " + v.Pieces + " of " + v.Budget + " pieces." : "\nThe bot could not meet the goals: lower a goal or add pieces."),
Editor/TinyBlocksLevelEditor.cs:292if (v.Solvable && v.Final != null) EditorGUILayout.LabelField("Bot end board:\n" + v.Final.Dump(), EditorStyles.helpBox, GUILayout.Height(18 * (v.Final.H + 1)));
Editor/TinyBlocksLevelEditor.cs:298EditorGUILayout.LabelField("Difficulty curve (bot score; blue = breather, red = unsolvable). Click a bar to select.", EditorStyles.miniBoldLabel);
Editor/TinyBlocksLevelEditor.cs:330_showGen = EditorGUILayout.Foldout(_showGen, "Auto Generate (seeded, proof-bot validated, same TbGen code as the runtime)", true);
Editor/TinyBlocksLevelEditor.cs:333_genCount = Mathf.Clamp(EditorGUILayout.IntField("Count", _genCount), 1, 100);
Editor/TinyBlocksLevelEditor.cs:334_genStart = Mathf.Max(1, EditorGUILayout.IntField("Start at level #", _genStart));
Editor/TinyBlocksLevelEditor.cs:335_genSeed = EditorGUILayout.IntField("Seed", _genSeed);
Editor/TinyBlocksLevelEditor.cs:338_genFrom = EditorGUILayout.Slider("Start difficulty", _genFrom, 0, 1);
Editor/TinyBlocksLevelEditor.cs:339_genTo = EditorGUILayout.Slider("End difficulty", _genTo, 0, 1);
Editor/TinyBlocksLevelEditor.cs:342_genBreather = EditorGUILayout.IntSlider("Breather every", _genBreather, 0, 8);
Editor/TinyBlocksLevelEditor.cs:343_genReplace = EditorGUILayout.ToggleLeft("Replace that range (else insert)", _genReplace);
Editor/TinyBlocksLevelEditor.cs:355if (GUILayout.Button($"Generate {_genCount} level(s)", GUILayout.Height(26))) Generate();
Editor/TinyBlocksLevelEditor.cs:356if (GUILayout.Button(new GUIContent("Rebuild curated 2-25 from the design plan", "Regenerates levels 2..25 from TbGen.CuratedSpecs (level 1 stays the hand-made tutorial)"), GUILayout.Height(26))
CHAPTER 07

Generation, insertion, replacement and validation

Replace OFF inserts at the chosen 1-based start index and shifts later records. ON removes the overlapping requested/generated range then inserts the new records. A start after the existing bank clamps to the end. Review the actual removal count when cancelling partway.

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/TinyBlocksLevelEditor.cs:37int _genCount = 5, _genStart = 26, _genSeed = 1234, _genBreather = 5;
Editor/TinyBlocksLevelEditor.cs:38float _genFrom = 0.5f, _genTo = 0.85f;
Editor/TinyBlocksLevelEditor.cs:39bool _genReplace;
Editor/TinyBlocksLevelEditor.cs:333_genCount = Mathf.Clamp(EditorGUILayout.IntField("Count", _genCount), 1, 100);
Editor/TinyBlocksLevelEditor.cs:334_genStart = Mathf.Max(1, EditorGUILayout.IntField("Start at level #", _genStart));
Editor/TinyBlocksLevelEditor.cs:335_genSeed = EditorGUILayout.IntField("Seed", _genSeed);
Editor/TinyBlocksLevelEditor.cs:338_genFrom = EditorGUILayout.Slider("Start difficulty", _genFrom, 0, 1);
Editor/TinyBlocksLevelEditor.cs:339_genTo = EditorGUILayout.Slider("End difficulty", _genTo, 0, 1);
Editor/TinyBlocksLevelEditor.cs:342_genBreather = EditorGUILayout.IntSlider("Breather every", _genBreather, 0, 8);
Editor/TinyBlocksLevelEditor.cs:343_genReplace = EditorGUILayout.ToggleLeft("Replace that range (else insert)", _genReplace);
Editor/TinyBlocksLevelEditor.cs:347int n = Mathf.Max(1, _genCount);
Editor/TinyBlocksLevelEditor.cs:350float d = GenCurve(i, n, _genFrom, _genTo, _genBreather, out bool br);
Editor/TinyBlocksLevelEditor.cs:355if (GUILayout.Button($"Generate {_genCount} level(s)", GUILayout.Height(26))) Generate();
Editor/TinyBlocksLevelEditor.cs:365int at = Mathf.Clamp(_genStart - 1, 0, list.Count);
Editor/TinyBlocksLevelEditor.cs:369for (int i = 0; i < _genCount; i++)
Editor/TinyBlocksLevelEditor.cs:371EditorUtility.DisplayProgressBar("Generating", $"Level {at + i + 1}", i / (float)_genCount);
Editor/TinyBlocksLevelEditor.cs:372float d = GenCurve(i, _genCount, _genFrom, _genTo, _genBreather, out bool br);
Editor/TinyBlocksLevelEditor.cs:373int seed = _genSeed + i * 7919;
Editor/TinyBlocksLevelEditor.cs:386if (_genReplace) { int rm = Mathf.Min(_genCount, list.Count - at); if (rm > 0) list.RemoveRange(at, rm); }
Editor/TinyBlocksLevelEditor.cs:387list.InsertRange(at, made);
CHAPTER 08

Actual level schema and safe identifiers

Keep rows at the declared width/height. Colour letters, crate encoding and fixed piece sequence are model data in the actual level/model files; use the editor preview instead of inventing shape IDs.

Canonical bank: Assets/Szekipapa77TinyBlocks/Games/TinyBlocks/Resources/tinyblocks/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 Snap",
  "hint": "Make squares of one colour, then tap them to pack them.",
  "shape": "square",
  "w": 6,
  "h": 6,
  "rows": [
    "......",
    ".aa...",
    ".a....",
    "......",
    "...bb.",
    "......"
  ],
  "colors": 2,
  "pieces": 10,
  "goalScore": 40,
  "goalBig": 0,
  "bigSize": 3,
  "goalCrates": false,
  "seed": 101,
  "hard": 0,
  "wild": 0,
  "party": false,
  "seq": "1:a 20:b c0:a 20:a O:b 1:b",
  "difficulty": 0.05,
  "breather": false,
  "botPieces": 0,
  "score": -1
}
Model declarationExact field/property

Keep GameId=tinyblocks, 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/TbArt.cs and find Cream, currently assigned HzUI.Hex("#FFF6E8"). 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/TinyBlocksGame.Hud.cs:347 / HzPopup TbPopupFull(string title, string message, Color accent, Sprite art, string subtitle, int stars, (string label, Color color, Action action)[] buttons)var inner = HzUI.Panel("Inner", card.transform, Cream, 44); inner.raycastTarget = false;
Scripts/TinyBlocksGame.Hud.cs:484 / void ShowTip(string text, float seconds)_tipText = HzUI.Label("T", tip.transform, text, IsPortrait ? 40 : 32, Cream, TextAnchor.MiddleCenter, false);
Scripts/TinyBlocksGame.View.cs:73 / void BuildView()var g = HzUI.Img("BgImg", _bgLayer, HzUI.Gradient(Peach, Cream), Color.white); g.preserveAspect = false; g.raycastTarget = false;
Scripts/TinyBlocksGame.View.cs:522 / void ShowCash(TbCashResult r, BlockView bv)ScorePop(at, "+" + r.Gain.ToString(CultureInfo.InvariantCulture) + (r.Mult >= 2 ? " x" + r.Mult.ToString(CultureInfo.InvariantCulture) : ""), r.Mult >= 2 ? Gold : Cream, r.K);
Scripts/TinyBlocksGame.View.cs:575 / void HammerFx(int i)Burst(at, Cream, 8);

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/TbArt.cs:10 / declarationspublic static readonly Color Plum = HzUI.Hex("#3B2350"), PlumSoft = HzUI.Hex("#6C5584"), Cream = HzUI.Hex("#FFF6E8"), Peach = HzUI.Hex("#FFD8B8"),
Scripts/TbArt.cs:11 / declarationsMint = HzUI.Hex("#7FD8C4"), MintDark = HzUI.Hex("#4FB8A6"), Teal = HzUI.Hex("#2E8C86"), TealDeep = HzUI.Hex("#1F6F6A"),
Scripts/TbArt.cs:12 / declarationsRed = HzUI.Hex("#FF5A5F"), Yellow = HzUI.Hex("#FFC93C"), Blue = HzUI.Hex("#4DA8FF"), Green = HzUI.Hex("#4CC37A"),
Scripts/TbArt.cs:13 / declarationsGrape = HzUI.Hex("#9B6BFF"), Orange = HzUI.Hex("#FF9A3C"), CardBg = HzUI.Hex("#FFF9F0"), CardLine = HzUI.Hex("#F1DCC4"),
Scripts/TbArt.cs:14 / declarationsLocked = HzUI.Hex("#B9A9C9"), Gold = HzUI.Hex("#FFB627"), Good = HzUI.Hex("#3DBE6E"), Pink = HzUI.Hex("#FF7FA8");
Scripts/TbArt.cs:16 / declarationspublic static readonly Color[] Bricks = { Red, Yellow, Blue, Green, Grape, Orange };
Scripts/TinyBlocksGame.Hud.cs:170 / void TrayFrame(float cx, float cy, float w, float h, bool horizontal)var frame = HzUI.Panel("Tray", _layer, HzUI.Hex("#E8B98A"), 48);
Scripts/TinyBlocksGame.Hud.cs:173 / void TrayFrame(float cx, float cy, float w, float h, bool horizontal)var inner = HzUI.Panel("Inner", frame.transform, HzUI.Hex("#F6D2A8"), 40); inner.raycastTarget = false; inner.rectTransform.Stretch(8);
Scripts/TinyBlocksGame.Hud.cs:177 / void TrayFrame(float cx, float cy, float w, float h, bool horizontal)var cushion = HzUI.Panel("Slot", frame.transform, HzUI.Hex("#FFF1DE"), 34); cushion.raycastTarget = false;
Scripts/TinyBlocksGame.Hud.cs:217 / void BoosterBar(float cx, float cy, float w, float h, bool horizontal)var lockGo = HzUI.Panel("Lock", v.Root, HzUI.Hex("#A493B8"), (int)(size * 0.32f)); lockGo.raycastTarget = false;
Scripts/TinyBlocksGame.Hud.cs:308 / void RefreshArmed()if (_trayRt) _trayRt.GetComponent<Image>().color = tray ? Gold : HzUI.Hex("#E8B98A");
Scripts/TinyBlocksGame.Hud.cs:321 / void AnimateParty()var c = Color.Lerp(HzUI.Hex("#FFE7F4"), HzUI.Hex("#FFC2DE"), k);
Scripts/TinyBlocksGame.Hud.cs:344 / HzPopup TbPopupFull(string title, string message, Color accent, Sprite art, string subtitle, int stars, (string label, Color color, Action action)[] buttons)var card = HzUI.Panel("Card", dim.transform, HzUI.Hex("#F3D9BC"), 56);
Scripts/TinyBlocksGame.View.cs:111 / void BuildBoard()var tile = HzUI.Panel("Tile", cellsRt, (x + y) % 2 == 0 ? Mint : HzUI.Hex("#76D0BC"), rr); tile.raycastTarget = false;
Scripts/TinyBlocksGame.View.cs:135 / void BuildBoard()if (!crate) { v.Crate.sprite = HzUI.RoundRect(16); v.Crate.type = Image.Type.Sliced; v.Crate.color = HzUI.Hex("#C98A4B"); }
Scripts/TinyBlocksGame.View.cs:272 / void RefreshTray(bool animate)for (int k = 0; k < TbBoard.TraySize; k++) if (_slotBg[k]) _slotBg[k].color = party ? HzUI.Hex("#FFE7F4") : HzUI.Hex("#FFF1DE");
Scripts/TinyBlocksGame.View.cs:560 / void CrateFx(int i, bool opened, bool chest)Burst(at, opened ? Gold : HzUI.Hex("#C98A4B"), opened ? 12 : 6);
Scripts/TinyBlocksGame.cs:32 / declarationspublic static readonly string[] BoostColor = { "#FF7A6B", "#4DA8FF", "#9B6BFF", "#FF9A3C" };
CHAPTER 10

Reskin recipe: visible interface text and localization

Worked string edit: open Scripts/TinyBlocksGame.Hud.cs, find the display literal "Settings" in var p = TbPopup("Settings", "", Grape, 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/TinyBlocksGame.Hud.cs:66 / void BuildHudLandscape(float W, float H)var title = HzUI.Label("Title", _layer, "Tiny Blocks", 52, Yellow, TextAnchor.MiddleLeft);
Scripts/TinyBlocksGame.Hud.cs:85 / void LevelPill(Image pill, float w)_levelTxt = HzUI.Label("Level", pill.transform, "", 60, Color.white); _levelTxt.AddOutline(new Color(0.05f, 0.15f, 0.15f, 0.4f), 3);
Scripts/TinyBlocksGame.Hud.cs:87 / void LevelPill(Image pill, float w)_nameTxt = HzUI.Label("Name", pill.transform, "", 32, new Color(1, 1, 1, 0.95f), TextAnchor.MiddleCenter, false); _nameTxt.fontStyle = FontStyle.Bold;
Scripts/TinyBlocksGame.Hud.cs:117 / void GoalCard(Image card, float w, float h)_piecesTxt = HzUI.Label("N", _piecesDisc.transform, "", (int)(disc * 0.44f), Color.white); _piecesTxt.AddOutline(Plum, 3);
Scripts/TinyBlocksGame.Hud.cs:119 / void GoalCard(Image card, float w, float h)_piecesLbl = HzUI.Label("L", _piecesDisc.transform, "pieces", (int)(disc * 0.17f), Color.white, TextAnchor.MiddleCenter, false); _piecesLbl.fontStyle = FontStyle.Bold;
Scripts/TinyBlocksGame.Hud.cs:126 / void GoalCard(Image card, float w, float h)_scoreTxt = HzUI.Label("Score", card.transform, "", wide ? 42 : 38, Plum, TextAnchor.MiddleLeft);
Scripts/TinyBlocksGame.Hud.cs:134 / void GoalCard(Image card, float w, float h)_goal2Txt = HzUI.Label("Goal2", card.transform, "", wide ? 34 : 32, PlumSoft, TextAnchor.MiddleLeft, false); _goal2Txt.fontStyle = FontStyle.Bold;
Scripts/TinyBlocksGame.Hud.cs:136 / void GoalCard(Image card, float w, float h)_goal3Txt = HzUI.Label("Goal3", card.transform, "", wide ? 34 : 32, PlumSoft, TextAnchor.MiddleLeft, false); _goal3Txt.fontStyle = FontStyle.Bold;
Scripts/TinyBlocksGame.Hud.cs:159 / void GoalCard(Image card, float w, float h)_partyTxt = HzUI.Label("PartyLbl", _partyRow, "Party", wide ? 28 : 26, Pink, TextAnchor.MiddleLeft, false); _partyTxt.fontStyle = FontStyle.Bold;
Scripts/TinyBlocksGame.Hud.cs:203 / void BoosterBar(float cx, float cy, float w, float h, bool horizontal)var btn = HzUI.Button("Booster" + b.ToString(CultureInfo.InvariantCulture), parent, null, Color.white, Color.white, () => OnBooster(bb), 40, (int)(size * 0.32f));
Scripts/TinyBlocksGame.Hud.cs:226 / void BoosterBar(float cx, float cy, float w, float h, bool horizontal)v.BadgeText = HzUI.Label("N", bd.transform, "", (int)(size * 0.24f), Color.white); v.BadgeText.rectTransform.Stretch();
Scripts/TinyBlocksGame.Hud.cs:228 / void BoosterBar(float cx, float cy, float w, float h, bool horizontal)v.Caption = HzUI.Label("Cap", v.Root, "", 30, Plum);
Scripts/TinyBlocksGame.Hud.cs:238 / void RefreshHud()_nameTxt.text = D.name + (D.breather ? " - easy one" : "");
Scripts/TinyBlocksGame.Hud.cs:241 / void RefreshHud()_piecesLbl.text = left == 1 ? "piece" : "pieces";
Scripts/TinyBlocksGame.Hud.cs:249 / void RefreshHud()_scoreTxt.text = "Score " + B.Score.ToString(CultureInfo.InvariantCulture) + " / " + D.goalScore.ToString(CultureInfo.InvariantCulture);
Scripts/TinyBlocksGame.Hud.cs:252 / void RefreshHud()else _scoreTxt.text = "Score " + B.Score.ToString(CultureInfo.InvariantCulture);
Scripts/TinyBlocksGame.Hud.cs:266 / void RefreshHud()_goal2Txt.text = lines.Count > 0 ? lines[0] : (D.goalScore > 0 ? "Pack big bricks to score" : "");
Scripts/TinyBlocksGame.Hud.cs:268 / void RefreshHud()_goal3Txt.text = lines.Count > 1 ? lines[1] : "";
Scripts/TinyBlocksGame.Hud.cs:276 / void RefreshHud()_partyTxt.text = B.PartyLeft > 0 ? "PARTY x" + B.PartyLeft.ToString(CultureInfo.InvariantCulture) : "Party";
Scripts/TinyBlocksGame.Hud.cs:280 / void RefreshHud()if (IsPortrait && showParty && _goal3Txt.text.Length > 0) _goal3Txt.text = "";
Scripts/TinyBlocksGame.Hud.cs:295 / void RefreshBoosters()v.BadgeText.text = c > 0 ? c.ToString(CultureInfo.InvariantCulture) : "+";
Scripts/TinyBlocksGame.Hud.cs:297 / void RefreshBoosters()v.Caption.text = un ? BoostName[b] : "Level " + BoostUnlock[b].ToString(CultureInfo.InvariantCulture);
Scripts/TinyBlocksGame.Hud.cs:384 / HzPopup TbPopupFull(string title, string message, Color accent, Sprite art, string subtitle, int stars, (string label, Color color, Action action)[] buttons)var t = HzUI.Label("Title", ribbon.transform, title, 72, Color.white); t.rectTransform.Stretch(6);
Scripts/TinyBlocksGame.Hud.cs:389 / HzPopup TbPopupFull(string title, string message, Color accent, Sprite art, string subtitle, int stars, (string label, Color color, Action action)[] buttons)var st = HzUI.Label("Sub", card.transform, subtitle, 40, Teal); st.rectTransform.Place(new Vector2(0.5f, 1), new Vector2(cw - 80, 50), new Vector2(0, y - 25));
Scripts/TinyBlocksGame.Hud.cs:394 / HzPopup TbPopupFull(string title, string message, Color accent, Sprite art, string subtitle, int stars, (string label, Color color, Action action)[] buttons)p.Message = HzUI.Label("Msg", card.transform, message, 44, Plum, TextAnchor.MiddleCenter, false);
Scripts/TinyBlocksGame.Hud.cs:429 / void UnlockPopup(int b, Action done)TbPopup("New: " + BoostName[b] + "!", BoostDesc[b] + "\nYou get " + BoostStart[b].ToString(CultureInfo.InvariantCulture) + " free!", HzUI.Hex(BoostColor[b]), TbArt.Get(BoostArt[b]), null,
Scripts/TinyBlocksGame.Hud.cs:438 / void ShowSettingsPopup()var p = TbPopup("Settings", "", Grape, null, null,
Scripts/TinyBlocksGame.Hud.cs:452 / static string SoundLabel() => HzAudio.Muted ? "Sound: OFF" : "Sound: ON";static string SoundLabel() => HzAudio.Muted ? "Sound: OFF" : "Sound: ON";
Scripts/TinyBlocksGame.Hud.cs:453 / static string MusicLabel() => HzAudio.MusicMuted ? "Music: OFF" : "Music: ON";static string MusicLabel() => HzAudio.MusicMuted ? "Music: OFF" : "Music: ON";
Scripts/TinyBlocksGame.Hud.cs:467 / void HelpPage(int i)TbPopup("How to Play " + (i + 1).ToString(CultureInfo.InvariantCulture) + "/" + HelpPages.Length.ToString(CultureInfo.InvariantCulture), HelpPages[i], Blue,
Scripts/TinyBlocksGame.Hud.cs:484 / void ShowTip(string text, float seconds)_tipText = HzUI.Label("T", tip.transform, text, IsPortrait ? 40 : 32, Cream, TextAnchor.MiddleCenter, false);
Scripts/TinyBlocksGame.Hud.cs:543 / void RefreshTutorialHand()ShowTip("Great! Keep going until you reach the goal.", 3f);
Scripts/TinyBlocksGame.Hud.cs:610 / void RefreshGuide()if (_guideStep == 0) text = "New helper: " + BoostName[_guide] + "!\nTap it - this one is free.";
Scripts/TinyBlocksGame.Hud.cs:678 / void CompleteGuide(int b)Toast("Nice! " + BoostName[b] + " is ready when you need it", Yellow, 1.4f, ToastY);
Scripts/TinyBlocksGame.View.cs:136 / void BuildBoard()v.Hp = HzUI.Label("Hp", v.Crate.transform, "", (int)(_cs * 0.34f), Color.white); v.Hp.AddOutline(Plum, 3);
Scripts/TinyBlocksGame.View.cs:184 / void SyncBoard()v.Hp.text = chest ? B.Hp[i].ToString(CultureInfo.InvariantCulture) : "";
Scripts/TinyBlocksGame.View.cs:232 / void PaintBrick(Image face, Image stud, int c)v.Value = HzUI.Label("V", badge.transform, "", (int)(_cs * 0.42f), Plum); v.Value.rectTransform.Stretch(2);
Scripts/TinyBlocksGame.View.cs:437 / void DropGhost(Vector2 tl)if (_tutorial && !TutorialAllowsDrop(slot, x, y)) { if (B.CanPlace(B.Tray[slot].Value, x, y)) Toast("Follow the hand!", Yellow, 1.1f, ToastY); }
Scripts/TinyBlocksGame.View.cs:492 / void ShowFuses(List<TbFuse> fuses)if (maxK >= 3) { HzAudio.Play(Sfx.SnapBig, 0.7f); if (maxK >= 4) Toast(maxK >= 5 ? "MEGA brick!" : "Huge brick!", Gold, 1.0f, ToastY); }
Scripts/TinyBlocksGame.View.cs:585 / void PartyStart()Toast("PARTY TIME! Any colour snaps!", Pink, 2.0f, ToastY);
Scripts/TinyBlocksGame.View.cs:637 / void ScorePop(Vector2 at, string text, Color c, int k)var t = HzUI.Label("Score", _fxLayer, text, (int)Mathf.Clamp(_cs * (0.5f + 0.1f * k), 40, 96), c, TextAnchor.MiddleCenter);
Scripts/TinyBlocksGame.cs:22 / declarationspublic override string Title => "Tiny Blocks";
Scripts/TinyBlocksGame.cs:29 / declarationspublic static readonly string[] BoostName = { "Hammer", "Turn", "Rainbow", "Popper" };
Scripts/TinyBlocksGame.cs:115 / string LevelLabel() => "Level " + _playLevel.ToString(CultureInfo.InvariantCulture);string LevelLabel() => "Level " + _playLevel.ToString(CultureInfo.InvariantCulture);
Scripts/TinyBlocksGame.cs:123 / void ShowLevelCard()var p = TbPopup(LevelLabel(), msg, Teal, LevelCardArt(), D.name, ("Play", Good, (Action)Begin));
Scripts/TinyBlocksGame.cs:212 / void Lose(string reason)TbPopup(title, msg, Red, TbArt.Get("crate"), null, buttons.ToArray());
Scripts/TinyBlocksGame.cs:291 / public void OnBlockTap(int id)Toast("Aim at a small brick or a crate", null, 1.1f, ToastY); HzAudio.Play(Sfx.Cancel, 0.4f); return;
Scripts/TinyBlocksGame.cs:319 / void AfterMove()Toast("No room! Tap a big brick to pack it", Yellow, 1.6f, ToastY);
Scripts/TinyBlocksGame.cs:333 / IEnumerator AutoPack()Toast("Last piece! Packing the rest...", Yellow, 1.3f, ToastY);
Scripts/TinyBlocksGame.cs:364 / void OnBooster(int b)Toast(BoostName[b] + " unlocks at level " + BoostUnlock[b].ToString(CultureInfo.InvariantCulture), null, 1.3f, ToastY); HzAudio.Play(Sfx.Cancel, 0.4f);
Scripts/TinyBlocksGame.cs:427 / void UseBooster(int b, int target)if (!wasCrate && !loose) { Toast("Tap a small brick or a crate", null, 1.1f, ToastY); HzAudio.Play(Sfx.Cancel, 0.4f); return; }
Scripts/TinyBlocksGame.cs:457 / void UseBooster(int b, int target)if (r < 0 || r == p.Shape) { Toast("This piece looks the same turned", null, 1.1f, ToastY); HzAudio.Play(Sfx.Cancel, 0.4f); return; }
Scripts/TinyBlocksGame.cs:468 / void UseBooster(int b, int target)if (p.Color == TbBoard.Wild) { Toast("Already a rainbow piece", null, 1.1f, ToastY); HzAudio.Play(Sfx.Cancel, 0.4f); return; }
Scripts/TinyBlocksGame.cs:498 / void OfferCharge(int b)TbPopup("+1 " + BoostName[b], "Out of " + BoostName[b] + ".\nWatch a short ad for one more?", HzUI.Hex(BoostColor[b]), TbArt.Get(BoostArt[b]), null,
Scripts/TinyBlocksGame.cs:647 / string PopupTitle()return t ? t.GetComponent<Text>().text.Replace(' ', '_') : "popup";
CHAPTER 11

Artwork, fonts, sound and licences

Replace actual images under Resources/tinyblocks/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/tinyblocks/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/TinyBlocksGame.Hud.cs:673 / void CompleteGuide(int b)HzSave.SetInt(K("guided") + b, 1);
Scripts/TinyBlocksGame.Hud.cs:685 / void EndGuide(bool save)if (save) HzSave.SetInt(K("guided") + _guide, 1);
Scripts/TinyBlocksGame.cs:48 / string K(string k) => "tinyblocks_" + k;bool TutorialDone { get => HzSave.GetInt(K("tut"), 0) == 1; set => HzSave.SetInt(K("tut"), value ? 1 : 0); }
Scripts/TinyBlocksGame.cs:49 / int Charges(int b) => HzSave.GetInt(K("b") + b, 0);int Charges(int b) => HzSave.GetInt(K("b") + b, 0);
Scripts/TinyBlocksGame.cs:50 / void SetCharges(int b, int v) => HzSave.SetInt(K("b") + b, Mathf.Max(0, v));void SetCharges(int b, int v) => HzSave.SetInt(K("b") + b, Mathf.Max(0, v));
Scripts/TinyBlocksGame.cs:105 / void ShowIntro()if (!Unlocked(b) || HzSave.GetInt(K("seen") + b, 0) == 1) continue;
Scripts/TinyBlocksGame.cs:106 / void ShowIntro()HzSave.SetInt(K("seen") + b, 1);
Scripts/TinyBlocksGame.cs:147 / void Begin()if (Unlocked(b) && HzSave.GetInt(K("seen") + b, 0) == 1 && HzSave.GetInt(K("guided") + b, 0) == 0) { StartGuide(b); break; }
Scripts/TinyBlocksGame.cs:167 / void Win()HzSave.SetInt(K("stars") + done, Mathf.Max(stars, HzSave.GetInt(K("stars") + done, 0)));
Scripts/TinyBlocksGame.cs:636 / string DebugCommandInner(string cmd)for (int b = 0; b < 4; b++) { SetCharges(b, 0); HzSave.SetInt(K("seen") + b, 0); HzSave.SetInt(K("guided") + b, 0); }
CHAPTER 13

Backend and advertising configuration

Settings asset: Assets/Szekipapa77TinyBlocks/Szekipapa77Ads/Resources/AdsSettings.asset. AdsBackend None=0/Dummy=1/AdMob=2. The supplied configuration selects AdMob with Google test IDs and missingSdkFallback Dummy=1. With the provider SDK absent, and on WebGL, callbacks are simulated. Dummy has no real banner creative or paid impression. For a real native provider install/configure your own supported SDK and IDs, test first, then turn simulated missing-provider fallback off. The customer Build tool checks unsafe commercial fallback settings.

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 publisher-owned Szekipapa77Ads adapter is included, with no external provider SDK binaries, HLK, IAP or remote backend in this edition.

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.tinyblocks, 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/tinyblocks.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 Szekipapa77 template/Build WebGL command selects portrait; choose the separate landscape scene deliberately in your own Build Profile. Scene orientation and outer browser size are separate. Output: Builds/WebGL/tinyblocks.

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 Tiny Blocks, 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.