doodle/pkg/drawtool
Noah Petherbridge c8620f871e Drawing Strokes and Undo/Redo Functionality
* Add new pkg/drawtool with utilities to abstract away drawing actions
  into Strokes and track undo/redo History for them.
* The freehand Pencil tool in EditorMode has been refactored to create a
  Stroke of Shape=Freehand and queue up its world pixels there instead
  of directly modifying the level chunker in real time. When the mouse
  button is released, the freehand Stroke is committed to the level
  chunker and added to the UndoHistory.
* UndoHistory is (temporarily) stored with the level.Level so it can
  survive trips to PlayScene and back, but is not stored as JSON on
  disk.
* Ctrl-Z and Ctrl-Y in EditorMode for undo and redo, respectively.
2019-07-03 16:25:23 -07:00
..
history_test.go Drawing Strokes and Undo/Redo Functionality 2019-07-03 16:25:23 -07:00
history.go Drawing Strokes and Undo/Redo Functionality 2019-07-03 16:25:23 -07:00
shapes.go Drawing Strokes and Undo/Redo Functionality 2019-07-03 16:25:23 -07:00
stroke.go Drawing Strokes and Undo/Redo Functionality 2019-07-03 16:25:23 -07:00