summaryrefslogtreecommitdiff
path: root/bonnie-bee/turret.scm
diff options
context:
space:
mode:
authorDavid Thompson <dthompson@vistahigherlearning.com>2021-10-23 17:09:34 -0400
committerDavid Thompson <dthompson@vistahigherlearning.com>2021-10-23 17:09:34 -0400
commit3fc18437f905f18aa4bf3b688930dbc68f8721b3 (patch)
treee14a25532309c88e2a33d5a7641f381a69733966 /bonnie-bee/turret.scm
parentfb31282c18f33acb6de24e604059df6d05477491 (diff)
Lots of tweaks and also sprite animations!
Diffstat (limited to 'bonnie-bee/turret.scm')
-rw-r--r--bonnie-bee/turret.scm9
1 files changed, 6 insertions, 3 deletions
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 <turret>))
(attach-to turret
- (make <sprite>
- #:texture turret-image
- #:origin (vec2 32.0 32.0))))
+ (make <animated-sprite>
+ #:atlas turret-atlas
+ #:origin (vec2 32.0 32.0)
+ #:animations `((default . ,(make <animation>
+ #:frames #(0 1 2 3)
+ #:frame-duration .15))))))
(define-method (on-collide (turret <turret>) (bullet <bullet>))
(cond