]> git.eshelyaron.com Git - emacs.git/commit
* lisp/play/tetris.el: Cleanup image representation and rotation.
authorLukas Huonker <l.huonker@gmail.com>
Fri, 23 Jul 2010 23:26:42 +0000 (01:26 +0200)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 23 Jul 2010 23:26:42 +0000 (01:26 +0200)
commit195e19e4f90710c5ad4be9a3e47fcfa3b02e1604
tree3a8d6b76783eb220fba4085de88b5b9140d999ef
parent9cf2db99c671636d9a37eec7027bdf6d2d9a5814
* lisp/play/tetris.el: Cleanup image representation and rotation.
(tetris-tty-colors, tetris-x-colors, tetris-blank):
Remove leading nil element, adjust values.
(tetris-shapes, tetris-shape-scores):
Change representation of shapes and remove some redundancy.
(tetris-get-shape-cell, tetris-shape-width, tetris-draw-next-shape)
(tetris-draw-shape, tetris-erase-shape, tetris-test-shape):
Adjust for working with new representation of shapes.
(tetris-shape-rotations): New function.
(tetris-move-bottom, tetris-move-left, tetris-move-right)
(tetris-rotate-prev, tetris-rotate-next):
Adjust for working with the new version of tetris-test-shape.
lisp/ChangeLog
lisp/play/tetris.el