X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=gacela_tetris.lisp;h=d43fb5356ff7d1f375a55e690d50a49f6eed0061;hb=b4bb1b1a7180f521bceb564003d906308f93b5b7;hp=c0e7a382e866129d606ac1e65a6872fabf865d93;hpb=0e67e98bfd1eedf78f3e9c27a6d9726f225deac1;p=gacela.git diff --git a/gacela_tetris.lisp b/gacela_tetris.lisp index c0e7a38..d43fb53 100644 --- a/gacela_tetris.lisp +++ b/gacela_tetris.lisp @@ -1,6 +1,6 @@ (in-package :gacela) -(setq *zoom* -10) +(setq *zoom* -50) (defun tetramine-i () (let ((color '(1 0 0))) @@ -103,7 +103,7 @@ (next (random-tetramine)) (timer (make-timer)) (grid (make-list 20 :initial-element (make-list 14))) - (texture (load-texture "background.bmp")));fondo_tetris.png"))) + (background (draw-image-function "fondo_tetris.png"))) (defun tetramine () (cond ((eq (timer-state timer) 'stopped) (start-timer timer))) @@ -129,7 +129,7 @@ (setq next (random-tetramine))) (t (incf y) (start-timer timer))))) - (draw-square :size 1 :texture texture))) + (funcall background))) ; (translate -25 19) ; (draw-grid (join-grids tetramine grid x y)) ; (translate 40 40)