Function: tetris-mode
tetris-mode is a byte-compiled function defined in tetris.el.gz.
Signature
(tetris-mode)
Documentation
A mode for playing Tetris.
This mode runs the hook tetris-mode-hook, as the final or penultimate
step during initialization.
<down> tetris-move-down
<left> tetris-move-left
<right> tetris-move-right
<up> tetris-rotate-prev
SPC tetris-move-bottom
n tetris-start-game
p tetris-pause-game
q tetris-end-game
Source Code
;; Defined in /usr/src/emacs/lisp/play/tetris.el.gz
(define-derived-mode tetris-mode nil "Tetris"
"A mode for playing Tetris."
:interactive nil
(add-hook 'kill-buffer-hook 'gamegrid-kill-timer nil t)
(use-local-map tetris-null-map)
(setq show-trailing-whitespace nil)
(setq gamegrid-use-glyphs tetris-use-glyphs)
(setq gamegrid-use-color tetris-use-color)
(gamegrid-init (tetris-display-options)))