Noah Petherbridge
1523deeb9c
* Implement the handler code for `return false` when actors are colliding with each other and wish to act like solid walls. * The locked doors will `return false` when they're closed and the colliding actor does not have the matching key. * Add arbitrary key/value storage to Actors. The colored keys will set an actor value "key:%TITLE%" on the one who touched the key before destroying itself. The colored doors check that key when touched to decide whether to open. * The trapdoor now only opens if you're touching it from the top (your overlap box Y value is 0), but if you touch it from below and the door is closed, it acts like a solid object. |
||
---|---|---|
.. | ||
blue-key.png | ||
blue1.png | ||
blue2.png | ||
electric-door.js | ||
electric1.png | ||
electric2.png | ||
electric3.png | ||
electric4.png | ||
green-key.png | ||
green1.png | ||
green2.png | ||
keys.js | ||
locked-door.js | ||
README.md | ||
red-key.png | ||
red1.png | ||
red2.png | ||
yellow-key.png | ||
yellow1.png | ||
yellow2.png |
Button Doodads
doodad convert -t "Red Door" red1.png red2.png red-door.doodad
doodad convert -t "Blue Door" blue1.png blue2.png blue-door.doodad
doodad convert -t "Green Door" green1.png green2.png green-door.doodad
doodad convert -t "Yellow Door" yellow1.png yellow2.png yellow-door.doodad
doodad convert -t "Red Key" red-key.png red-key.doodad
doodad convert -t "Blue Key" blue-key.png blue-key.doodad
doodad convert -t "Green Key" green-key.png green-key.doodad
doodad convert -t "Yellow Key" yellow-key.png yellow-key.doodad
doodad convert -t "Electric Door" electric{1,2,3,4}.png electric-door.doodad