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. |
||
---|---|---|
.. | ||
balance | ||
collision | ||
doodads | ||
enum | ||
filesystem | ||
level | ||
log | ||
scripting | ||
uix | ||
userdir | ||
wallpaper | ||
commands.go | ||
config.go | ||
doodle.go | ||
editor_scene_debug.go | ||
editor_scene.go | ||
editor_ui_doodad.go | ||
editor_ui_palette.go | ||
editor_ui.go | ||
fps.go | ||
guitest_scene.go | ||
main_scene.go | ||
play_scene.go | ||
scene.go | ||
shell.go |