Combine ^gem and ^ghost-gem into one actor.

We still want the ghost gems to be collectable, even though they don't
do anything.
This commit is contained in:
David Thompson 2024-05-24 13:14:45 -04:00
parent e580454a97
commit 3503aeb00b
2 changed files with 8 additions and 22 deletions

View file

@ -77,9 +77,7 @@
(8 (let ((target-x (bytevector-u8-ref objects (+ i 3)))
(target-y (bytevector-u8-ref objects (+ i 4))))
(spawn ^floor-switch x y target-x target-y)))
(9 (if collected-gem?
(spawn ^ghost-gem x y)
(spawn ^gem x y)))
(9 (spawn ^gem x y collected-gem?))
(10 (spawn ^gate x y))
(11 (spawn ^and-gate x y
(direction->symbol