doodle/assets/pattern
Noah d4e6d9babb Loading Screen
* pkg/loadscreen implements a global Loading Screen for loading heavy
  levels for playing or editing.
* All chunks in a level are pre-rendered to bitmap before gameplay
  begins, which reduces stutter as chunks were being lazily rendered on
  first appearance before.
* The loading screen can be played with in the developer console:
  $ loadscreen.Show()
  $ loadscreen.Hide()
  Along with ShowWithProgress(), SetProgress(float64) and IsActive()
* Chunker: separate the concerns between Bitmaps an (SDL2) Textures.
* Chunker.Prerender() converts a chunk to a bitmap (a Go image.Image)
  and caches it, only re-rendering if marked as dirty.
* Chunker.Texture() will use the pre-cached bitmap if available to
  immediately produce the SDL2 texture.

Other miscellaneous changes:

* Added to the Colored Pencil palette: Sandstone
* Added "perlin noise" brush pattern

Note: this commit introduces instability and crashes:

* New `asyncSetup()` functions run on a goroutine, but SDL2 texture
  calls must run on the main thread.
* Chunker avoids this by caching bitmaps, not textures.
* Wallpaper though is unstable, sometimes works, sometimes has graphical
  glitches, sometimes crashes the game.
* Wallpaper.Load() and the *Texture() functions are where it crashes.
2021-07-18 21:19:52 -07:00
..
bars.png Brush Pattern Textures 2021-06-09 22:36:32 -07:00
circles.png Brush Pattern Textures 2021-06-09 22:36:32 -07:00
dashed.png Brush Pattern Textures 2021-06-09 22:36:32 -07:00
grid.png Brush Pattern Textures 2021-06-09 22:36:32 -07:00
ink.png Brighten Patterns + Update Default Palettes 2021-06-20 10:42:51 -07:00
marker.png Brighten Patterns + Update Default Palettes 2021-06-20 10:42:51 -07:00
noise.png Brighten Patterns + Update Default Palettes 2021-06-20 10:42:51 -07:00
perlin-noise.png Loading Screen 2021-07-18 21:19:52 -07:00