(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)))
(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))