Noah Petherbridge
99eab19c5b
* Implement the pub/sub message passing system that lets the JavaScript VM of one actor (say, a Button) send messages to other linked actors in the level (say, an Electric Door) * Buttons now emit a "power(true)" message while pressed and "power(false)" when released. Sticky Buttons do not release and so do not send the power(false) message. * Electric Doors listen for the "power" event and open or close themselves based on the boolean value received. * If a Sticky Button receives power and is currently pressed down, it will pop back up (reset to "off" position) and notify its linked actors that they have lost power too. So if a Sticky Button held an Electric Door open, and another Button powers the Sticky Button, it would pop back up and also close the Electric Door. |
||
---|---|---|
.. | ||
azulian-red.js | ||
azulian.js | ||
blu-back.png | ||
blu-front.png | ||
blu-wl1.png | ||
blu-wl2.png | ||
blu-wl3.png | ||
blu-wl4.png | ||
blu-wr1.png | ||
blu-wr2.png | ||
blu-wr3.png | ||
blu-wr4.png | ||
red-back.png | ||
red-front.png | ||
red-wl1.png | ||
red-wl2.png | ||
red-wl3.png | ||
red-wl4.png | ||
red-wr1.png | ||
red-wr2.png | ||
red-wr3.png | ||
red-wr4.png |