doodle/pkg/level
Noah Petherbridge 8965a7d86a Doodads: Crumbly Floor, Start Flag & State Blocks
Add new doodads:

* Start Flag: place this in a level to set the spawn point of the player
  character. If no flag is found, the player spawns at 0,0 in the top
  corner of the map. Only use one Start Flag per level, otherwise the
  player will randomly spawn at one of them.
* Crumbly Floor: a solid floor that begins to shake and then fall apart
  after a moment when a mobile character steps on it. The floor respawns
  after 5 seconds.
* State Blocks: blue and orange blocks that toggle between solid and
  pass-thru whenever a State Button is activated.
* State Button: a solid "ON/OFF" block that toggles State Blocks back
  and forth when touched. Only activates if touched on the side or bottom;
  acts as a solid floor when walked on from the top.

New features for doodad scripts:

* Actor scripts: call SetMobile(true) to mark an actor as a mobile mob
  (i.e. player character or enemy). Other doodads can check if the actor
  colliding with them IsMobile so they don't activate if placed too close
  to other (non-mobile) doodads in a level. The Blue and Red Azulians
  are the only mobile characters so far.
* Message.Broadcast allows sending a pub/sub message out to ALL doodads
  in the level, instead of only to linked doodads as Message.Publish does.
  This is used for the State Blocks to globally communicate on/off status
  without needing to link them all together manually.
2019-12-30 18:13:28 -08:00
..
actors.go Cut lib/render into its own package, change all imports 2019-12-22 18:21:58 -08:00
chunk_map.go Cut lib/render into its own package, change all imports 2019-12-22 18:21:58 -08:00
chunk_test.go Doodads: Crumbly Floor, Start Flag & State Blocks 2019-12-30 18:13:28 -08:00
chunk.go Change types int32 -> int per upstream render and ui library 2019-12-27 19:16:34 -08:00
chunker_test.go Change types int32 -> int per upstream render and ui library 2019-12-27 19:16:34 -08:00
chunker.go Change types int32 -> int per upstream render and ui library 2019-12-27 19:16:34 -08:00
filesystem.go Code Layout Refactor 2019-04-09 17:35:44 -07:00
fmt_binary.go Load Doodads from System Path as well as User Path 2019-05-06 13:35:08 -07:00
fmt_json.go Drawing Strokes and Undo/Redo Functionality 2019-07-03 16:25:23 -07:00
fmt_maintenance.go Auto-prune Empty Chunks in Level Files 2019-07-16 22:10:18 -07:00
fmt_readwrite.go Auto-prune Empty Chunks in Level Files 2019-07-16 22:10:18 -07:00
page_type.go Add MenuScene with New Level UI 2019-06-25 15:01:37 -07:00
palette.go Cut lib/render into its own package, change all imports 2019-12-22 18:21:58 -08:00
swatch.go Cut lib/render into its own package, change all imports 2019-12-22 18:21:58 -08:00
types.go Change types int32 -> int per upstream render and ui library 2019-12-27 19:16:34 -08:00