doodle/pkg
Noah Petherbridge 701073cecc Doodad/Actor Runtime Options
* Add "Options" support for Doodads: these allow for individual Actor instances
  on your level to customize properties about the doodad. They're like "Tags"
  except the player can customize them on a per-actor basis.
* Doodad Editor: you can specify the Options in the Doodad Properties window.
* Level Editor: when the Actor Tool is selected, on mouse-over of an actor,
  clicking on the gear icon will open a new "Actor Properties" window which
  shows metadata (title, author, ID, position) and an Options tab to configure
  the actor's options.

Updates to the scripting API:

* Self.Options() returns a list of option names defined on the Doodad.
* Self.GetOption(name) returns the value for the named option, or nil if
  neither the actor nor its doodad have the option defined. The return type
  will be correctly a string, boolean or integer type.

Updates to the doodad command-line tool:

* `doodad show` will print the Options on a .doodad file and, when showing a
  .level file with --actors, prints any customized Options with the actors.
* `doodad edit-doodad` adds a --option parameter to define options.

Options added to the game's built-in doodads:

* Warp Doors: "locked (exit only)" will make it so the door can not be opened
  by the player, giving the "locked" message (as if it had no linked door),
  but the player may still exit from the door if sent by another warp door.
* Electric Door & Electric Trapdoor: "opened" can make the door be opened by
  default when the level begins instead of closed. A switch or a button that
  removes power will close the door as normal.
* Colored Doors & Small Key Door: "unlocked" will make the door unlocked at
  level start, not requiring a key to open it.
* Colored Keys & Small Key: "has gravity" will make the key subject to gravity
  and set its Mobile flag so that if it falls onto a button, it will activate.
* Gemstones: they had gravity by default; you can now uncheck "has gravity" to
  remove their Gravity and IsMobile status.
* Gemstone Totems: "has gemstone" will set the totem to its unlocked status by
  default with the gemstone inserted. No power signal will be emitted; it is
  cosmetic only.
* Fire Region: "name" can let you set a name for the fire region similarly to
  names for fire pixels: "Watch out for ${name}!"
* Invisible Warp Door: "locked (exit only)" added as well.
2022-10-09 17:41:24 -07:00
..
balance Doodad/Actor Runtime Options 2022-10-09 17:41:24 -07:00
branding Detect touchscreen and tweak some behaviors 2022-09-24 17:45:54 -07:00
campaign Rename Go module 2022-09-24 15:17:25 -07:00
chatbot Rename Go module 2022-09-24 15:17:25 -07:00
collision Rename Go module 2022-09-24 15:17:25 -07:00
cursor Detect touchscreen and tweak some behaviors 2022-09-24 17:45:54 -07:00
doodads Doodad/Actor Runtime Options 2022-10-09 17:41:24 -07:00
drawtool Rename Go module 2022-09-24 15:17:25 -07:00
enum Flood Tool, Survival Mode for Azulian Tag 2022-03-26 13:55:06 -07:00
filesystem Rename Go module 2022-09-24 15:17:25 -07:00
gamepad Rename Go module 2022-09-24 15:17:25 -07:00
keybind Flood Tool, Survival Mode for Azulian Tag 2022-03-26 13:55:06 -07:00
level Doodad/Actor Runtime Options 2022-10-09 17:41:24 -07:00
levelpack Rename Go module 2022-09-24 15:17:25 -07:00
license Rename Go module 2022-09-24 15:17:25 -07:00
log Switch github.com/kirsle/golog to git.kirsle.net/go/log 2019-12-22 18:34:31 -08:00
modal Wait Modal 2022-09-24 18:39:02 -07:00
native JavaScript Exception Catcher UI 2022-09-24 21:58:01 -07:00
pattern Rename Go module 2022-09-24 15:17:25 -07:00
physics Rename Go module 2022-09-24 15:17:25 -07:00
savegame Rename Go module 2022-09-24 15:17:25 -07:00
scripting JavaScript Exception Catcher UI 2022-09-24 21:58:01 -07:00
shmem Level Difficulty + UI Polish 2022-03-06 22:20:53 -08:00
sound Rename Go module 2022-09-24 15:17:25 -07:00
sprites Rename Go module 2022-09-24 15:17:25 -07:00
uix Doodad/Actor Runtime Options 2022-10-09 17:41:24 -07:00
updater Rename Go module 2022-09-24 15:17:25 -07:00
usercfg Touchscreen fixes 2022-09-24 19:05:42 -07:00
userdir Rename Go module 2022-09-24 15:17:25 -07:00
wallpaper Rename Go module 2022-09-24 15:17:25 -07:00
wasm Rename Go module 2022-09-24 15:17:25 -07:00
windows Doodad/Actor Runtime Options 2022-10-09 17:41:24 -07:00
cheats.go Wait Modal 2022-09-24 18:39:02 -07:00
commands.go JavaScript Exception Catcher UI 2022-09-24 21:58:01 -07:00
common_menubar.go Rename Go module 2022-09-24 15:17:25 -07:00
config.go Rename Go module 2022-09-24 15:17:25 -07:00
doodle.go JavaScript Exception Catcher UI 2022-09-24 21:58:01 -07:00
editor_scene_debug.go Rename Go module 2022-09-24 15:17:25 -07:00
editor_scene.go Rename Go module 2022-09-24 15:17:25 -07:00
editor_ui_doodad.go Rename Go module 2022-09-24 15:17:25 -07:00
editor_ui_menubar.go Rename Go module 2022-09-24 15:17:25 -07:00
editor_ui_palette.go Rename Go module 2022-09-24 15:17:25 -07:00
editor_ui_popups.go Rename Go module 2022-09-24 15:17:25 -07:00
editor_ui_toolbar.go Rename Go module 2022-09-24 15:17:25 -07:00
editor_ui.go Doodad/Actor Runtime Options 2022-10-09 17:41:24 -07:00
fps.go Rename Go module 2022-09-24 15:17:25 -07:00
guitest_scene.go Rename Go module 2022-09-24 15:17:25 -07:00
main_scene.go Rename Go module 2022-09-24 15:17:25 -07:00
menu_scene.go Rename Go module 2022-09-24 15:17:25 -07:00
play_inventory.go Rename Go module 2022-09-24 15:17:25 -07:00
play_scene_menubar.go Rename Go module 2022-09-24 15:17:25 -07:00
play_scene_touch.go Rename Go module 2022-09-24 15:17:25 -07:00
play_scene.go "Look At Me" for Doodad Scripts 2022-09-24 23:54:51 -07:00
player_physics.go "Look At Me" for Doodad Scripts 2022-09-24 23:54:51 -07:00
scene.go JavaScript Exception Catcher UI 2022-09-24 21:58:01 -07:00
shell.go Rename Go module 2022-09-24 15:17:25 -07:00