# ui_back
A soft two-note falling bell (880 Hz then 660 Hz) for going back a screen in Ladrilho, about 0.12 s. Played by `ladrilho.sounds` (Sounds.back) on the ui channel.
Made by `ladrilho.soundBake` (recipe `ui_back`); rebake it there to change it.
# place
The sound of a painted ceramic tile set down: a short woody clack of filtered noise, a faint high ring and a low thump, about 0.16 s. Played by `ladrilho.sounds` (Sounds.place) when a piece lands on the board.
Made by `ladrilho.soundBake` (recipe `place`); rebake it there to change it.
# levelup
A bright five-note rising bell run for reaching a new level in Ladrilho, about 1.2 s. Played by `ladrilho.sounds` (Sounds.levelUp) after the results screen shows the level up.
Made by `ladrilho.soundBake` (recipe `levelup`); rebake it there to change it.
# gameover
A gentle end-of-round phrase in Ladrilho: four plucked nylon-string notes falling G-E-C-G, about 1.4 s, soft rather than sad. Played by `ladrilho.sounds` (Sounds.gameOver) when no piece fits.
Made by `ladrilho.soundBake` (recipe `gameover`); rebake it there to change it.
# music_loop
Ladrilho's music: a gentle 16-second bossa nova loop at 120 bpm, synthesised: plucked nylon-ish chords (Cmaj9, Am7, Dm9, G13, Em7) on the bossa comping rhythm, a soft thumb bass, a shaker and a rim click, with a short bell melody in the second half. Loops seamlessly on the music channel through soundstageCore (`ladrilho.sounds`).
Made by `ladrilho.soundBake` (recipe `music_loop`); rebake it there to change it.
# newbest
A small celebration for a new best score in Ladrilho: a rising bell arpeggio C-E-G-C ending on a plucked C major chord and a shimmer, about 1.6 s. Played by `ladrilho.sounds` (Sounds.newBest) on the results screen.
Made by `ladrilho.soundBake` (recipe `newbest`); rebake it there to change it.
# clear5
A line clear in Ladrilho, combo level 5 and above: the highest, seven-note rising bell arpeggio. Played by `ladrilho.sounds` (Sounds.clear) for the biggest combos.
Made by `ladrilho.soundBake` (recipe `clear5`); rebake it there to change it.
# clear2
A line clear in Ladrilho, combo level 2: the rising bell arpeggio one step higher and with five notes, for a second clear in a row or a double. Played by `ladrilho.sounds` (Sounds.clear).
Made by `ladrilho.soundBake` (recipe `clear2`); rebake it there to change it.
# clear1
A line clear in Ladrilho, combo level 1: a quick rising bell arpeggio (four notes up a major scale from C5) with a soft shimmer, under a second. Played by `ladrilho.sounds` (Sounds.clear) for a single clear.
Made by `ladrilho.soundBake` (recipe `clear1`); rebake it there to change it.
# clear4
A line clear in Ladrilho, combo level 4: a seven-note rising bell arpeggio, brighter and higher. Played by `ladrilho.sounds` (Sounds.clear) for big combos.
Made by `ladrilho.soundBake` (recipe `clear4`); rebake it there to change it.
# ui_tap
A short bright bell tick for a menu tap in Ladrilho: a sine bell at 1320 Hz with a tiny noise click, under 0.1 s. Played by `ladrilho.sounds` (Sounds.tap) on the ui channel for every button press.
Made by `ladrilho.soundBake` (recipe `ui_tap`); rebake it there to change it.
# clear3
A line clear in Ladrilho, combo level 3: a six-note rising bell arpeggio, a step above level 2. Played by `ladrilho.sounds` (Sounds.clear) for a three-line or third-in-a-row clear.
Made by `ladrilho.soundBake` (recipe `clear3`); rebake it there to change it.
# ladrilho
The game's own parts for **Ladrilho: Block Puzzle**, a phone-first block-placement
puzzle in English and Brazilian Portuguese: drag pieces onto an 8x8 board of painted
tiles, fill rows and columns to clear them.
## The game shell
- **Title:** the Ladrilho wordmark (each letter on a painted tile), "N playing now",
your level and XP, Play, Progress and Settings.
- **Modes:** Endless (best score kept), Daily Board (the same pieces for everyone each
UTC day, a world leaderboard per day), Adventure (60 levels in five chapters on a
path map, three stars each, the next level opens when one is cleared) and Duel
(3 minutes, a friend by room code or the computer).
- **Results:** score, best / new best, today's rank, stars, XP gained, level up and
tile looks unlocked, then Play again / Next / Map / Modes / Home.
- **Progress:** saved per player account by saveKit and back after a reload: XP and
level (40 levels), twelve tile looks unlocked by level, best scores, stars.
- **Settings:** music and effects volume (menusKit), graphics quality (Graphics
Presets), language (Automatic / English / Português (Brasil), switched live, even
mid-round) and the tile look.
- Portrait first; landscape and desktop mouse layouts too.
## Modules
`ladrilho.app` (routing, the mode API), `ladrilho.App` (the component), `ladrilho.screens`,
`ladrilho.art`, `ladrilho.modes`, `ladrilho.profile`, `ladrilho.daily`, `ladrilho.duel`,
`ladrilho.board` (the seam to blockPuzzleKit), `ladrilho.lang`.
## A mode, and how it plugs in a blockPuzzleKit session
```lua
local Modes = require("ladrilho.modes")
Modes.register({
id = "endless", order = 1, icon = "infinity", route = "play",
title = "ladrilho.modes.endless", blurb = "ladrilho.modes.endless_desc",
session = function(ctx) return { board = "classic8", pieces = "classic", dealer = "merciful", look = ctx.look, seed = ctx.seed } end,
finish = function(ctx, result) ... return { title = ..., score = ..., buttons = { "again", "modes", "home" } } end,
})
-- the App: App.startMode("endless") -> mode.session(ctx) -> Board.mount(cfg, region, App.boardEvent)
-- the board: App.boardEvent{ type = "score", score, lines } / { type = "gameOver" } / { type = "goalDone", stars }
-- the end: App.finishRound(result) -> mode.finish(ctx, result) -> results screen
```
## Installed kits it runs on
- **blockPuzzleKit**: the board, pieces, dealers, scoring, level goals, drag-and-place tray and computer player.
- **menusKit**: pause and settings screens (it brings **controlsKit** with it for input).
- **saveKit**: the saved profile.
- **scoreKit**: best scores and the Daily world boards, one per day (it brings **MatchFlow** with it).
- **Graphics Presets**: the graphics quality setting.
- **Table Codes (roomsKit)**: Duel rooms, the code keypad and the computer seat.
- **announcerKit**: the clear and combo callouts.
- **soundstageCore**: music and sound effects.
- **playingNow**: the "N playing now" chip.
- **levelPathMap**: the Adventure's chapter map, given Ladrilho's palette, fonts, widgets, goal glyphs and words in `Screens.adventureSpec`.
## Words
`locales/en/ladrilho.json` and `locales/pt-BR/ladrilho.json`, with plural forms and
the language's number grouping. The Brazilian Portuguese has been reviewed
(`locales/pt-BR/ladrilho.review.json`, every line `ai_reviewed`, the review state the
catalog check takes for a translation checked by someone other than its writer).