

Sandtris
Blocks fall apart into flowing sand in Sandtris by msky-dev. Connect one colour wall-to-wall to clear it — a Tetris cousin with physics.
Sandtris is Tetris with one rule changed: a row only clears when it is filled with one connected colour that reaches the far edge. The build also adds static pieces that freeze where they land, a ten step difficulty slider and a next piece that can be forced to rotate.
The board is eighty cells wide and a hundred and sixty tall, drawn at four pixels per cell and shifted right to leave a panel. A piece is a list of brick offsets rather than a matrix, and each of the seven shapes carries four rotations plus its own width and height for each rotation, which is what lets the game push a piece back inside the wall after a rotate.
| Value | Role |
|---|---|
| columns 80, rows 160 | The play field |
| scl 4, padding 4 | Cell size and panel spacing |
| seven block types | The shapes, four rotations each |
| brick and staticbrick | The two brick sprites, normal and frozen |
A brick is drawn from an eight by eight mask scaled into the cell, which is why the pieces have a chunky sand look rather than clean squares. Colour comes from a four entry palette indexed by the piece type, and a static piece uses a desaturated version of the same colour, so a frozen brick is recognisable without a new sprite.
This is the rule that separates Sandtris from Tetris. For each row, the game starts a flood fill at the left edge using the colour of the first cell, and the row counts as complete only if that fill reaches the right edge. A row of mixed colours never clears, no matter how full it is.
The flood fill marks cells as visited rather than deleting them, so the same pass can colour the row white for a flash and then delete it. The clear animation runs for about thirty frames, during which the row alternates colour every five frames, and only then are the cells removed and the score increased by the number of cells removed.
Because the fill starts at the left wall, the practical strategy is to build long horizontal runs of one colour from the left. A gap on the left blocks the fill even if the rest of the row is one colour, which makes the bottom left corner the most valuable real estate on the board.
Every piece placed can be marked static, and a static piece does not fall again when the grid settles. The build counts placements and freezes one piece every few drops, with the interval set by the difficulty slider: at level one the counter runs to sixteen, at level ten it runs to four.
That mechanic is why the game can be a puzzle rather than only a reflex test. A frozen piece is a wall you did not plan for, and because frozen bricks keep their colour, a static block can also complete a line later. The build draws them desaturated to warn you which bricks will not settle.
Settling is a two phase loop. On even frames the grid scans bottom to top and left to right, on odd frames it scans in the opposite horizontal direction, and a brick with nothing under it falls one cell, sliding left or right at random if both diagonals are open. That is why sand piles instead of stacking cleanly.
A slider from one to ten sets the fall speed, the static interval and the duplicate chance. Speed starts at zero point five and adds up to one and a half across the range, the static interval shrinks from sixteen to four, and the duplicate chance drops from one to a tenth so that identical pieces stop arriving in pairs on higher levels.
| Slider | Effect |
|---|---|
| Speed | 0.5 at level one, up to 2.0 at level ten |
| Static interval | 16 placements at level one, 4 at level ten |
| Duplicate chance | 1.0 at low levels, 0.1 at high levels |
The duplicate rule is the subtle one. The build checks whether the next piece shares a colour with the current one and, if the random roll passes, rotates it one step before it enters the queue. On easy levels you get the same colour twice in a row, which helps with the flood fill; on hard levels that help disappears.
The arrow keys move and rotate, with up for rotation and down for a soft drop that also adds one point per step. P pauses, and pausing lowers the music through a low pass filter rather than stopping it, which is a neat way to signal a pause without silence.
The panel shows time in minutes and seconds, the line count, the score and the level. The game over screen prints score and lines, and a share button writes a formatted result to the clipboard: level, lines, score and time in fixed width fields, followed by a link to the game. That fixed width formatting is why a shared result lines up in a chat window.
Swipe input is wired through Hammer, with all four directions mapped to the same actions, so the game is playable on a phone without on-screen buttons. The build ships a pixel font and three sounds: a place sound, a line sound and a music loop.
There are no levels in the campaign sense. The level number on the panel is the difficulty slider, not a stage, and the game runs until the stack reaches the top. There is also no readable high score system: the score resets with each run and nothing is saved.
The piece shapes are stored as coordinate lists rather than as named tetrominoes, so the build does not call them I, O, T, S, Z, J and L. This guide therefore counts seven shapes with four rotations each rather than naming them.
A row clears only when one connected colour fills it from the left wall to the right wall. Mixed rows never clear.
A piece that freezes where it lands and never settles again. It is drawn desaturated so you can see which bricks are frozen.
Every sixteen placements at difficulty one, dropping to every four placements at difficulty ten.
Fall speed, the static interval and the chance that the next piece repeats the current colour.
The settle loop runs every frame, and a brick with nothing beneath it falls and slides diagonally at random when both sides are open.
Press P. The music is filtered through a low pass rather than stopped, so the pause is audible but not silent.
Yes. Swipe gestures are mapped through Hammer to the same four actions as the arrow keys.











