From 3fc18437f905f18aa4bf3b688930dbc68f8721b3 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sat, 23 Oct 2021 17:09:34 -0400 Subject: Lots of tweaks and also sprite animations! --- bonnie-bee/turret.scm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'bonnie-bee/turret.scm') diff --git a/bonnie-bee/turret.scm b/bonnie-bee/turret.scm index 9474c65..5aae796 100644 --- a/bonnie-bee/turret.scm +++ b/bonnie-bee/turret.scm @@ -19,9 +19,12 @@ (define-method (on-boot (turret )) (attach-to turret - (make - #:texture turret-image - #:origin (vec2 32.0 32.0)))) + (make + #:atlas turret-atlas + #:origin (vec2 32.0 32.0) + #:animations `((default . ,(make + #:frames #(0 1 2 3) + #:frame-duration .15)))))) (define-method (on-collide (turret ) (bullet )) (cond -- cgit v1.2.3