factor/apps/tetris
slava 45a0bd6d9d Modules: core/ apps/ libs/ demos/ 2006-11-29 02:57:29 +00:00
..
test Modules: core/ apps/ libs/ demos/ 2006-11-29 02:57:29 +00:00
README.txt Modules: core/ apps/ libs/ demos/ 2006-11-29 02:57:29 +00:00
load.factor Modules: core/ apps/ libs/ demos/ 2006-11-29 02:57:29 +00:00
tetris-board.factor Modules: core/ apps/ libs/ demos/ 2006-11-29 02:57:29 +00:00
tetris-colours.factor Modules: core/ apps/ libs/ demos/ 2006-11-29 02:57:29 +00:00
tetris-gadget.factor Modules: core/ apps/ libs/ demos/ 2006-11-29 02:57:29 +00:00
tetris-gl.factor Modules: core/ apps/ libs/ demos/ 2006-11-29 02:57:29 +00:00
tetris-piece.factor Modules: core/ apps/ libs/ demos/ 2006-11-29 02:57:29 +00:00
tetris.factor Modules: core/ apps/ libs/ demos/ 2006-11-29 02:57:29 +00:00
tetromino.factor Modules: core/ apps/ libs/ demos/ 2006-11-29 02:57:29 +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