X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=gacela_tetris.lisp;h=3397a91612ad0612bdfd56a42aee653bd5a70d16;hb=485e401435dd0c9d443299cb04b1576e0f15f43f;hp=c0e7a382e866129d606ac1e65a6872fabf865d93;hpb=0e67e98bfd1eedf78f3e9c27a6d9726f225deac1;p=gacela.git diff --git a/gacela_tetris.lisp b/gacela_tetris.lisp index c0e7a38..3397a91 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 0.086))) ; (translate -25 19) ; (draw-grid (join-grids tetramine grid x y)) ; (translate 40 40)