factor/extra/tetris
Slava Pestov 3bf5d2bfd4 Implement image tesselation in image.tesselation. This is used by opengl.textures to break up large bitmaps into multiple smaller textures. The gl-rect and gl-fill-rect words have different stack effects now, so usages were updated. 2009-03-27 18:31:25 -05:00
..
board Fix various unit tests 2009-03-07 15:58:14 -06:00
game use CONSTANT: in extra 2009-02-22 19:08:45 -06:00
gl Implement image tesselation in image.tesselation. This is used by opengl.textures to break up large bitmaps into multiple smaller textures. The gl-rect and gl-fill-rect words have different stack effects now, so usages were updated. 2009-03-27 18:31:25 -05:00
piece Fixed tetris and moved it from unmaintained to extra 2008-10-02 11:12:46 +10:00
tetromino Various load-everything fixes 2009-03-07 01:22:21 -06:00
README.txt Fixed tetris and moved it from unmaintained to extra 2008-10-02 11:12:46 +10:00
authors.txt Fixed tetris and moved it from unmaintained to extra 2008-10-02 11:12:46 +10:00
deploy.factor Update deployment descriptors for deploy-random? removal 2008-11-06 01:40:54 -06:00
summary.txt Fixed tetris and moved it from unmaintained to extra 2008-10-02 11:12:46 +10:00
tags.txt Fixed tetris and moved it from unmaintained to extra 2008-10-02 11:12:46 +10:00
tetris.factor Remove new-gadget since it was just an alias for new 2009-02-16 04:04:32 -06:00

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