LineSweeper
A falling-block game and a sample for Labrador, my 2D game engine in C++. The same code that draws through Direct3D, OpenGL and Vulkan on Windows is compiled here to WebAssembly and drawn with WebGL2.
Nothing is downloaded until you press Play: about 190 KB.
Controls
- ← →
- Move
- ↓
- Soft drop
- ↑ or Space
- Hard drop
- X
- Rotate clockwise
- Z
- Rotate anticlockwise
- C or Shift
- Hold
- Esc or P
- Pause; the menu takes ↑ ↓ and Enter, and ← → on Colours, and Quit ends the game
- R
- Restart after topping out
A controller works too: the d-pad moves and soft-drops, d-pad up or Y hard-drops, A and B rotate, X or the left shoulder holds, and Start pauses or restarts. The game pauses when it loses the keyboard.
Accessibility
Keyboard play is supported; controller input is implemented, but physical-controller checks are pending. Tab moves focus out of the game. Controls are fixed, and screen readers cannot read the game state. Touch play is held back pending real iPhone and phone-layout checks. The landing shadow stands out from the empty well for every piece. A browser set to reduce motion gets line clears and a top-out with an eighth of the sparks. The pause menu's Colours row offers piece palettes for protanomaly / protanopia, deuteranomaly / deuteranopia and tritanomaly / tritanopia; they were chosen by simulation and have not yet been checked by players. The choice is not saved.
Built from Labrador 0f4f503, November 2026 · Third-party notices · Build record · Source · Engine documentation