doodle/level
Noah Petherbridge 6713dd7bfc Play: Autoscrolling and Bounded Level Support
Implement scrolling behavior in Play Mode by allowing the Canvas to
follow a specific actor and keep it in view. The Canvas has a
FollowActor property which holds an ID of the actor to follow (if blank,
no actor is being followed).

In Play Mode the Player is followed and when they get too close to the
left or right edges of the screen, the level will scroll to try and
catch them. If the player is moving very fast they can outrun the
camera.

The bounded levels are enforced in Play Mode and the camera won't scroll
to view pixels out-of-bounds and the Doodad actors inside the level
aren't allowed to exit its boundaries. This is global, not only for the
Player doodad but any Doodad that came with the level as well.

Other changes:

- Restructured Canvas widget code into many new files. The Canvas widget
  is shaping up to be where most of the magic happens, which is okay
  because it's close to the action and pulling the strings from outside
  would be harder, even tho as a UI element you think it should be
  lightweight.
- Debug Overlay: added room for Scenes to insert their own custom Debug
  Overlay key/value pairs (the values are string pointers so the Scene
  can update them freely):
  - The core labels are FPS, Scene and Mouse. The Pixel (world
    coordinate under cursor) is removed from the core labels.
  - Edit Scene provides Pixel, Tool and Swatch
  - Play Scene provides Pixel, Player, Viewport, Scroll
2018-10-28 17:52:45 -07:00
..
actors.go Introduce Drawing Tools Concept, Pencil and Actor 2018-10-20 17:08:20 -07:00
base_test.go WIP Finishing Up Texture Caching System 2018-10-17 23:01:21 -07:00
chunk_map.go Implement Chunk System for Pixel Data 2018-09-23 15:42:05 -07:00
chunk_test.go Implement Chunk System for Pixel Data 2018-09-23 15:42:05 -07:00
chunk.go Drag Doodads Onto Levels in Edit Mode 2018-10-20 16:03:59 -07:00
chunker_test.go WIP Texture Caching 2018-10-17 20:52:44 -07:00
chunker.go WIP Finishing Up Texture Caching System 2018-10-17 23:01:21 -07:00
filesystem.go Draw Actors Embedded in Levels in Edit Mode 2018-10-19 13:32:25 -07:00
json.go Wallpapers and Bounded Levels 2018-10-27 22:35:06 -07:00
log.go Abstract Drawing Canvas into Reusable Widget 2018-08-16 20:37:19 -07:00
page_type.go Play: Autoscrolling and Bounded Level Support 2018-10-28 17:52:45 -07:00
palette.go Implement Chunk System for Pixel Data 2018-09-23 15:42:05 -07:00
swatch.go Implement Chunk System for Pixel Data 2018-09-23 15:42:05 -07:00
types.go Wallpapers and Bounded Levels 2018-10-27 22:35:06 -07:00