# Tetris (raylib classic) Grid logic, rotation, line clears, score HUD. ```{raw} html ▶ Run in browser

Upstream: https://github.com/raysan5/raylib-games/tree/master/classics/src

``` **Tags:** `port` `tier-0` # Tetris (raylib classic): SimVX port Faithful port of `raylib-games/classics/src/tetris.c`. ## Run ```bash uv run python ported_games/raylib_classics/tetris/simvx_port/main.py ``` ## Controls | Key | Action | |-----|--------| | LEFT / RIGHT | Move piece sideways | | UP | Rotate piece 90° CW | | DOWN | Soft drop (after holding briefly) | | P | Pause / resume | | ENTER | Restart after game over | ## Web export ```bash uv run simvx export web ported_games/raylib_classics/tetris/simvx_port/main.py \ -o ported_games/raylib_classics/tetris/simvx_port/web/index.html ``` ## Source ```{literalinclude} ../../examples/ports/raylib_tetris/main.py :language: python :linenos: ```