doodle/assets/sprites
Noah Petherbridge 77297fd60d Text Tool and Pan Tool
Two new tools added to the Level Editor:

* Pan Tool: left-click to scroll the level around safely.
* Text Tool: write text onto your level.

Features of the Text Tool:

* Can choose from the game's built-in fonts, size and enter the message
  you want to write.
* The mouse cursor previews the text when hovered over the level.
* Click to "stamp" the text onto your level. The currently selected
  color swatch will be used to color the text in.
* Adds two new fonts: Azulian.ttf and Rive.ttf that can be selected in
  the Text Tool.

Some implementation notes:

* Added package native/engine_sdl.go that handles the lower-level
  SDL2_TTF logic to rasterize the text into a black&white image.
* WASM not supported yet (if the game even still built for WASM);
  native/engine_wasm.go stubs out the TextToImage() call with a "not
  supported" error just in case.

Other changes:

* New Toolbar icons: they are 24x24 instead of 32x32 to make more room
  for more tools.
* The toolbar now shows two buttons per row for a more densely packed
  layout. For very narrow screen widths (< 600px) the default Vertical
  Toolbar layout will use one-button-per-row to not eat too much screen
  real estate.
* In the Horizontal Toolbars layout there are 2 buttons per column.
2022-03-05 15:34:20 -08:00
..
actor-tool.png Text Tool and Pan Tool 2022-03-05 15:34:20 -08:00
ellipse-tool.png Text Tool and Pan Tool 2022-03-05 15:34:20 -08:00
eraser-tool.png Text Tool and Pan Tool 2022-03-05 15:34:20 -08:00
gold.png Savegame and High Scores 2022-01-02 16:28:43 -08:00
line-tool.png Text Tool and Pan Tool 2022-03-05 15:34:20 -08:00
link-tool.png Text Tool and Pan Tool 2022-03-05 15:34:20 -08:00
new-button.png Add Tool Bar to Editor Mode 2019-07-03 20:24:04 -07:00
padlock.png Savegame and High Scores 2022-01-02 16:28:43 -08:00
pan-tool.png Text Tool and Pan Tool 2022-03-05 15:34:20 -08:00
pencil-tool.png Text Tool and Pan Tool 2022-03-05 15:34:20 -08:00
pointer.png Game Controller Support 2022-02-19 18:31:22 -08:00
rect-tool.png Text Tool and Pan Tool 2022-03-05 15:34:20 -08:00
silver.png Savegame and High Scores 2022-01-02 16:28:43 -08:00
text-tool.png Text Tool and Pan Tool 2022-03-05 15:34:20 -08:00