factor/extra/tetris
Björn Lindqvist 508b85851d tools.deploy.backend: ui depends on (full) io so it needs to be loaded first
find-library on linux needs to call /sbin/ldconfig which requires a
full io-backend. Using gtk requires loading alien libraries which
requires find-library. So the ui should always load the whole io.
2014-07-03 21:57:07 +00:00
..
board
game
gl
piece
tetromino sequences, tetris, rosetta-code: Simplify some code. 2013-03-11 18:57:54 -07:00
README.txt
authors.txt
deploy.factor tools.deploy.backend: ui depends on (full) io so it needs to be loaded first 2014-07-03 21:57:07 +00:00
summary.txt
tags.txt
tetris.factor

README.txt

This is a simple tetris game. To play, open factor (in GUI mode), and run:

"tetris" run

This should open a new window with a running tetris game. The commands are:

left, right arrows: move the current piece left or right
up arrow:           rotate the piece clockwise
down arrow:         lower the piece one row
space bar:          drop the piece
p:                  pause/unpause
n:                  start a new game

TODO:
- rotation of pieces when they're on the far right of the board
- make blocks prettier
- possibly make piece inherit from tetromino