⚠ Before you publish: give your game its own save secret Every copy of Block Bloom ships with the same save-signing (anti-tamper) secret. If you publish without replacing it, your game shares that secret with every other buyer of this package, which nullifies the save protection: anyone who has the package can forge a save (free coins, boosters, No Ads, every theme) and the game accepts it (what the risk is). In Unity choose Tools → Block Bloom → Generate New Save Secret (one click). Until you do, the Setup Checklist window (Tools → Block Bloom → Setup Checklist) opens with the project and shows it as TO DO, the Game Config shows a red box, a release build asks again before it starts, and the same notice is at the top of SaveManager.cs. Do it once, before your first release, then keep the same secret in every update. Steps and check: Save secret (required).
Block Bloom

Block Bloom

Complete Unity project of a frosty block puzzle for Android and iOS: an 8×8 board, a tray of three pieces, rows and columns that clear. An endless Classic mode, 300 goal levels with crystals and ice, boosters, coins, a shop, daily gifts, themes and a Level Editor.

Unity 6 (6000.0 LTS)Android & iOSClassic + 300 levelsLevel Editor3 boostersAdMob-ready (import Google's plugin)Unity IAP 510 languages

Included content & third parties

Not included: install these separately (their own terms apply)
  • Google Mobile Ads Unity plugin (AdMob): not in the download. Import it from Google to show ads (Ads). Until then the game builds and runs without ads.
  • Unity In-App Purchasing: not in the download as files. Unity's Package Manager installs it from Packages/manifest.json ("com.unity.purchasing": "5.4.4") when the project opens (In-app purchases).
  • No AdMob ids: no App ID and no ad unit id ships with the project; every id field of the Game Config is empty. Enter your own before you build for release.
  • No receipt-validation key: GooglePlayTangle (Google Play) is not shipped; you create your own in Unity (iOS needs none: StoreKit 2 verifies purchases itself) (Receipt validation).
The download contains no SDK binaries of any kind: no .dll, .so, .aar, .jar or .framework file, and no Library or PackageCache folder.
ContentWhere it comes from
CodeWritten for this item by the author (Zaviro), with an AI coding assistant (see AI disclosure). The save, ads, purchase and UI framework is shared with the author's other Unity items (Ludo Royale, Chess Crown, Link Crown); it is a self-contained copy, supported and updated through this item's own updates (see Shared components).
Pictures (blocks, crystals, ice, board, buttons, panels, icons, backdrops, app icon)Original work created by the author with their own art generator code, made for this item. No stock images, clip art, emoji packs or AI image generator.
Sounds and musicOriginal work synthesized by the author's own audio code (bells, plucked strings, filtered noise), made for this item. No samples, sound libraries or AI audio generator.
Levels (300)Made by the author's level generator from fixed seeds and checked by the game's own computer player. None comes from another game. Every level's origin (template, seed, win rates) is listed in Documentation/Level origins (all 300 levels).csv (how they were made).
FontsRubik Black and Rubik ExtraBold by the Rubik Project Authors, SIL Open Font License 1.1 (BlockBloom/ThirdPartyLicenses). TextMesh Pro's essential resources come with Unity's uGUI package.

The same notes are in the plain-text file Documentation/Included content and third parties.txt, next to this page.

Introduction

Thank you for purchasing Block Bloom. This guide takes you from opening the project to publishing your own version of the game. Every gameplay, economy, ads and shop setting lives in one asset (the Game Config), the 300 levels live in one level pack you edit with the Level Editor, every screen and popup is a regular prefab in one scene, and the rules of the game are plain C# you can read and change.

Home
Home
Classic
Classic
Dragging a piece
Dragging a piece
A double clear
A double clear
Level map
Level map
Level goals
Level goals
A level with crystals and ice
Crystals and ice
Level complete
Level complete
New best
New best
Second chance
Second chance
Booster
Booster
Pause
Pause
Shop
Shop
Themes
Themes
Daily gift
Daily gift
Settings
Settings
How to play
How to play

Click a screenshot to open it at full size (1080 × 2400, taken on an Android phone), or see them all on the full-size screenshots page.

ClassicEndless play for the best score. The pieces get bigger and less forgiving as the score grows; a game in progress is kept when the app closes (Continue on the home screen).
300 levels15 chapters of 20 on a map. Goals: reach a score, collect blue crystals, rose crystals and amber stars, break frozen blocks, often within a number of moves. One to three stars per level.
Level EditorPaint the starting board, set the goals and the dealer, test the level with the computer player (win rate in seconds), set par from it and play it in the editor.
BoostersTurn (turns a tray piece), Pick (breaks one block, ice too) and Refresh (three new pieces that all fit), unlocked along the levels, bought with coins or one for a rewarded ad.
Chains & cheersClearing again within three pieces builds a chain that multiplies the points. Several lines at once show a cheer (Frosty!, Blizzard!, Avalanche!), and an empty board gives a bonus.
Second chanceWhen no piece fits, the three fullest rows can thaw once per game (for a rewarded ad or coins). Out of moves in a level: five more moves.
RewardsA 7-day daily gift ending with a big present, coins for every Classic game and level, free coins for rewarded ads, double coins with an ad.
Themes5 block styles and 4 backdrops to buy with coins, all drawn in the same frosty style.
AdMob-readyBanner, interstitial and rewarded ads with Google's UMP consent form. Import Google's free plugin to switch it on and enter your own ids: the project ships without the plugin and without any ad id.
In-app purchasesCoin packs, No Ads and a Winter Pack (coins, No Ads, boosters and a block style) through Unity IAP 5, with receipt validation and a hook for your own server.
Safe progressSigned save (HMAC-SHA256), purchases never delivered twice, rewards saved the moment they are won.
10 languagesEnglish, French, Spanish, Portuguese, German, Italian, Dutch, Indonesian, Turkish and Russian, in one CSV file.

How the game plays

The rules

  1. The board has 8 × 8 cells. Below it, the tray holds three pieces. Drag a piece onto the board: it floats a little above the finger so the finger doesn't hide it, a shadow shows where it lands, and the rows and columns it would complete glow.
  2. Pieces go anywhere they fit. They don't turn by themselves (only with the Turn booster).
  3. When all three pieces are placed, three new ones come.
  4. A full row or column clears. Several lines at once give more points, and a cheer: Frosty! for two, Blizzard! for three, Avalanche! for four or more.
  5. Chain: clearing again within three placements adds a chain step, and each step adds 25% to the points of a clear (a chain of 3 gives ×1.5). Three placements without a clear end the chain.
  6. Clearing the whole board gives a bonus (Crystal clear!, 300 points).
  7. The game ends when none of the tray pieces fits anywhere. Once per game a second chance thaws the three fullest rows (for a rewarded ad or 300 coins); frozen blocks and crystals stay.

Points = 1 per block placed + 10 per block cleared × the number of lines cleared at once × the chain bonus. Every number is a setting (Game Config → Score).

Classic

Endless, for the best score. The dealer starts gentle (smaller pieces, trays that always fit, often a piece that completes a line) and slides to tough (bigger pieces, trays that may not all fit) as the score reaches 6,000. The best score is kept and shown on the home screen. A game left in progress is saved: the Classic button then reads Continue. At the end, the game pays one coin for every 100 points (at most 150).

Levels

300 levels in 15 chapters of 20 (Snowy Meadow, Crystal Cave, Frozen Lake … Bloom Summit), on a map that opens level by level. Before a level, a popup shows its starting board, its goals and its moves. A level is won when every goal it has is reached:

GoalHow
PointsReach the score.
Blue crystals, rose crystals, amber starsSome blocks hold a crystal or a star (on the starting board, or on pieces the dealer hands out). Clear the line it is in to collect it.
Frozen blocksIce breaks when its line clears; thick ice needs two clears (the first one cracks it). A full line with ice in it still clears; thick ice stays in place, cracked, until its second clear.

Most levels also have a move limit (each placed piece is one move). Out of moves, the game offers five more (for a rewarded ad or coins). Stars: winning within the level's par (the moves the careful computer player needs) gives three stars, within 135% of par two, otherwise one. Coins: 20 for a first win plus 10 per star; 5 for a replay.

Boosters

BoosterWhat it doesUnlock level
TurnTap a piece of the tray: it turns a quarter clockwise. A turn that wouldn't change the piece (a square, a single block), or that would leave no piece that fits, is refused and uses no booster.Level 5
PickTap a block of the board: it breaks (frozen blocks and crystals too; a crystal broken this way counts).Level 9
RefreshThree new pieces that can all be placed.Level 13

New players start with 3 Turns, 2 Picks and 2 Refreshes, so they can try each booster from the first game. A booster the player has none of shows a lock until its unlock level; after that, its button opens a popup to buy a pack of 3 with coins or get one for a rewarded ad. The first game shows a hand that teaches the first move.

Coins, shop and gifts

Coins come from Classic games, levels, the daily gift (50, 75, 100, 125, 150, 200, then a 500-coin present on day 7), rewarded ads in the shop (100 coins, five a day) and purchases. They buy boosters, second chances, more moves, block styles and backdrops.

Requirements

  • Unity 6000.0 LTS (made and tested with 6000.0.84f1). Use 6000.0.58f2 or newer: earlier Unity 6 versions have the security issue CVE-2025-59489.
  • Unity Hub modules: Android Build Support (with OpenJDK and Android SDK & NDK) and/or iOS Build Support.
  • Android API levels: minimum API level 24 (Android 7.0) and target API level 36 (Android 16), both set explicitly in Player Settings (see Building).
  • For iOS: a Mac with Xcode 16 or newer.
  • Packages (already in the project's manifest): In-App Purchasing 5.4.4, uGUI 2.0 with TextMesh Pro.
  • C#: the scripts use C# 8 features such as switch expressions. Unity 6 compiles them as they are (Unity supports C# 8 from 2020.2 on).
  • Optional: the Google Mobile Ads Unity plugin (not included, free from Google; made for version 11.x) to show ads.

Device requirements

What your players' phones need to run the game as it comes in the package.

MinimumNotes
Android versionAndroid 7.0 (API level 24)The game targets API level 36 (Android 16), set explicitly in Player Settings.
ProcessorARM64 or ARMv7Store builds contain both. The demo APK is ARM64 only.
GraphicsOpenGL ES 3.0 or VulkanRequired by Unity 6. All phones sold with Android 7 or newer have it.
Memory (RAM)2 GB recommendedThe game itself uses about 275 MB while playing, of which about 65 MB is graphics.
StorageAbout 40 MBThe demo APK is 36 MB. Builds from Google Play (App Bundle) download only what the phone needs. The save takes a few KB.
ScreenPortraitPhones from 16:9 to 21:9 and tablets (3:4); notches and cut-outs are kept clear (safe areas). The board grows or shrinks to fit.
InternetNot needed to playNeeded only for ads, purchases and the privacy consent form.
iPhone / iPadiOS 15Set in Player Settings (Target minimum iOS Version 15.0): Unity IAP 5 uses StoreKit 2, which needs iOS 15. iPhone 6s or newer; uses Metal.

Measured on a Samsung Galaxy A71 (Android 11, 1080 × 2400, 8 GB RAM), where every screenshot of this guide was taken. The layouts were also checked at 9:16, 20:9 and 3:4 screen shapes in the editor.

Platforms tested by the author: Android on a real phone (the demo APK and every screenshot of this guide). iOS: the Xcode project exported from this project builds with Xcode 26.6 for real iPhones (compiled and linked, release configuration) and runs in the iOS Simulator (iPhone 17, iOS 26.5), where the menus, a Classic game, Settings, Restore purchases and a simulated purchase were tried. Testing on a physical iPhone, with your own signing team, is part of your release checks (Building).

Your own accounts and possible costs

The project itself has no running costs and needs no server. To publish and earn money you need your own accounts:

AccountNeeded forCost
Google Play ConsolePublishing on Android, in-app productsOne-time registration fee (25 USD at the time of writing)
Apple Developer ProgramPublishing on iOS, in-app productsYearly fee (99 USD at the time of writing)
Google AdMobAdsFree; Google keeps a share of ad revenue

The stores also keep a commission on in-app purchases (usually 15% or 30%). AdMob and the stores are third-party services with their own terms; check the current fees on each provider's website.

Getting started

  1. Unzip the download. In Unity Hub choose Add → Add project from disk and pick the BlockBloom folder (the one that contains Assets). Open it with Unity 6000.0.
  2. The first opening imports everything and downloads Unity IAP through the Package Manager (a few minutes, online). If Unity asks to import TextMesh Pro Essentials, the project already contains them: you can close the window.
  3. Choose Tools → Block Bloom → Open Main Scene, set the Game view to a portrait phone size (for example 1080×1920 or 1080×2400) and press Play.
  4. Open Tools → Block Bloom → Game Config to see every setting, and Tools → Block Bloom → Level Editor to see the levels.
  5. Open Tools → Block Bloom → Setup Checklist. It lists, with a live status, the six things every buyer must replace before publishing (save secret, AdMob ids, product ids, Google Play receipt key, links, package name), says what happens if one is skipped, and has a button to each place to change it. It also opens by itself while any of them is left.
  6. Set your own save secret now: Tools → Block Bloom → Generate New Save Secret. It writes a new random secret into SaveManager.cs. It is required before your first release: see the next section, Save secret (required).
The Setup Checklist window with six TO DO items
The Setup Checklist as it opens in a new project: every item is TO DO until you replace it, and each one says what happens if it is skipped.
In the editor, purchases are simulated (Game Config → Test Purchases) and ads are on-screen placeholders until you import Google's plugin and enter your ids, so you can try every feature right away.

⚠ Save secret: required before you publish

Every copy of Block Bloom ships with the same save secret (BlockBloom-CHANGE-ME-…, the Secret line of Scripts/Runtime/Services/SaveManager.cs). If you publish with it, your game shares its anti-tamper secret with every other buyer of this package, which nullifies the save protection: anyone who has the package can forge a save, with any number of coins and boosters, No Ads and every theme without paying (the full risk). Replacing it takes one click:

  1. Generate it: in Unity choose Tools → Block Bloom → Generate New Save Secret… and confirm, or click Generate New Save Secret in the red box at the top of the Game Config.
  2. Check it worked: the red box at the top of the Game Config is gone, the Setup Checklist shows item 1 as DONE, and the Secret line in SaveManager.cs no longer contains CHANGE-ME.
  3. Keep it for good: commit SaveManager.cs to your version control, or keep a copy of the secret somewhere safe, and use the same secret in every update. A different secret makes every existing save unreadable and players start over (see When a save is rejected).

If you forget: the Setup Checklist window opens when you open the project and lists it as TO DO, the Game Config shows the red box, a release build stops and asks (Generate and cancel build / Build anyway / Cancel build), and every build logs a warning. None of them changes the secret for you: only step 1 does.

The red save secret notice at the top of the Game Config
The Game Config while the default secret is still in place.

Project structure

Assets/BlockBloom/
  Art/            images: Blocks (5 styles x 7 colours), Board (frame, cell, crystals, ice), Backdrops,
                  UI (panels, buttons, ribbons, map, app icon), Icons (+ Glyphs), Fx
  Audio/          21 sound effects and 2 music loops (WAV)
  Config/         the themes: Skin_* (block styles) and Backdrop_* assets
  Documentation/  this guide, the full-size screenshots page and the level origins
  Fonts/          Rubik Black and Rubik ExtraBold (+ TextMesh Pro font assets and materials)
  Levels/         Levels.asset, the level pack (300 levels)
  Plugins/iOS/    the iOS haptics helper
  Prefabs/UI/     every screen and popup (HomeScreen, GameScreen, ShopPopup ...) and the product and theme cards
  Resources/      GameConfig.asset and Localization/strings.csv
  Scenes/         Main.unity
  Scripts/
    Runtime/Core       the rules: Board, Shapes, Dealer, Scoring, Session, LevelDef, Bot (plain C#, no Unity code)
    Runtime/Game       board view, tray and drag, pieces, goal panel, effects
    Runtime/UI         screens (Loading, Home, Levels map, Game), popups and widgets
    Runtime/Framework  UI manager, tweens, localization, themes, Game Config, level pack
    Runtime/Services   save, wallet, progress, audio, haptics, clock
    Runtime/Ads        ads manager and placeholder ads
    Runtime/IAP        Unity IAP manager
    AdMob/             Google Mobile Ads provider (compiled only when the plugin is in the project)
    Editor/            menu, Level Editor, Setup Checklist, build checks, AdMob setup, art import rules, tests
  ThirdPartyLicenses/ font license
Assets/Resources/BillingMode.json   Unity IAP store choice for Android (Google Play)

Game Config

Almost everything is a setting of one asset, BlockBloom/Resources/GameConfig.asset (Tools → Block Bloom → Game Config). Every field has a tooltip: hold the mouse over its name. Changes apply the next time you press Play; in a build, they are part of the game you publish.

Annotated Game Config: score, Classic, Levels and second chance
Score, Classic, Levels and second chance.
Annotated Game Config: boosters, rewards and themes
Boosters, rewards and themes.
Annotated Game Config: ads, purchases and links
Ads, purchases and links: the fields to fill in before publishing.

Every section, with an example

SectionWhat it setsExample: before → after
ScorePoints per block placed (1) and cleared (10, multiplied by the lines cleared at once), the share each chain step adds (0.25), placements a chain survives without a clear (3), and the bonus for an empty board (300).Bigger rewards for combos: Chain Step 0.25 → 0.5. A chain of 3 then gives ×2 instead of ×1.5.
Classic modeThe dealer at score 0 (Start) and from Ramp Score on (End); in between it slides from one to the other. Each one has the weights of small, medium, large and huge pieces, Fair Chance (the three pieces can surely all be placed) and Help Chance (one piece completes a line right away). Also the coins of a Classic game.Longer, calmer games: Ramp Score 6000 → 12000, and End → Fair Chance 0.75 → 0.9.
Levels modeThe level pack, the coins of a first win (20 + 10 per star) and of a replay (5), and the moves the “more moves” offer gives (5).More generous levels: Level Coins 20 → 40 and Coins Per Star 10 → 15 (a three-star first win then pays 85).
Second chanceRows that thaw (3), the price (300 coins; or a rewarded ad), how many per game (1).No second chance at all: Second Chances Per Game 1 → 0.
BoostersFor Turn, Pick and Refresh: on or off (Enabled), price of a pack, pack size, starting count, and the level from which it can be bought once a player has none left. Boosters per rewarded ad.More Picks for new players, buyable from the start: Pick → Start Count 2 → 3, Unlock Level 9 → 1.
RewardsStart coins (300), the 7 daily gifts (50 … 500), free coins per rewarded ad (100) and ads per day (5), double coins with an ad.A bigger day 7: Daily Rewards → Element 6 500 → 1000.
ThemesThe block styles and backdrops on sale (assets in Config/); the first of each list is free and owned by everyone.Remove a style from the shop: select the list, select its element, click −. (Players who bought it keep it in their save, but it no longer shows.)
FeelHow far above the finger a dragged piece floats (260), the size of the tray pieces (0.55 of a board cell), the first-move hand.Piece closer to the finger: Drag Lift 260 → 180.
AdsMaster switch, banner, when interstitials show (from the 3rd finished game, every 2, at least 90 s apart), App IDs and ad unit ids (empty), test devices. See Ads.Fewer full-screen ads: Interstitial Every 2 → 3, Interstitial Cooldown 90 → 150.
PurchasesSimulated purchases in the editor, receipt validation, the products of the shop. See In-app purchases.A bigger coin pack: Products → Element 2 → Coins 15000 → 20000 (and the same price in the stores).
LinksPrivacy policy, terms, store pages and support e-mail used by the Settings buttons.https://example.com/privacy → https://mystudio.com/blockbloom/privacy
Changing a value never breaks existing saves. Only ids must stay the same after release: block style and backdrop ids, and product ids.

Levels & the Level Editor

The 300 levels are in one asset, BlockBloom/Levels/Levels.asset (a Level Pack), set in the Game Config. The map shows them in chapters of 20. Tools → Block Bloom → Level Editor edits them; every change can be undone with Ctrl/Cmd+Z and is saved in the level pack.

The Level Editor with level 47 and the computer player's report
The Level Editor: the list of levels on the left, the board, brushes, goals and dealer on the right, and the computer player's report at the bottom (level 47).

Making a level

  1. Choose the level in the list, or Add a new one after the selected level (Copy duplicates it, Move up / down reorders).
  2. Paint the board. Pick a brush (a block and its colour, a blue crystal, a rose crystal, an amber star, ice, thick ice) and click or drag on the grid. Right click erases. A row or column may not be full at the start.
  3. Set the goals. Target score, crystals and stars to collect, and Break all ice (every frozen block of the board). Set as many as you like; the level is won when all of them are reached.
  4. Moves: the placements allowed (0 = no limit: the level is then lost only when no piece fits). Gem chance: the chance for each dealt piece to carry a crystal or star of a kind the level still needs.
  5. Dealer: click Gentle, Normal or Tough, or set the weights of small, medium, large and huge pieces, Fair trays and Helper piece yourself.
  6. Check it. The box below says whether the level is valid (and what is wrong if not). Test with the bot (40 games) plays it with the careful and the casual computer player and shows how often each wins and in how many moves. Set par from the bot sets the three-star par to the careful player's median. Play it starts Play mode right in that level (if Play mode is already running, the level starts in the running game).
Example: a first ice level. Add a level, paint four Ice cells in the bottom row and a few blocks around them, tick Break all ice, set Moves to 25, choose Gentle, then Test with the bot. If the casual player wins less than about 90%, give it more moves; then Set par from the bot and Play it.

The board layout

Each level stores its starting board as 64 letters, one per cell, row by row from the top. The Level Editor writes it for you; this picture shows how cells are numbered, which matters if you write levels by hand or in code:

The 8 by 8 board with every cell numbered
Cell index = row × 8 + column. . empty, 0–6 a block of that colour, a b c crystals and stars, i ice, I thick ice.

Where the 300 levels come from

None of the levels comes from another game. They were made by the author's level generator (a development tool, not part of the download) in these steps:

  1. A plan per level: the kind of goal (score, crystals, ice, ice and crystals, score and ice) and a planned difficulty that rises along the 300 levels with easier “breather” levels between harder ones.
  2. A starting board from one of 13 hand-made templates (heart, diamond, valley, stairs, pillars, flake…) with a fixed seed, filled with blocks, crystals and ice.
  3. Tuning with the game's own computer player: the casual player plays the level 48 times, and the move limit (or the score target) is adjusted until it wins about as often as planned (from about 95% for the first levels down to about 50% for the hardest). The careful player then plays it 16 times; its median number of moves becomes the three-star par.
  4. Proof: Documentation/Level origins (all 300 levels).csv lists every level's kind, template, seed, moves, par, goals and the win rates of both players. The same origin is shown in the Level Editor (Origin: generator v1, template valley, seed 372206), and the included tests replay every level with the careful player.

Levels you edit are marked edited in the Level Editor.

Changing a level after release is safe: players keep their stars. Inserting or deleting levels moves the following levels' numbers, so players' stars then belong to different boards; add new levels at the end instead.

Rules engine & computer player

The rules are in Scripts/Runtime/Core: plain C# with no Unity code, so the same rules run in the game, the editor tools, the tests and the level generator.

ClassWhat it does
BoardThe 8 × 8 grid as a 64-bit mask (one bit per cell: row * 8 + col), plus the colour, crystal and ice of each cell. Placing, finding and clearing full lines, cracking ice, loading and writing layouts.
Shapes, Shape, PieceThe 37 piece shapes (15 outlines and their turns), each with its size class; a piece is a shape with a colour and maybe a crystal.
DealerDeals trays of three. Fair trays are checked so the three pieces can surely all be placed in some order (a fast search over the bit masks); helper pieces complete a line right away.
ScoringPoints of a placement and the cheer it earns.
SessionOne game, Classic or a level: board, tray, score, chain, goals, moves, boosters, second chance, the outcome. Saves itself to a SessionState and loads back.
LevelDefOne level: layout, goals, moves, par, dealer, gem chance, origin; Validate() says what is wrong with it.
BotThe computer player used by the Level Editor, the tests and the level generator (it doesn't play against the player). It rates every placement of every tray piece with a few board features (lines cleared, nearly full lines kept open, empty cells closed in, a tidy board, cells that move a level goal forward), then, of the best few, prefers one after which the rest of the tray still fits. Skill 1.0 always takes its best move; lower skills add noise to the ratings, like a less careful player (the casual player is 0.55).
RngA small seeded random generator, so a seed always gives the same game (useful for tests and levels).

The bot is fast enough to run on the main thread: a whole game takes a few milliseconds. In the game it never runs while the player plays.

Testing your changes

After you change the rules (Scripts/Runtime/Core), the levels, the Game Config or the save data, run the included tests. They need no extra package.

Tools → Block Bloom → Tests →What it checksTime
Run Quick TestsEvery shape and its turns; the Turn booster refusing turns that would end the game or change nothing; placing and clearing on hand-made boards (rows, columns, both at once, ice and thick ice, crystals); the fair-tray search against a brute-force search on thousands of random boards; the dealer; the save format of a game in progress; 200 computer games of Classic with every rule checked after every move; all 300 levels validated and played 4 times by the careful player; the Game Config (ids, prices, products, levels) and the save system (edited, rejected and restored saves).About 5 seconds
Run Full TestsThe same with 3,000 Classic games and each level played 12 times (about 20 million checks).Under a minute
  • Results: a dialog says whether every check passed. The Console shows a line for each failed check and a summary. A level the careful player can't win is reported as a warning: worth a look, not an error.
  • The code is in Scripts/Editor/BlockBloomTests.cs and Scripts/Editor/Tests/CoreChecks.cs. To add a check, call r.Check(condition, "what it means") in one of their methods; to test a rule, copy one of the hand-made boards in BoardChecks: load a layout, place a shape, check the result.
  • The save checks use this computer's saved progress and put it back at the end. Stop Play mode before running the tests.
  • Command line (for a build server): Unity -batchmode -projectPath <project> -executeMethod BlockBloom.EditorTools.BlockBloomTests.RunFromCommandLine -quit, with -full for the full run. The exit code is 0 when every check passes and 1 otherwise.

How the code fits together

Three layers, each only talking to the one below it:

TrayViewfinger drags a piece → nearest cell →GameScreen.OnDropped(slot, row, col)
→Session.Place(slot, row, col)→ Board.Place → Scoring → goals →MoveResult
→BoardView.Render / PlayDrop / PlayClearGoalPanelscore, cheer, sounds
→PlayerData (save)→ outcome? →GameScreen.Finish→Wallet, Progress→AdsManager→ResultPopup
Core rules, no Unity code · Game / UI what the player sees · Services save, coins, ads, purchases
  1. Input: TrayView moves the dragged piece (lifted by Drag Lift), asks the Session whether it fits at the nearest cell, and has BoardView show the shadow and the lines that would clear. When the finger lifts, it calls GameScreen.OnDropped.
  2. Rules: OnDropped calls Session.Place, which changes the board, clears lines, counts points, crystals and ice, deals a new tray when the tray is empty, and sets the Outcome (playing, won, no room, out of moves). It returns a MoveResult with everything that happened.
  3. Show it: GameScreen reads the MoveResult: BoardView animates the drop and the clear, crystals fly to the GoalPanel, the score counts up, cheers and sounds play. Nothing on screen changes the rules.
  4. Save it: a Classic game in progress is written to PlayerData.savedClassic after every move. SaveManager writes the save to the phone at most every 2 seconds during play (DirtyWriteInterval), at once for coins, boosters and purchases, and when the app pauses or closes.
  5. The end: after every change to the game (a move, a booster, a second chance) GameScreen.CheckOutcome looks at the Outcome; when the game is over, the second chance or the end follows a short pause for the effects. GameScreen.Finish records the best score or the level's stars (Progress), puts the coins in the wallet as pending (they are collected by the result popup, and never lost if the app closes), lets AdsManager show an interstitial if one is due, then shows the ResultPopup. These delayed steps belong to one game: leaving the screen drops them (a level won just before still counts), and a Classic game the app closed at its second chance comes back to that moment with Continue.

Where to change what: rules in Core; how a move looks in BoardView and GameScreen; what a screen shows in its screen or popup class (UI/Screens, UI/Popups) and its prefab; numbers in the Game Config.

Adding a piece shape

The most common change: a new piece for the dealer, for example a big “plus”. One line in one file.

  1. Scripts/Runtime/Core/Shapes.cs: add a line to Outlines. # is a block, . an empty cell, / starts the next row. The class (Small, Medium, Large, Huge) decides how often the dealer picks it (Game Config → dealer weights).
    static readonly (string name, ShapeClass cls, string drawing)[] Outlines =
    {
        ("dot",     ShapeClass.Small,  "#"),
        ...
        ("block",   ShapeClass.Huge,   "###/###/###"),
        ("plus",    ShapeClass.Huge,   ".#./###/.#."),   // new: a plus of five blocks
    };
    Its turned versions are made by themselves (duplicates dropped), so plus becomes one shape and an asymmetric outline up to four (name-0 … name-3). Keep shapes within 5 × 5 cells so they fit in a tray slot (the longest shipped piece, penta, is 5 long).
  2. Nothing else to draw: pieces are built from the block pictures of the current style, so the new shape works with every theme.
  3. Run Tools → Block Bloom → Tests → Run Full Tests. The shape checks cover the new outline, and the level checks show whether the levels are still winnable: a new shape changes the pieces the dealer hands out in Classic and in every level.
  4. Check your hardest levels with Test with the bot in the Level Editor; give them a few more moves if the win rate dropped.

Saves: a Classic game in progress stores its tray as shape ids (ell-2). Adding a shape never touches existing saves, so an older save loads in the new version, and a save with the new shape opened by an older version simply drops that one piece from the tray and deals again if the tray is empty. The included tests prove it: they load a saved game whose tray holds a shape id the game doesn't know, and one where every piece is unknown. Removing or renaming a shape is just as safe for saves, but don't do it while you still ship levels tuned with it in mind.

Removing a booster

Example: a game without the Pick booster. One switch does it; no code changes.

  1. The switch: Game Config → Boosters → Pick → untick Enabled. The game then hides its button under the board (the two other buttons close up, centred), and the booster can't be used, in Levels or in Classic.
  2. How to play changes by itself: its last line (text key help_boosters, which names Turn, Pick and Refresh) is replaced by help_boosters_some (“Stuck? Use the boosters under the board.”). With all three boosters off, the line disappears. Both texts are in strings.csv, in every language; edit them there if you like.
  3. Bundles: Game Config → Purchases → the Winter Pack gives 5 of each booster: set its Picks to 0. The shop card adds up the boosters by itself (“No Ads · 10 boosters”). The included tests fail with a clear message while a product still gives a switched-off booster.
  4. Saved games and old players (an update of a published game): nothing breaks. Players keep the number of Picks in their save, and it comes back if you switch the booster on again in a later update. The save stores the boosters by position, so keep Booster.Pick in the enum.
  5. Optional code removal: not needed. If you want to strip it anyway, leave the enum value and remove only the Pick branch of GameScreen.OnBooster / OnCellTapped and Session.PickBlock; keep the switch off so its button stays hidden.

The same switch removes Turn or Refresh (the Winter Pack's Turns / Refreshes to 0).

Economy & rewards

SourceCoins (default)Setting
New player300Start Coins
Classic game1 per 100 points, at most 150Classic Points Per Coin, Classic Max Coins
Level, first win20 + 10 per star (50 for three stars), doubled with an adLevel Coins, Coins Per Star, Double With Ad
Level, replay5Replay Coins
Daily gift50, 75, 100, 125, 150, 200, 500 (a missed day starts again)Daily Rewards
Rewarded ad in the shop100, five a dayFree Coins Amount, Free Coins Ads Per Day
Purchases1,000 / 6,000 / 15,000, Winter Pack 5,000Products
SpendingCoins (default)
Booster pack of 3Turn 120, Pick 180, Refresh 150
Second chance (thaw) or 5 more moves300
Block stylesCrystal 1,500, Peppermint 2,500, Pebble 3,000, Aurora 4,000
BackdropsSnowy Pines 1,200, Winter Dusk 2,000, Northern Lights 3,000

Rewards are added to the wallet as pending coins the moment they are won and saved; the result popup collects them. If the app closes in between, the coins are collected on the next start. The daily gift and the daily ad limits follow GameClock, which never goes back (see Save data).

Themes

The Themes popup has two tabs: Blocks (block styles) and Backdrops. Each style or backdrop is an asset in BlockBloom/Config, listed in the Game Config (Themes).

AssetFields
Block style (Skin_*.asset)Id (kept in the save), name key, price, 7 block pictures (128 × 128, in this order: rose, amber, gold, mint, blue, violet, and glacier, the one drawn under ice), a preview picture.
Backdrop (Backdrop_*.asset)Id, name key, price, a full-screen picture (1080 × 1920 or larger, cropped to fill the screen), a preview, and the ink colour of the texts drawn straight on it (score, level number).

Adding a block style

  1. Draw 7 pictures of 128 × 128 (see Reskinning) and a 256 × 256 preview, and put them in a new folder Art/Blocks/mystyle.
  2. Assets → Create → Block Bloom → Block Style in Config. Set a new id (for example mystyle; never change it after release), a name key, a price, the 7 pictures and the preview.
  3. Add the name to strings.csv: skin_mystyle,My Style,Mon style,...
  4. Drag the asset into Game Config → Themes → Skins. It appears in the Themes popup.

A backdrop works the same way (Create → Block Bloom → Backdrop, list Backdrops). To give a style with a purchase, put its id in the product's Unlock Skin (the Winter Pack gives aurora).

Reskinning

Replace a picture by overwriting its file with yours, same name, same size (or larger in the same proportions). The import settings (sprite type, borders, compression) stay, because they are in the .meta file next to it. After replacing many files, Tools → Block Bloom → Reset Art Import Settings applies the project's import rules again. All sizes are in pixels.

9-slice borders keep the corners of a picture sharp while its middle stretches. They are listed in the order of Unity's Sprite Editor: L (left) · R (right) · T (top) · B (bottom). Draw your picture with the same border widths, so the corners fit in them.

Picture (in Art/)Size9-slice L · R · T · BWhere it shows
Blocks/<style>/block_<style>_0 … _6128 × 128noneThe blocks: 7 colours per style (rose, amber, gold, mint, blue, violet, glacier)
Blocks/Previews/skin_*256 × 256noneBlock style cards in Themes
Board/board_panel256 × 25672 · 72 · 72 · 72The frame around the board (see the board picture: grid 34 inside the frame, 38 at the bottom)
Board/cell, cell_glow128 × 128noneAn empty cell; the glow of a line about to clear
Board/gem_1, gem_2, gem_3128 × 128noneBlue crystal, rose crystal, amber star (drawn on a block)
Board/ice_1, ice_2, ice_cracks128 × 128noneIce, thick ice, and the cracks after a first clear
Backdrops/bg_*1080 × 1920noneFull-screen backgrounds (previews: Backdrops/Previews, 256 × 256)
UI/panel_popup320 × 320100 · 100 · 100 · 100Every popup
UI/ribbon_blue, ribbon_rose640 × 180170 · 170 · 60 · 60Popup titles
UI/Buttons/btn_blue, _green, _gold, _rose, _violet, _white256 × 20096 · 96 · 70 · 90Wide buttons (the bottom border is larger: it holds the button's 3D edge)
UI/Buttons/btn_tile200 × 21660 · 60 · 60 · 60Square tiles (home menu, boosters)
UI/Buttons/btn_circle_*200 × 216noneRound buttons (pause, close, back)
UI/card, card_selected160 × 16056 · 56 · 56 · 56Shop and theme cards
UI/inset128 × 12844 · 44 · 44 · 44Sunken boxes in popups
UI/pill_dark, seg_pill, seg_track200 × 100 / 200 × 100 / 200 × 11048 / 46 / 50 on every sideCoin and score pills; the tab switch in Themes
UI/bar_track, bar_fill, bar_fill_green200 × 6430 · 30 · 30 · 30Progress bars (loading screen)
UI/rounded_white64 × 6424 · 24 · 24 · 24Plain rounded boxes, tinted in code
UI/Map/node_current, node_done, node_locked200 × 216noneLevel buttons on the map
UI/home_hero900 × 520noneThe floating blocks on the home screen
UI/star_full, star_empty, glow, rays256 × 256 (rays 512)noneStars and the light behind rewards
UI/toggle_on, toggle_off, toggle_knob160 × 88, knob 96 × 96noneSwitches in Settings
Icons/ic_*256 × 256noneIcons (coin, boosters, gift, settings…)
Icons/Glyphs/gl_*128 × 128noneWhite symbols on round buttons
Fx/fx_*64 × 64noneParticles: sparkle, flake, shard, bloom
UI/AppIcon/app_icon (+ _round, _foreground, _background)1024 × 1024noneThe app icon (Player Settings → Icon); the Android adaptive icon uses the foreground and background layers

Sounds are WAV files in Audio/ (sfx_* effects, music_menu and music_game loops): replace them with files of the same name, any length. Fonts: Rubik in Fonts/; to change it, create TextMesh Pro font assets from your font (Window → TextMeshPro → Font Asset Creator, dynamic) and assign them in the TMP Settings and the text components, or replace the font file and keep the font asset.

Colours of texts and ribbons are set in the prefabs (Prefabs/UI); the block colour order (0 rose … 6 glacier) is the same in every style and in level layouts.

Localization

The game comes in English, French, Spanish, Portuguese (Brazil), German, Italian, Dutch, Indonesian, Turkish and Russian. On first launch it follows the phone's language; for any other phone language it starts in English. The player can change it at any time with the language button in Settings (each tap shows the next language), and the choice is kept.

All texts are in BlockBloom/Resources/Localization/strings.csv: one row per text, the key first, then one column per language.

key,en,fr,es,pt,de,it,nl,id,tr,ru
level_n,Level {0},Niveau {0},Nivel {0},Nível {0},Level {0},Livello {0},Level {0},Level {0},Seviye {0},Уровень {0}
  • Edit the file in any spreadsheet program and save it as CSV (UTF-8). {0} is replaced by a number or a name; \n in a text is a line break.
  • The fonts are dynamic TextMesh Pro font assets: any letter that exists in Rubik (Latin alphabets including Central European and Turkish letters, and Cyrillic) appears automatically. For other alphabets add a fallback font to the font assets.
  • In the scene, texts use the Localized Text component with a key. In code, use Loc.Get("key") or Loc.Format("key", value).

Adding a language, step by step (example: Polish, code pl)

  1. strings.csv: add a column at the end of the first line, then fill it in every row. language_name is the name shown on the Settings button. An empty cell shows the English text.
    key,en,fr,es,pt,de,it,nl,id,tr,ru,pl
    language_name,English,Français,Español,Português,Deutsch,Italiano,Nederlands,Bahasa Indonesia,Türkçe,Русский,Polski
    classic,Classic,Classique,Clásico,Clássico,Klassisch,Classica,Klassiek,Klasik,Klasik,Классика,Klasyczny
    level_n,Level {0},Niveau {0},Nivel {0},Nível {0},Level {0},Livello {0},Level {0},Level {0},Seviye {0},Уровень {0},Poziom {0}
  2. Scripts/Runtime/Framework/Loc.cs, so phones set to that language start in it:
    public static string FromSystemLanguage()
    {
        switch (Application.systemLanguage)
        {
            ...
            case SystemLanguage.Russian: return "ru";
            case SystemLanguage.Polish: return "pl";   // new
            default: return "en";
        }
    }
  3. Same file, for numbers written the local way (1 250 instead of 1,250):
    static CultureInfo MakeCulture(string language)
    {
        ...
            return language switch
            {
                ...
                "ru" => new CultureInfo("ru-RU"),
                "pl" => new CultureInfo("pl-PL"),   // new
                _ => new CultureInfo("en-US"),
            };
        ...
    }

    C# version: language switch { ... } is a switch expression, a C# 8 feature (Unity 2020.2 or newer). This project needs Unity 6000.0 or newer anyway (see Requirements), and it compiles it with no setting to change. On an older toolchain, write it as a classic switch statement with lines such as case "pl": return new CultureInfo("pl-PL");.

  4. Try it: press Play, open Settings and tap the language button until it shows Polski. Check every screen: long words may need shorter texts.
Right-to-left languages (Arabic, Hebrew, Persian, Urdu) are not supported out of the box: TextMesh Pro doesn't join Arabic letters by itself, the screens are not mirrored, and the included font has no Arabic letters. To add one, use an RTL / Arabic text-shaping package for TextMesh Pro. A free, open-source one (MIT license) is RTL Text Mesh Pro, package name RTLTMPro: to find it, search for RTLTMPro or RTL TextMeshPro Unity on GitHub or on OpenUPM (where its package id is com.nosuchstudio.rtltmpro), and install it with Unity's Package Manager, following the instructions on its own page. Then add a font that covers the alphabet as a fallback font, and check every screen in that language, as texts that mix numbers and words may need small changes.
Support: RTL Text Mesh Pro, like any third-party package, is not part of Block Bloom. It is made and supported by its own author, so installing, setting up or fixing it is outside the support for this item.

Ads (AdMob)

⚠ Required before you publish: enter your own 8 AdMob ids.

Block Bloom ships with no AdMob ids at all: the App IDs and the ad unit ids in the Game Config are empty, and there is no test-id fallback anywhere in the code. Fill them in from your own AdMob account:

Game Config → Ads fieldPut in
Admob Android App Idthe App ID of your Android app in AdMob (it contains a ~)
Admob Ios App Idthe App ID of your iOS app in AdMob
Admob Android → Banner, Interstitial, Rewardedthe three ad unit ids of your Android app (they contain a /)
Admob Ios → Banner, Interstitial, Rewardedthe three ad unit ids of your iOS app

If you skip it: your published game shows no ads and earns nothing; an empty id simply means “no ad of that kind”. If an id comes from another app, or the Android and iOS ids are swapped, no ads show either. The App IDs are copied into Google's plugin settings automatically. No ads wanted? Untick Enable Ads instead.

Reminders: the Setup Checklist shows TO DO, and every release build warns, while ids are missing.

Two things are not included: Google's Mobile Ads Unity plugin (with its UMP consent SDK and External Dependency Manager), which you import from Google, and any AdMob id. AdMob is a third-party service: you need your own (free) AdMob account, and Google's terms and payment thresholds apply.

Ads go through AdsManager, which talks to a provider. The AdMob provider (Scripts/AdMob, its own assembly) compiles only when Google's plugin is in the project: the BLOCKBLOOM_ADMOB define is added automatically when the plugin is found, and removed again if you delete it, so the project always compiles with or without it. Without the plugin (or without ids), the editor and development builds show on-screen placeholder ads so you can test every ad flow; release builds show none.

Placements

FormatWhen (Game Config → Ads)
BannerAt the bottom of the screens when Use Banner is on; the layout moves up and the board shrinks a little to make room.
InterstitialAfter a finished game (Classic or a level), before the result, from the 3rd finished game (Interstitial From Game), every 2 games (Interstitial Every), never within 90 seconds of another full-screen ad (Interstitial Cooldown). Never in the middle of a game.
RewardedFree coins in the shop, a booster in the booster popup, the second chance (thaw or more moves), double coins after a won level. These buttons work only once an ad has loaded.

No Ads (or the Winter Pack) removes banners and interstitials; rewarded ads stay, because the player chooses to watch them.

Setting up AdMob

  1. Download the Google Mobile Ads Unity plugin (a .unitypackage, version 11.x) from Google's AdMob documentation for Unity (search for Google Mobile Ads Unity plugin) and import it (Assets → Import Package → Custom Package). Accept the External Dependency Manager prompts. Block Bloom notices the plugin and switches its AdMob code on.
  2. For Android, run Assets → External Dependency Manager → Android Resolver → Force Resolve and enable the Gradle templates it asks for.
  3. In your AdMob account, add an app for Android and one for iOS, and create a banner, an interstitial and a rewarded ad unit for each.
  4. Put your App IDs and ad unit ids in the Game Config (Ads). The App IDs are copied into Google's settings automatically (or with Tools → Block Bloom → Ads → Apply AdMob Setup Now). Google's plugin stops a build that has no App ID.
  5. Tools → Block Bloom → Ads → AdMob Status shows whether the plugin is found, whether the App IDs are set and how many ad unit ids there are.

Testing ads

Never click your own live ads: Google can limit or close an account for invalid traffic. While you develop, use test ads, as Google explains on its Enable test ads page for Unity (search for AdMob Unity test ads):

  • Test devices (recommended): run your build on your phone once and look in the device log (Reading the logs) for the line from Google's plugin that gives your device id. Add that id to Test Device Ids in the Game Config: your phone then gets test ads from your own ad units, everyone else real ads. Emulators and the iOS simulator always get test ads.
  • Google's sample ad units: the same page lists sample ids that always show test ads. If you paste them in to try something, put your own back before you publish: a build with sample ids earns nothing.

Consent (GDPR) and privacy options

The AdMob provider uses Google's User Messaging Platform: it asks for consent where required (EEA, UK, Switzerland) before loading ads, using the messages you publish in AdMob (Privacy & messaging). When the consent message applies, Settings shows a Privacy options button so players can change their choice. If the request fails (no internet), it is tried again when the app comes back.

The demo APK

The demo APK on zaviro.net shows the same on-screen placeholder ads as the editor: it was built without Google's plugin and without any AdMob id, so it contains no ad network at all.

Turning ads off

Untick Enable Ads in the Game Config to run without ads while keeping the plugin. To remove AdMob completely, delete the folders Google's plugin added (GoogleMobileAds, ExternalDependencyManager and its files in Plugins): Block Bloom switches its AdMob code off by itself and compiles without any Google code.

In-app purchases

Do I need my own server? No, not to sell. Out of the box, purchases are checked on the phone (see Receipt validation below) and work without any server. Server-side checking is an optional extra for games where purchases are worth protecting more strongly, and it is not something you can just switch on: it means building and hosting your own small web service. Roughly, that is:
  • a web address (HTTPS endpoint) running on a host of your choice, which the game calls after each purchase;
  • server code that asks Google and Apple whether the purchase is real: a Google Cloud service account with access to the Google Play Developer API, and an App Store Connect API key for the App Store Server API;
  • a small database to remember used purchases, and the hosting cost.
No backend is included with Block Bloom. A developer can build a basic one in a few days; the game side is ready: the example further down shows exactly what it sends and expects.
In short: what you must do, and what is optional
StepNeeded?
Install Unity IAPNothing to do. Unity's Package Manager installs it when the project opens (the download contains no Unity IAP files).
1. Put your own product ids in the Game Config (Products)Required to sell.
2. Create the same products in Google Play Console and App Store ConnectRequired to sell.
3. Test with a license tester (Google Play) or a Sandbox account (App Store)Required before you publish.
Google Play receipt check: paste your licensing key into the Receipt Validation ObfuscatorRequired for Android release builds: they refuse every purchase until you do it. Development builds accept unchecked purchases with a warning, so you can test the shop first.
Checking purchases on your own serverOptional. Only if you build and host a server; the game sells without one.
Steps 1 to 3 are the numbered list below; the receipt checks are under Receipt validation.

Your own store accounts are required and the stores charge fees (see possible costs).

Purchases use Unity IAP 5 (com.unity.purchasing 5.4.4), with Google Play Billing on Android and StoreKit 2 on iOS. Unity IAP is not copied into the project: Packages/manifest.json lists it, and Unity's Package Manager downloads it from Unity's own registry (packages.unity.com) when the project opens, under your Unity license. The download contains no Unity IAP files or binaries: there is no DLL, .so, .aar, .jar or .framework file of any kind in the archive, and no Library or PackageCache folder; Unity IAP reaches your project only through the Package Manager. The BLOCKBLOOM_IAP define is set automatically for any 5.x version (asmdef version defines). If another major version is installed, the store code is switched off and a Console warning and a build warning tell you right away; purchases are never switched off silently.

On Android the store is chosen by Assets/Resources/BillingMode.json, set to Google Play. Keep this file: without it Unity IAP uses its fake test store on Android.

Product (default id)KindGives
com.yourcompany.blockbloom.coins_small / coins_medium / coins_largeConsumable1,000 / 6,000 / 15,000 coins
com.yourcompany.blockbloom.noadsNon-consumableNo banner or interstitial ads
com.yourcompany.blockbloom.winter_packNon-consumable5,000 coins, No Ads, 5 of each booster and the Aurora block style
⚠ Required before you go live: replace all 5 placeholder product ids.

The ids in the table above (com.yourcompany.blockbloom.…) are placeholders. A store only sells products you have created there with exactly the same id, so every id must be replaced with your own, in three places that must match letter for letter:

WhereWhat to do
1. Unity: Game Config → Purchases → Products (5 entries)Replace each Product Id, for example com.mystudio.myblocks.coins_small. Keep each entry's Kind (Coins, No Ads, Bundle) and contents.
2. Google Play Console → your app → Monetize with Play → Products → One-time products (In-app products in older consoles)Create one product per id, with the same id. Coin packs are used up by the game; No Ads and the Winter Pack are bought once.
3. App Store Connect → your app → Monetization → In-App PurchasesCreate one per id (Product ID = the same id): the coin packs as Consumable, No Ads and the Winter Pack as Non-Consumable.

If you skip it, or one id doesn't match: the store doesn't know that product, the shop can't show its price and every purchase of it fails, so you sell nothing. The ids live only in the Game Config: no script needs changing.

Reminders: the Setup Checklist shows TO DO, and every build warns, while an id still starts with com.yourcompany.

  1. Put your own ids in the Game Config (above).
  2. Create the same products in Google Play Console and App Store Connect (above). Google only returns products once a build is uploaded to a testing track.
  3. Add your Google account as a license tester to buy without being charged; on iOS use a Sandbox account.

Each purchase is validated, delivered, saved, and only then confirmed to the store. Delivered transaction ids are kept in the save, so a purchase is never delivered twice. One-time products come back by themselves after a reinstall; payments confirmed later show “Purchase pending” and are delivered when they go through. On iOS, Settings and the shop have a Restore purchases button, as Apple requires.

Testing: with Test Purchases ticked, purchases are simulated in the editor and in development builds while the store has no products yet. Release builds always use the real store.

Receipt validation

Checking purchases on a server is optional: see Do I need my own server? at the top of this section.

  • Google Play: in Google Play Console copy your app's licensing key (Monetize with Play → Monetization setup). In Unity choose Services → In-App Purchasing → Receipt Validation Obfuscator…, paste it and press Obfuscate. IAPManager finds the generated GooglePlayTangle and checks every receipt, and that it is for the product bought. Until you do, release builds refuse every Android purchase: it stays unconfirmed, so Google refunds it, and the log says [IAP] … no GooglePlayTangle key to check the receipt, purchase refused. Development builds accept it with a warning, and a build warning tells you while the key is missing.
  • App Store: nothing to set up. Unity IAP 5 uses StoreKit 2, which signs and verifies every App Store transaction itself, so iOS needs no key (Apple receipt obfuscation and StoreKit 1 were removed in Unity IAP 5, which is why the game needs iOS 15 or newer). A transaction that arrives without its signed data is refused in release builds.
  • Require Receipt Validation (Game Config → Purchases, on by default): any receipt that is missing, damaged, for another product or can't be checked is refused in release builds. Untick it only if your own server checks every purchase (see the optional part below).
Limits of on-device validation. These checks run on the player's phone. On a rooted or jailbroken device a determined player can patch the app and get around them. If your game needs strong protection (valuable purchases, an online economy), verify every purchase on your own server against the store: the Google Play Developer API (purchase status from the purchase token in the Google Play receipt) and the App Store Server API (transaction id). IAPManager.ServerValidation is the hook for this: when it is set, every purchase waits for your answer before it is delivered and confirmed. Parse JSON with a JSON parser (for example JsonUtility with small classes), never by searching the text.

Optional: checking purchases on your own server

No server? Skip this whole part, down to the end of In-app purchases. Everything from here on (the example script, what happens in each case, and what your server must check) is only for developers who run their own purchase-checking server. Without a server you need none of it: purchases already work with the checks above, and nothing is missing from your setup.

This example handles the cases a real server meets: a timeout, a few retries with growing pauses, error answers, and an answer that can't be read.

⚠ Placeholder address: this example does nothing until you replace it. https://your-server.example/verify-purchase in the code below is not a real server; it only shows where your own server's address goes. The example is not part of the project: nothing is sent anywhere unless you add this script yourself, and even then it switches itself off (and logs an error) while the address is still the placeholder, so purchases keep working with the on-device checks. It starts checking purchases only once you put in the address of your own working server. Add it only when your server is running, and never publish it with the placeholder.
using System;
using System.Collections;
using UnityEngine;
using UnityEngine.Networking;
using BlockBloom;

// Put it on the GameController object (or any object that lives for the whole game).
public class PurchaseServerCheck : MonoBehaviour
{
    // PLACEHOLDER, not a real server: replace it with your own server's address.
    // While it is still this placeholder, the script switches itself off (see Awake).
    const string Url = "https://your-server.example/verify-purchase";
    const int Attempts = 3;         // tries before giving up for this session
    const int TimeoutSeconds = 10;  // per try

    [Serializable] class Answer { public bool valid; public string reason; }

    void Awake()
    {
        if (Url.Contains("your-server.example"))
        {
            Debug.LogError("[IAP] PurchaseServerCheck is OFF: replace the placeholder Url with your own server's address.");
            return;   // purchases keep working with the on-device checks only
        }
        IAPManager.ServerValidation = (receipt, done) => StartCoroutine(Verify(receipt, done));
    }

    IEnumerator Verify(PurchaseReceipt receipt, Action<bool> done)
    {
        // receipt: productId, transactionId, store, receipt, googleOrderId, appleSignedTransaction
        byte[] body = System.Text.Encoding.UTF8.GetBytes(JsonUtility.ToJson(receipt));
        for (int attempt = 1; attempt <= Attempts; attempt++)
        {
            using (var req = new UnityWebRequest(Url, "POST"))
            {
                req.uploadHandler = new UploadHandlerRaw(body);
                req.downloadHandler = new DownloadHandlerBuffer();
                req.SetRequestHeader("Content-Type", "application/json");
                req.timeout = TimeoutSeconds;
                yield return req.SendWebRequest();

                if (req.result == UnityWebRequest.Result.Success)
                {
                    Answer answer = null;
                    try { answer = JsonUtility.FromJson<Answer>(req.downloadHandler.text); }
                    catch (Exception e) { Debug.LogWarning("[IAP] Unreadable answer: " + e.Message); }
                    if (answer != null)
                    {
                        if (!answer.valid) Debug.LogWarning("[IAP] Refused by the server: " + answer.reason);
                        done(answer.valid);   // the server decided: deliver (true) or refuse (false)
                        yield break;
                    }
                    // unreadable answer: try again like a network error
                }
                else
                {
                    long code = req.responseCode;   // 0 = no answer at all (offline, timeout)
                    bool worthRetrying = req.result == UnityWebRequest.Result.ConnectionError
                                         || code == 0 || code == 408 || code == 429 || code >= 500;
                    Debug.LogWarning($"[IAP] Purchase check failed ({attempt}/{Attempts}): {code} {req.error}");
                    if (!worthRetrying) break;      // other 4xx: the request itself is wrong
                }
            }
            if (attempt < Attempts) yield return new WaitForSecondsRealtime(2f * attempt);   // 2 s, then 4 s
        }
        done(false);   // no answer for now: not delivered, the purchase stays pending (see below)
    }
}

What happens in each case:

  • Placeholder address still in the code: the script logs an error at start and does nothing else; purchases work exactly as without it.
  • Valid (done(true)): the item is delivered, saved, and only then confirmed to the store.
  • Refused by your server (done(false) with valid: false): nothing is delivered and the purchase is never confirmed. The player sees “The purchase didn't go through”. Google Play refunds purchases that are never confirmed after 3 days.
  • Server unreachable or failing (after the retries): the player sees the same message, but the purchase stays pending. Unity IAP gives unconfirmed purchases back to the game at the next start, so IAPManager asks your server again, and the player gets the item as soon as your server answers.
  • No answer at all (your code never calls done): after IAPManager.ServerValidationTimeout seconds (20 by default) the player gets the shop back with “Your purchase is waiting for approval”. The purchase stays unconfirmed: a late done(true) still delivers it, and otherwise it comes back at the next start and your server is asked again. The same happens if your code throws an exception. Keep your own retries (above) shorter than this limit, or raise it: IAPManager.ServerValidationTimeout = 40f; in the same Awake.
  • Call done exactly once per purchase, on the main thread (a coroutine is). Only the first answer counts; a second one is logged and ignored.

Your server checks the purchase with the store (Google Play Developer API purchases.products.get with the purchase token from the Google Play receipt; App Store Server API with the transaction id). It answers {"valid": true} only for a real purchase of that product that was not used before, and {"valid": false, "reason": "..."} otherwise.

Save data & cheating

Set your own secret before your first release. The package ships with the same secret in every copy, so until you change it the signature protects nothing (what that means). Steps and how to check it: Save secret (required). Choose Tools → Block Bloom → Generate New Save Secret: it writes a new random secret into SaveManager.Secret (Scripts/Runtime/Services/SaveManager.cs). You can also type your own long random text there. Never change it after release.

Coins, boosters, best score, stars, themes, purchases, settings and the Classic game in progress are saved in PlayerPrefs (key blockbloom_save) as JSON signed with HMAC-SHA256 and lightly scrambled.

What the default secret means for your game

The secret is the key that signs and scrambles the save. Whoever knows it can open a save, change it and sign it again, and the game accepts the result as genuine.

Published with the default secretPublished with your own secret
Who knows the secretEveryone who has this package: the default secret is the same in every copy sold.Only you. It is in your project and, compiled, inside your app.
Can a save be forged?Yes, easily. A few lines of code are enough to open a save, change it and sign it again. One person could share a ready-made save editor that works on every game published with the default secret.Only by someone with reverse-engineering skills who digs the secret out of your app's files, and only for your game. Editors made for the default secret don't work.
  • What a forged save can give a cheater: any number of coins and boosters, every level open with three stars, every block style and backdrop, the No Ads and Winter Pack benefits without paying, and any best score.
  • What it can't do: it only changes the game on the cheater's own phone. Block Bloom has no online play, leaderboards or shared economy, so other players are not affected. It can't create store purchases (your sales reports stay correct), can't reach your store, AdMob or other accounts, and the save holds no personal data.
  • What it costs you: mainly money. Players who forge a save don't buy coins, No Ads or the Winter Pack.
  • How hard it is to reach the save: it is in the app's private storage on the phone. Reading or replacing it needs a rooted Android phone, a jailbroken iPhone or backup-editing tools, which most players don't have. For those who do, the default secret makes the rest trivial.
  • Limits of any secret: it protects the saved file only. Cheat apps that change numbers in memory while the game runs (on rooted or jailbroken phones) work whatever the secret is, as in almost every offline game, and a skilled person can dig any secret out of an app. Your own secret stops casual cheating and shared tools; if your economy must resist determined cheaters (for example, if you add online leaderboards), keep the coins and scores on a server.

In short: your own secret costs one click, as long as you set it before your first release. Changing it after release makes every existing save unreadable (see below).

When a save is rejected

A save that was edited, damaged, or signed with another secret is rejected at start:

  • Nothing is deleted. The rejected save is kept on the phone as a backup (blockbloom_save_broken; a second one goes to blockbloom_save_broken_2), and a new game starts.
  • The player is told once, on the home screen: an A fresh start message (“Your saved progress could not be read, so a new game started. A copy is kept on this phone: contact support if you need it back.”) with a Support button that opens an e-mail to your Support Email with the subject “<game name> <version> support - save reset”.
  • Automatic restore: at every start, if the normal save fails but a backup is valid with the current secret, the backup is restored by itself (and the player sees “Your earlier progress was found and restored.”). So if an update changed the secret by mistake, putting the previous secret back in the next update gives every player their progress back.
  • Purchases: No Ads and the Winter Pack come back from the store by themselves on Android, and with Restore purchases on iOS. Coins bought were used up when they were delivered, so the store doesn't give them back: for players who write to support, look up the order in Google Play Console or App Store Connect and decide (a refund, for example).

Daily gifts and the device clock

The daily gift and the daily ad limits follow GameClock, which never goes back: setting the clock back gives nothing, and a gift is free only on a later calendar day than the last one.

Building

Android

  1. File → Build Profiles → Android → Switch Platform.
  2. Player Settings: company and product name, package name (replace com.yourcompany.blockbloom), version and bundle version code. The project uses IL2CPP with ARM64 and ARMv7.
  3. Publishing Settings: create your own keystore (keep it and its passwords safe: every update must be signed with it).
  4. Tick Build App Bundle (Google Play) and build the .aab for Google Play.

API levels: minimum API level 24 (Android 7.0) and target API level 36 (Android 16), both set in Edit → Project Settings → Player → Android → Other Settings (Minimum API Level and Target API Level). The target is set to API 36 explicitly, not to “Automatic (highest installed)”, so every build targets API 36 whatever Android SDKs are installed on your computer. If Unity asks to update the Android SDK when you build, accept. When Google Play later requires a newer target, raise it in the same field.

iOS

  1. Switch to iOS, set the bundle id and team in Player Settings, build, and open the generated Xcode project (the .xcworkspace once Google's plugin is in).
  2. Add the In-App Purchase capability, set signing, and archive.
  3. If you use AdMob, follow Google's iOS steps (SKAdNetwork ids, the plugin's iOS settings) and see App Tracking Transparency.

Minimum iOS version: 15.0 (Player Settings → iOS → Other Settings → Target minimum iOS Version). Unity IAP 5 uses StoreKit 2, which needs iOS 15; keep it at 15.0 or higher.

Trying it in the iOS Simulator

  1. Player Settings → iOS → Other Settings → Target SDK: Simulator SDK. The project already sets Simulator Architecture: Universal, so the build runs on Apple silicon and Intel Macs.
  2. Build, open the Xcode project, choose an iPhone simulator as the destination and press Run.
  3. Set Target SDK back to Device SDK before you build for a real iPhone or the App Store.

In the simulator, Unity's player always runs as a development build, so it shows the on-screen placeholder ads of the editor. Release builds for real iPhones never show them.

Every build runs the project checks: they warn about the original save secret, the com.yourcompany ids, missing ad ids, placeholder links, a missing receipt key and the IAP version. Tools → Block Bloom → Setup Checklist shows the same items at any time.

App Tracking Transparency (iOS)

On iOS, personalised ads need Apple's tracking permission. With AdMob, publish an IDFA explainer message in AdMob (Privacy & messaging): Google's consent flow then shows Apple's prompt after its own message. Add a NSUserTrackingUsageDescription text in the plugin's iOS settings (Google Mobile Ads settings) so Xcode has it in Info.plist.

Checking the prompt on a real iPhone (during development)

Apple's prompt (Allow “Block Bloom” to track your activity across other companies' apps and websites?) appears only when everything below is in place, and only once per installation. Check it on a physical iPhone before you submit: App Review rejects apps that declare tracking when it can't find the prompt.

  1. AdMob: in Privacy & messaging, create and publish an IDFA explainer message for your iOS app. The message belongs to your AdMob app, so test with your own iOS App ID in the Game Config.
  2. Prompt text: fill in the tracking usage description in the Google Mobile Ads settings (above). After building, open the Xcode project and check the Info tab (Info.plist) for NSUserTrackingUsageDescription with your text. Also check that AppTrackingTransparency.framework is linked (UnityFramework target → Build Phases → Link Binary With Libraries). Xcode usually links it by itself; if it's missing, add it with +.
  3. The iPhone: iOS 15 or newer (the game's minimum). In Settings → Privacy & Security → Tracking (Settings → Privacy on iOS 15), turn on Allow Apps to Request to Track. If it is off, or greyed out by a child or managed Apple Account or a profile, iOS never shows the prompt and answers “not allowed” by itself.
  4. Run it: build for iOS in Unity, open the Xcode project, connect the iPhone, select it as the destination and press Run. On the first start you see Google's consent message (in the EEA, the UK and Switzerland), then your IDFA explainer, then Apple's prompt with your text. Ads are requested only after these messages.
  5. Check the result: after you answer, Settings → Privacy & Security → Tracking lists Block Bloom with a switch (on = allowed), and Settings → Block Bloom shows Allow Tracking. The Xcode console shows the game's [Ads] lines (Reading the logs). Ads load with either answer; after Ask App Not to Track they are simply not personalised.
  6. See it again: delete the app from the iPhone and press Run in Xcode again. The answer belongs to the installation, so reinstalling is the only way to get the prompt back.

The prompt doesn't appear? Check in this order: the Tracking setting on the phone (step 3); that the app wasn't answered before (step 6); that the IDFA explainer message is published and belongs to the App ID in your Game Config (step 1); that Info.plist has the usage description (step 2); and the Xcode console for [Ads] consent warnings.

If you don't want tracking at all, don't publish an IDFA explainer message, leave out the usage description and answer that the app doesn't track in App Store Connect (App Privacy). No prompt is shown, and AdMob serves ads that are not personalised.

Publishing checklist

Tools → Block Bloom → Setup Checklist checks items 1, 3, 4, 5 and 6 for you, live.

  1. New package name / bundle id, product name, company, version.
  2. Your own app icon and (if you like) art, sounds and texts.
  3. Your own save secret (Tools → Block Bloom → Generate New Save Secret), set once and kept in every update.
  4. Your AdMob App IDs and ad unit ids, consent messages published in AdMob (or ads switched off).
  5. Your product ids, created in both stores; Google Play receipt validation set up. If you added the server check (In-app purchases), your own server's address in it, never the placeholder.
  6. Your privacy policy, terms, store links and support e-mail in the Game Config (they ship as example.com / yourcompany placeholders, and a build warning lists any that are left).
  7. Your own keystore (Android) and signing team (iOS).
  8. The stores' questionnaires: content rating (the game has no violence, chat or gambling; coins are bought with real money and spent in the game only), Data safety / App Privacy (AdMob collects advertising data; the game itself sends nothing anywhere), and target audience.
  9. Run Tools → Block Bloom → Tests → Run Full Tests, then test on a phone: a Classic game, a few levels, a purchase (license tester / Sandbox), a rewarded ad, the daily gift, and Continue after closing the app in a Classic game.

Code overview

ClassRole
Core.Session, Core.Board, Core.Dealer, Core.ScoringThe rules (see Rules engine).
Core.BotThe computer player of the Level Editor and the tests.
GameScreenRuns a game: starts Classic or a level, takes the dropped pieces, plays the effects, boosters, second chance, saves the Classic game, the end of the game.
BoardView, TrayView, PieceView, GoalPanel, UIBurstThe board and its animations, the tray and dragging, one piece, the goals of a level, confetti and sparkles.
HomeScreen, LevelsScreen, LoadingScreenThe other screens: home, the level map, the loading screen.
UIManager, UIScreen, UIPopupScreens, popups, toasts and the Android back button.
SaveManager, PlayerData, Wallet, ProgressThe signed save, coins (and pending coins), boosters, stars and level progress.
AdsManager, AdMobProviderAds and consent.
IAPManagerProducts, purchases, delivery, restore, receipt checks.
Loc, LocalizedTextTexts and languages.
GameConfig, LevelPack, BlockSkin, Backdrop, ThemesSettings, levels, and the current block style and backdrop.
LevelEditorWindow, SetupChecklist, BlockBloomTests, ProjectChecks (Editor)The Level Editor, the Setup Checklist, the tests, and the build checks.

Troubleshooting

Common questions (no code needed)

What you seeWhy, and what to do
Progress (coins, stars, themes) is gone after closing the game
  1. Progress lives on the phone. Uninstalling the app or “Clear storage” in the phone's app settings deletes it, and nothing can bring it back.
  2. If you just generated a new save secret, your old test progress starts over. That is expected, once.
  3. In the Unity editor, Tools → Block Bloom → Cheats → Reset All Progress clears it.
A player says the game showed “A fresh start” and started over
  1. What the player saw: once, at start, a message saying the saved progress couldn't be read and a new game started, with a Support button (it e-mails you with the subject “… support - save reset”). After that the game works like a new install: start coins, level 1, the free themes.
  2. What comes back by itself: No Ads and the Winter Pack, on Android at the next start; on iPhone with Settings → Restore purchases. Tell the player to do this.
  3. The old progress is not lost: it is kept on the phone. If many players write at once after an update, the save secret was probably changed: publish an update with the previous secret, and each player's progress comes back by itself at the next start.
  4. Bought coins: check the player's order in Google Play Console or App Store Connect and decide what to do (a refund, for example). A save that was edited on purpose (cheating) can't be restored.
The daily gift doesn't appear
  1. It opens by itself once a day on the home screen; the Daily button shows a dot while a gift is waiting.
  2. If today's gift was already collected, the next one comes tomorrow.
  3. If the phone's clock was moved back, the gift waits until the date passes again. This stops clock cheating; set the clock to the right time.
  4. To test it again in the editor: Tools → Block Bloom → Cheats → Reset Daily Rewards.
A block style or backdrop was bought but doesn't show
  1. Open Themes and the right tab (Blocks or Backdrops). An owned item shows Use instead of a price: tap it.
  2. The Winter Pack unlocks the Aurora block style; choose it in the Blocks tab.
  3. If the purchase said “pending”, it is added when the payment is confirmed.
  4. After reinstalling: one-time purchases come back by themselves on Android; on iPhone tap Restore purchases in Settings.
Coins that were bought didn't arrive
  1. “Purchase pending” means the payment isn't confirmed yet (for example cash or family approval); the coins come when it is.
  2. Close and open the game: unfinished purchases are checked again at every start.
  3. While testing on Android, buy with an account listed as a license tester in Google Play Console.
A booster button is grey with a lockThe player has none of that booster left and hasn't reached its unlock level yet (Turn level 5, Pick 9, Refresh 13: Game Config → Boosters → Unlock Level). New players start with a few of each, and a player who owns some (for example from the Winter Pack) can always use them.
A level seems impossibleEvery level was won by the computer player many times, and the hardest ones are meant to take a few tries. Boosters and the “more moves” offer help. To make a level easier, open it in the Level Editor, give it more moves or a gentler dealer, and Test with the bot.
No sound or music
  1. Settings: check that Sound and Music are on.
  2. Turn up the phone's media volume; on iPhone, check the silent switch.
The Continue button is missingThe Classic button reads Continue only while a Classic game is unfinished: leave a game from the pause menu (Menu) and it is kept. When the game ends, the button reads Classic again. If the app was closed while the game offered its second chance, the button still reads Continue: it brings that moment back, so the score and the coins of that game still count. Levels always start fresh.
“Ad” placeholders show in the editorThe editor and development builds show on-screen placeholder ads until Google's plugin is imported and your own AdMob ids are in the Game Config (see Ads). Release builds never show placeholders.
The game is in English, but the phone is set to another language
  1. The game has ten languages: English, French, Spanish, Portuguese, German, Italian, Dutch, Indonesian, Turkish and Russian. On the very first start it uses the phone's language if it is one of them.
  2. For any other phone language (for example Arabic, Polish, Japanese or Chinese) the game starts in English. Nothing is broken or missing: every text is there, in English.
  3. The player can switch at any time: Settings → Language button (each tap shows the next language). The choice is kept.
  4. After the first start the game keeps its language: changing the phone's language later doesn't change it. Use the Settings button.
  5. To add a language your players ask for, see Localization: one new column in the texts file and two short lines of code.
Ads don't show up, even after setting up AdMob
  1. Give new ads time. A new AdMob account, app or ad unit often shows no ads for the first hours, sometimes a day or two, while AdMob checks it (AdMob may say “limited ad serving”). Nothing is wrong with the game: check again later. Ad networks added through mediation also take a while to start.
  2. Are the ids in? The Game Config ships with empty ids; an empty id means no ad of that kind. Tools → Block Bloom → Ads → AdMob Status shows how many are set.
  3. Do the ids match? The App ID and the three ad unit ids in the Game Config must all come from the same app in your AdMob account: Android ids in the Android fields, iOS ids in the iOS fields. One wrong or swapped id is enough to get no ads. Copy them again from AdMob (Apps → your app → App settings, and Ad units).
  4. Is Google's plugin in the project? AdMob Status must say “Google Mobile Ads plugin: installed”, and Enable Ads must be ticked in the Game Config. Without the plugin the game simply shows no ads.
  5. Still in test mode? If the ads you see are marked “Test Ad”, your phone is set as a test device (Test Device Ids) or Google's sample ids are in the Game Config. That is right while testing; remove them before publishing.
  6. Your AdMob account: new accounts are reviewed before they show ads; AdMob's Policy center should show no issue for your app. Once the game is published, link the app to its store listing in AdMob and add the app-ads.txt file AdMob asks for: without them fewer ads are shown.
  7. On the phone: it is online; no ad blocker or ad-blocking “private DNS” is on; and the test account didn't buy No Ads (No Ads and the Winter Pack remove banners and interstitials by design; rewarded ads stay). In Europe, the player's answer to the consent message also affects which ads appear.
  8. Still nothing? Read the device log (Reading the logs): lines starting with [Ads] say what happened. “No fill” means AdMob had no ad to give at that moment, which is normal for new apps and not an error in the game.

Reading the logs

Several answers here say “look at the log”. The game writes its messages with a tag in front, so they are easy to find: [Block Bloom], [Game], [Save], [Wallet], [IAP], [Ads].

WhereHow
Unity editorWindow → General → Console while you press Play. The full log file: in the Console's ⋮ menu, Open Editor Log.
Android phone, with Android Studio
  1. On the phone: Settings → About phone, tap Build number 7 times, then turn on Developer options → USB debugging. Connect it with a USB cable and allow the computer.
  2. In Android Studio: View → Tool Windows → Logcat, pick the phone at the top, and type tag:Unity in the filter box.
  3. Start the game and repeat the problem: the messages appear live.
Android phone, with the command lineWith USB debugging on (above) and Google's platform-tools installed (they come with the Android SDK that Unity installs):
adb logcat -s Unity shows the game's messages live; adb logcat -d -s Unity > log.txt saves them to a file you can send.
Android, inside UnityInstall the Android Logcat package (com.unity.mobile.android-logcat, Package Manager → Unity Registry), then Window → Analysis → Android Logcat.
iPhone / iPad, from XcodeRun the game from Xcode (Product → Run): the messages appear in the debug area at the bottom (View → Debug Area → Activate Console).
iPhone / iPad, any buildConnect the device to a Mac. In Xcode: Window → Devices and Simulators, select the device, Open Console (or use the Mac's Console app with the device selected), start the game and type Block Bloom or [IAP] in the search box.

A Development Build (File → Build Profiles) shows more detail, including the full error stack; release builds still log warnings and errors.

For developers

ProblemSolution
Pink or missing letters after changing fontsCreate the TextMesh Pro font asset again (dynamic, so it adds the letters of every language by itself), or add a fallback font.
No ads on a deviceCheck that Google's plugin is imported (Tools → Block Bloom → Ads → AdMob Status), the ids are set, consent was given, and look at the device log. New ad units can take a while to serve ads.
No products in the shop on AndroidUpload a build to a testing track of Google Play, create the products with the same ids, and install the app from the testing link.
“The store is not available right now”The game couldn't reach the store (no internet when the game started, or Google Play's billing restarting during a Play Store update). It connects again by itself: after a short pause that grows up to a minute, when the app comes back to the front and whenever the shop opens. A purchase that went through while the store was away is delivered once it is back. If it never connects, look for [IAP] lines in the device log.
“no GooglePlayTangle key to check the receipt, purchase refused”Paste your licensing key into the Receipt Validation Obfuscator (In-app purchases → Receipt validation). Until then, release builds refuse Android purchases.
Errors after importing another plugin next to Google Mobile Ads: duplicate files, “Multiple precompiled assemblies with the same name”, Gradle “Duplicate class” errors, CocoaPods errors
  1. Two copies of the External Dependency Manager. Google's plugin brings it, and many other SDKs (Firebase, other ad networks, analytics) bring their own copy. Keep only the newest: search the Project window for ExternalDependencyManager and Google.VersionHandler, delete the older copy, then restart Unity.
  2. Android libraries in conflict. Choose Assets → External Dependency Manager → Android Resolver → Force Resolve, and turn on Custom Main Gradle Template and Custom Gradle Properties Template (Player Settings → Publishing Settings) if the resolver asks for them. Remove any loose copy of the same library from Assets/Plugins/Android (two .aar or .jar files of one library).
  3. Versions that don't match. Mediation adapters and other Google SDKs must match the version of the Google Mobile Ads plugin: update them together.
  4. iOS. Open the generated .xcworkspace in Xcode, not the .xcodeproj. If CocoaPods fails, run pod repo update, then pod install in the build folder.
  5. Still stuck? Import one plugin at a time and build after each, to see which one brings the conflict.
These plugins come from their own authors and are outside the support for Block Bloom; their documentation has the details.
Many players lost progress after an updateThe save secret changed between versions. Put the previous SaveManager.Secret back and publish an update: the rejected saves were kept on the phones and are restored by themselves at the next start (see Save data).
A test fails after changing the rules or a levelThe dialog and the Console say which check failed. A level reported as “not won by the careful player” needs more moves or an easier dealer (Level Editor → Test with the bot).
Images look blurry or have wrong borders after replacing themTools → Block Bloom → Reset Art Import Settings.

Updating to a new version

Each update is a complete project with a changelog that lists what changed. Your own content lives in a few places, so you can bring it into a new version without losing anything:

  1. Back up first. Commit your project to version control or copy its folder.
  2. Open the new version as a separate project and copy your own content into it. Always copy a file together with its .meta file: Unity keeps the links between assets through them.
  3. Your settings: BlockBloom/Resources/GameConfig.asset (rules, economy, ad ids, products, links). If the changelog lists new Game Config fields, they appear with their default values; set them as you like.
  4. Your levels: BlockBloom/Levels/Levels.asset, if you edited levels.
  5. Your look: the theme assets in Config, and the images, sounds and fonts you replaced. Keep the file names, or assign your files again.
  6. Your texts: take the new strings.csv and paste your own translations and edited rows into it, so the keys added by the update are kept.
  7. Your code changes: compare your scripts with the new ones (a diff or merge tool helps) and apply your changes again.

Safe to overwrite: anything you never changed (scripts, prefabs, the scene, the documentation). If you edited prefabs or the scene, apply your edits again on the new ones.

What needs merging by hand

Asset typeFilesIf you changed them
SceneScenes/Main.unity: the canvas with an instance of every screen and popup prefabRarely conflicts, as the screens themselves live in their prefabs. Keep the new scene and redo your changes in it; for big changes, Unity's Smart Merge (UnityYAMLMerge) can merge the two versions with Git.
PrefabsPrefabs/UI/*: every screen, popup and cardThe files most likely to conflict, because an update changes screens and popups. Take the new prefab and redo your edits; prefab files merge like the scene.
ScriptsScripts/**/*.csMerge with a diff tool. Most often touched: GameConfig.cs (new settings), PlayerData.cs (new save fields), SaveManager.cs (keep your Secret line), Core/* (rules), GameScreen.cs.
Config assetsResources/GameConfig.asset, Levels/Levels.asset, Config/*.asset (themes)Keep yours. New settings from the update appear with their default value: set them in the Inspector. New levels from an update can be copied into your pack with the Level Editor's Copy, level by level, or by keeping the new pack.
TextsResources/Localization/strings.csvStart from the new file and copy your edited rows in, so the new keys are kept.
Art, audio, fontsArt, Audio, FontsKeep yours (same file names). New files from the update can be added next to them.
Project settingsProjectSettings/ (package name, icons, signing), Packages/manifest.jsonKeep yours; add the packages the changelog asks for.

A safe workflow with Git

The download is a plain folder, not a Git repository: start one yourself (git init in the project folder, then commit everything) before you change anything.

  1. Keep the untouched package on a branch of its own (for example vendor), and your game on main.
  2. For an update, check out vendor, replace its files with the new version, and commit.
  3. Merge vendor into main. Git then shows exactly which files both you and the update changed: only those need the steps above.
Players' saves: keep the same SaveManager.Secret in every version (copy your secret into the new SaveManager.cs): a different secret makes every existing save look edited, and players start over (their old save is kept on the phone and comes back if the next update has the previous secret again). Updates only add save fields, which start with their default values, so existing players keep their coins, boosters, stars, purchases and settings. Never rename a block style id, backdrop id or product id after release, and add new levels at the end of the pack.

Before publishing the update, raise the version and the build number in Player Settings, then play once from a previous version's save to check that progress is kept.

Shared components: support & updates

A few general-purpose parts of Block Bloom are also used in other items by the same author: the UI manager (UIManager, UIScreen, UIPopup), tweening (Tween), the save manager (SaveManager), ads (AdsManager, AdMobProvider) and purchases (IAPManager). What this means for you:

  • Block Bloom is complete on its own. These scripts are a full copy inside this project. You don't need any other item, package or account from us.
  • They are supported like the rest of the game. Questions and bug reports about them go through Block Bloom's own support, within the support period shown on the item page.
  • Fixes reach you through Block Bloom's own updates. When a bug in one of these components is fixed, the fix is released in an update of Block Bloom and listed in its changelog. You never have to copy changes from another item.
  • If you changed one of these scripts yourself, merge the update into your version as described in Updating to a new version.

Credits & licenses

The game, its code, the blocks, crystals, ice, board, buttons, panels, icons, backdrops, the logo, the app icon, the sounds, the music and the 300 levels are original work created by the author for Block Bloom: the pictures are drawn and the sounds synthesized by the author's own code, and the levels made by the author's level generator (see AI disclosure and where the levels come from). Some general-purpose framework scripts (UI manager, tweening, save, ads and in-app purchase managers) are shared with the author's other products on CodeCanyon. No stock images, emoji sets, clip art or sound libraries are used. The following third-party assets are included; their licenses allow commercial use:

AssetLicense
Rubik font (Black and ExtraBold), by the Rubik Project AuthorsSIL Open Font License 1.1 (BlockBloom/ThirdPartyLicenses/Rubik - OFL.txt)
TextMesh Pro essential resourcesUnity Companion License (part of Unity's uGUI package)
Unity IAPUnity's package terms (installed from the Package Manager, not included in the download)

The Google Mobile Ads plugin is not included; if you add it, Google's license (Apache 2.0) and terms apply.

AI disclosure

An AI tool was used for the code and the text, not for the art, the sounds or the levels. Block Bloom was written with the help of an AI coding assistant (Claude by Anthropic). It was used, under the author's direction, to write and review the C# code (the game, the rules engine and the computer player, the editor tools and tests, the level generator, and the code that draws the art and synthesizes the sounds), the game's texts and their translations into the ten languages, and the text of this documentation. Everything was tested in Unity and on an Android phone.

  • Art: no AI image generator (such as Midjourney, DALL·E or Stable Diffusion) was used. The blocks, crystals, ice, board, backdrops, buttons, icons, logo and app icon are drawn by the author's own drawing code (a development tool, not part of the download). The font (Rubik) is a third-party asset under its own license (see Credits & licenses).
  • Sounds and music: no AI audio or music generator was used. Every sound effect and the music are synthesized by the author's own audio code (also a development tool).
  • Levels: made by the author's level generator from fixed seeds and tuned with the game's own computer player (how); not by an AI model.
  • Computer player: it doesn't use machine learning. It is a hand-written set of rules that rates every placement on the board.
  • Screenshots: the screenshots of the game are real captures from an Android phone.

Changelog & support

Version 1.0.0 - First release

Classic mode, 300 levels in 15 chapters (score, crystals, ice), Level Editor with a computer player, three boosters, second chance, daily gift, 5 block styles and 4 backdrops, AdMob-ready ads layer, Unity IAP 5 purchases, 10 languages, included tests.

Questions or problems? Open a ticket on our support desk, zaviro.net/support, or leave a comment on the item page, and include your Unity version and the platform you build for.

What support covers: Block Bloom's own code, scenes, prefabs, levels, art, sounds and documentation, including how the game works with Unity IAP and the Google Mobile Ads plugin. Third-party packages themselves (Unity IAP, the Google Mobile Ads plugin and its External Dependency Manager, RTL Text Mesh Pro, or anything else you add) are made and supported by their own authors; problems inside them are outside the support for this item.