diff options
Diffstat (limited to 'bonnie-bee/moth.scm')
-rw-r--r-- | bonnie-bee/moth.scm | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/bonnie-bee/moth.scm b/bonnie-bee/moth.scm index 8f4ed5f..bcd165b 100644 --- a/bonnie-bee/moth.scm +++ b/bonnie-bee/moth.scm @@ -19,9 +19,12 @@ (define-method (on-boot (moth <moth>)) (attach-to moth - (make <sprite> - #:texture moth-image - #:origin (vec2 32.0 32.0)))) + (make <animated-sprite> + #:atlas moth-atlas + #:origin (vec2 32.0 32.0) + #:animations `((default . ,(make <animation> + #:frames #(0 1 0 2) + #:frame-duration .1)))))) (define-method (on-collide (moth <moth>) (bullet <bullet>)) (cond |