doodle/dev-assets/doodads/doors
Noah Petherbridge 258b2eb285 Script Timers, Multiple Doodad Frames
* CLI: fix the `doodad convert` command to share the same Palette when
  converting each frame (layer) of a doodad so subsequent layers find
  the correct color swatches for serialization.
* Scripting: add timers and intervals to Doodad scripts to allow them to
  animate themselves or add delayed callbacks. The timers have the same
  API as a web browser: setTimeout(), setInterval(), clearTimeout(),
  clearInterval().
* Add support for uix.Actor to change its currently rendered layer in
  the level. For example a Button Doodad can set its image to Layer 1
  (pressed) when touched by the player, and Trapdoors can cycle through
  their layers to animate opening and closing.
  * Usage from a Doodad script: Self.ShowLayer(1)
* Default Doodads: added scripts for all Buttons, Doors, Keys and the
  Trapdoor to run their various animations when touched (in the case of
  Keys, destroy themselves when touched, because there is no player
  inventory yet)
2019-04-18 18:15:05 -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 Script Timers, Multiple Doodad Frames 2019-04-18 18:15:05 -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 Script Timers, Multiple Doodad Frames 2019-04-18 18:15:05 -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