Add or gate, update level 4 to use all logic gates

This commit is contained in:
Juliana Sims 2024-05-22 13:32:37 -04:00
parent c749f22fe8
commit 6b9edbca25
5 changed files with 81 additions and 27 deletions

View file

@ -47,6 +47,7 @@
(target-y (bytevector-u8-ref objects (+ i 4))))
(spawn ^electric-switch x y target-x target-y)))
(13 (spawn ^xor-gate x y))
(15 (spawn ^or-gate x y))
(id (error "invalid level object" id))))
(i* (+ i (match id
;; floor-switch or electric-switch