doodle/pkg
Noah cc1e441232 Eraser Tool, Brush Sizes
* Implement Brush Sizes for drawtool.Stroke and add a UI to the tools panel
  to control the brush size.
  * Brush sizes: 1, 2, 4, 8, 16, 24, 32, 48, 64
* Add the Eraser Tool to editor mode. It uses a default brush size of 16
  and a max size of 32 due to some performance issues.
* The Undo/Redo system now remembers the original color of pixels when
  you change them, so that Undo will set them back how they were instead
  of deleting the pixel entirely. Due to performance issues, this only
  happens when your Brush Size is 0 (drawing single-pixel shapes).
* UI: Add an IntVariable option to ui.Label to bind showing the value of
  an int reference.

Aforementioned performance issues:

* When we try to remember whole rects of pixels for drawing thick
  shapes, it requires a ton of scanning for each step of the shape. Even
  de-duplicating pixel checks, tons of extra reads are constantly
  checked.
* The Eraser is the only tool that absolutely needs to be able to
  remember wiped pixels AND have large brush sizes. The performance
  sucks and lags a bit if you erase a lot all at once, but it's a
  trade-off for now.
* So pixels aren't remembered when drawing lines in your level with
  thick brushes, so the Undo action will simply delete your pixels and not
  reset them. Only the Eraser can bring back pixels.
2019-07-11 19:07:46 -07:00
..
balance Eraser Tool, Brush Sizes 2019-07-11 19:07:46 -07:00
branding Minor Build Script Updates, Mac OS Support 2019-07-08 18:16:45 -07:00
collision Add Switches, Fire/Water Collision and Play Menu 2019-07-06 18:30:03 -07:00
doodads Update Doodad build-scripts to tag extra data 2019-07-06 23:50:38 -07:00
drawtool Eraser Tool, Brush Sizes 2019-07-11 19:07:46 -07:00
enum Code Layout Refactor 2019-04-09 17:35:44 -07:00
filesystem Make Fire Deadly 2019-07-06 20:31:50 -07:00
level Eraser Tool, Brush Sizes 2019-07-11 19:07:46 -07:00
log Makefile Love and Windows Bugfixes 2019-06-27 20:24:13 -07:00
scripting Draw Lines Visualizing Doodad Links in Edit Mode 2019-07-03 16:51:23 -07:00
shmem Eraser Tool, Brush Sizes 2019-07-11 19:07:46 -07:00
sprites Add Tool Bar to Editor Mode 2019-07-03 20:24:04 -07:00
uix Eraser Tool, Brush Sizes 2019-07-11 19:07:46 -07:00
userdir Makefile Love and Windows Bugfixes 2019-06-27 20:24:13 -07:00
wallpaper Demo Running Level as Title Screen Wallpaper 2019-06-27 22:59:36 -07:00
wasm WASM: Store User Files in localStorage 2019-06-27 15:59:18 -07:00
commands.go Doodad CLI Tool Features; Write Lock and Hidden 2019-07-06 23:28:11 -07:00
config.go WASM: Store User Files in localStorage 2019-06-27 15:59:18 -07:00
doodle.go Eraser Tool, Brush Sizes 2019-07-11 19:07:46 -07:00
editor_scene.go Eraser Tool, Brush Sizes 2019-07-11 19:07:46 -07:00
editor_scene_debug.go Code Layout Refactor 2019-04-09 17:35:44 -07:00
editor_ui.go Doodad CLI Tool Features; Write Lock and Hidden 2019-07-06 23:28:11 -07:00
editor_ui_doodad.go Eraser Tool, Brush Sizes 2019-07-11 19:07:46 -07:00
editor_ui_palette.go Add More Trapdoor Doodads 2019-07-05 15:02:22 -07:00
editor_ui_toolbar.go Eraser Tool, Brush Sizes 2019-07-11 19:07:46 -07:00
fps.go Add MenuScene with New Level UI 2019-06-25 15:01:37 -07:00
guitest_scene.go Add Branding Module for Centralized Game Info 2019-06-23 17:52:48 -07:00
main_scene.go Make Fire Deadly 2019-07-06 20:31:50 -07:00
menu_scene.go Add Switches, Fire/Water Collision and Play Menu 2019-07-06 18:30:03 -07:00
play_scene.go Update Doodad build-scripts to tag extra data 2019-07-06 23:50:38 -07:00
scene.go Port over code from old collision dev PR 2019-04-09 19:17:56 -07:00
shell.go Centralized Tick Counter, Fix Actor Dragging Bug 2019-07-05 16:04:36 -07:00