https://github.com/gattschardo/tetris
basic tetris implementation for GTK3, SDL1 (with emscripten support) and SDL2
https://github.com/gattschardo/tetris
cairo emscripten gtk3 sdl sdl2 wasm
Last synced: about 1 month ago
JSON representation
basic tetris implementation for GTK3, SDL1 (with emscripten support) and SDL2
- Host: GitHub
- URL: https://github.com/gattschardo/tetris
- Owner: gattschardo
- Created: 2013-09-07T11:21:23.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2018-01-06T16:25:24.000Z (over 7 years ago)
- Last Synced: 2025-02-07T09:33:17.411Z (3 months ago)
- Topics: cairo, emscripten, gtk3, sdl, sdl2, wasm
- Language: C
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
Tetris
------The game itself should need no explanation. To compile, you need either GTK 3.0
or SDl 2.0 (including development headers) installed. For graphing you need
gnuplot.Some important settings can be controlled in the main header file tetris.h:
TICK enables oder disables automatic block falling. G_WIDTH and G_HEIGHT
control the size of the game grid (in blocks). H_WIDTH and W_HEIGHT control the
resolution of the game window (SDL version only).The plotting script creates to graphs, the "valuation" of a the grid situation
(lower is better) and the number of lines consumed (after each move).