X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=gacela_tetris.lisp;h=3397a91612ad0612bdfd56a42aee653bd5a70d16;hb=485e401435dd0c9d443299cb04b1576e0f15f43f;hp=4d83b70f3b69af0076aefc4b53078dd7899a32c0;hpb=678a1561ca858c34fecf04792831caf68559c2ac;p=gacela.git diff --git a/gacela_tetris.lisp b/gacela_tetris.lisp index 4d83b70..3397a91 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 0.086))) +; (translate -25 19) +; (draw-grid (join-grids tetramine grid x y)) +; (translate 40 40) +; (draw-grid next))) (run-game "Gacela Tetris" (tetramine))