X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=gacela_tetris.lisp;h=d43fb5356ff7d1f375a55e690d50a49f6eed0061;hb=b4bb1b1a7180f521bceb564003d906308f93b5b7;hp=4d83b70f3b69af0076aefc4b53078dd7899a32c0;hpb=678a1561ca858c34fecf04792831caf68559c2ac;p=gacela.git diff --git a/gacela_tetris.lisp b/gacela_tetris.lisp index 4d83b70..d43fb53 100644 --- a/gacela_tetris.lisp +++ b/gacela_tetris.lisp @@ -103,7 +103,7 @@ (next (random-tetramine)) (timer (make-timer)) (grid (make-list 20 :initial-element (make-list 14))) - (texture (load-texture "fondo_tetris.png"))) + (background (draw-image-function "fondo_tetris.png"))) (defun tetramine () (cond ((eq (timer-state timer) 'stopped) (start-timer timer))) @@ -129,10 +129,10 @@ (setq next (random-tetramine))) (t (incf y) (start-timer timer))))) - (draw-square :size 1 :texture texture) - (translate -25 19) - (draw-grid (join-grids tetramine grid x y)) - (translate 40 40) - (draw-grid next))) + (funcall background))) +; (translate -25 19) +; (draw-grid (join-grids tetramine grid x y)) +; (translate 40 40) +; (draw-grid next))) (run-game "Gacela Tetris" (tetramine))