factor/contrib/tetris
slava 2a1167ecec Module format change 2006-10-21 06:40:38 +00:00
..
test adding contrib/tetris, a simple tetris clone 2006-10-19 22:03:11 +00:00
README.txt run-module now calls require first 2006-10-20 02:44:40 +00:00
load.factor Module format change 2006-10-21 06:40:38 +00:00
tetris-board.factor adding contrib/tetris, a simple tetris clone 2006-10-19 22:03:11 +00:00
tetris-colours.factor adding contrib/tetris, a simple tetris clone 2006-10-19 22:03:11 +00:00
tetris-gadget.factor adding contrib/tetris, a simple tetris clone 2006-10-19 22:03:11 +00:00
tetris-gl.factor adding contrib/tetris, a simple tetris clone 2006-10-19 22:03:11 +00:00
tetris-piece.factor adding contrib/tetris, a simple tetris clone 2006-10-19 22:03:11 +00:00
tetris.factor adding contrib/tetris, a simple tetris clone 2006-10-19 22:03:11 +00:00
tetromino.factor adding contrib/tetris, a simple tetris clone 2006-10-19 22:03:11 +00:00

README.txt

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

"contrib/tetris" run-module

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
q:                  quit (currently just stops updating, see TODO)

Running tetris-window will leave a tetris-gadget on your stack. To get your
current score you can do:

tetris-gadget-tetris tetris-score

TODO:
- close the window on quit
- rotation of pieces when they're on the far right of the board
- show the score and level, maybe floating about the screen somewhere
- make blocks prettier