summaryrefslogtreecommitdiff
path: root/bonnie-bee/actor.scm
diff options
context:
space:
mode:
authorDavid Thompson <dthompson@vistahigherlearning.com>2022-10-12 06:48:14 -0400
committerDavid Thompson <dthompson@vistahigherlearning.com>2022-10-27 13:22:50 -0400
commite287a11c4387382277c31735504fc762c33b4cee (patch)
treeb262dc8de64db21a7d2cb2c980f2be39805d6a34 /bonnie-bee/actor.scm
parentf713890a773a7d6ff666277592eec72f2328a5b6 (diff)
Switch to Catbird engine.
Diffstat (limited to 'bonnie-bee/actor.scm')
-rw-r--r--bonnie-bee/actor.scm11
1 files changed, 6 insertions, 5 deletions
diff --git a/bonnie-bee/actor.scm b/bonnie-bee/actor.scm
index 8aec98a..3d693dd 100644
--- a/bonnie-bee/actor.scm
+++ b/bonnie-bee/actor.scm
@@ -6,9 +6,10 @@
#:use-module (chickadee math rect)
#:use-module (chickadee math vector)
#:use-module (oop goops)
- #:use-module (starling asset)
- #:use-module (starling node)
- #:use-module (starling node-2d)
+ #:use-module (catbird asset)
+ #:use-module (catbird node)
+ #:use-module (catbird node-2d)
+ #:use-module (catbird scene)
#:export (<actor>
velocity
hitbox
@@ -107,7 +108,7 @@
(refresh-world-hitbox actor)
(collision-check actor)
(add-to-quadtree actor)
- (dirty! actor)))))
+ (expire-local-matrix actor)))))
(define-method (dead? (actor <actor>))
#f)
@@ -138,7 +139,7 @@
(define-method (damage (d <damageable>) x)
(set! (health d) (max (- (health d) x) 0))
(unless (dead? d)
- (audio-play (asset-ref enemy-hit-sound) #:volume 0.25)))
+ (audio-play (artifact enemy-hit-sound) #:volume 0.25)))
(define-method (on-death (d <damageable>))
#t)