doodle/dev-assets/doodads/doors
Noah Petherbridge a2e1bd1ccb Improve OnCollide Doodad Script Handling
* Events.OnCollide now receives a CollideEvent object, which makes
  available the .Actor who collided and the .Overlap rect which is
  zero-relative to the target actor. Doodad scripts can use the .Overlap
  to see WHERE in their own box the other actor has intruded.
  * Update the LockedDoor and ElectricDoor doodads to detect when the
    player has entered their inner rect (since their doors are narrower
    than their doodad size)
  * Update the Button doodads to only press in when the player actually
    touches them (because their sizes are shorter than their doodad
    height)
  * Update the Trapdoor to only trigger its animation when the board
    along its top has been touched, not when the empty space below was
    touched from the bottom.
* Events.OnLeave now implemented and fires when an actor who was
  previously intersecting your doodad has left.
* The engine detects when an event JS callback returns false.
  Eventually, the OnCollide can return false to signify the collision is
  not accepted and the actor should be bumped away as if they hit solid
  geometry.
2019-05-06 22:58:09 -07:00
..
blue-key.png 1st Round of Doodad Sprites + Improve Doodad Tool 2019-04-17 00:02:41 -07:00
blue1.png 1st Round of Doodad Sprites + Improve Doodad Tool 2019-04-17 00:02:41 -07:00
blue2.png 1st Round of Doodad Sprites + Improve Doodad Tool 2019-04-17 00:02:41 -07:00
electric-door.js Improve OnCollide Doodad Script Handling 2019-05-06 22:58:09 -07:00
electric1.png 1st Round of Doodad Sprites + Improve Doodad Tool 2019-04-17 00:02:41 -07:00
electric2.png 1st Round of Doodad Sprites + Improve Doodad Tool 2019-04-17 00:02:41 -07:00
electric3.png 1st Round of Doodad Sprites + Improve Doodad Tool 2019-04-17 00:02:41 -07:00
electric4.png 1st Round of Doodad Sprites + Improve Doodad Tool 2019-04-17 00:02:41 -07:00
green-key.png 1st Round of Doodad Sprites + Improve Doodad Tool 2019-04-17 00:02:41 -07:00
green1.png 1st Round of Doodad Sprites + Improve Doodad Tool 2019-04-17 00:02:41 -07:00
green2.png 1st Round of Doodad Sprites + Improve Doodad Tool 2019-04-17 00:02:41 -07:00
keys.js Script Timers, Multiple Doodad Frames 2019-04-18 18:15:05 -07:00
locked-door.js Improve OnCollide Doodad Script Handling 2019-05-06 22:58:09 -07:00
README.md 1st Round of Doodad Sprites + Improve Doodad Tool 2019-04-17 00:02:41 -07:00
red-key.png 1st Round of Doodad Sprites + Improve Doodad Tool 2019-04-17 00:02:41 -07:00
red1.png 1st Round of Doodad Sprites + Improve Doodad Tool 2019-04-17 00:02:41 -07:00
red2.png 1st Round of Doodad Sprites + Improve Doodad Tool 2019-04-17 00:02:41 -07:00
yellow-key.png 1st Round of Doodad Sprites + Improve Doodad Tool 2019-04-17 00:02:41 -07:00
yellow1.png 1st Round of Doodad Sprites + Improve Doodad Tool 2019-04-17 00:02:41 -07:00
yellow2.png 1st Round of Doodad Sprites + Improve Doodad Tool 2019-04-17 00:02:41 -07:00

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