doodle/dev-assets/doodads/azulian
Noah Petherbridge ba6892aa95 WASM Texture Caching
* Refactor texture caching in render.Engine:
  * New interface method: NewTexture(filename string, image.Image)
  * WASM immediately encodes the image to PNG and generates a JavaScript
    `Image()` object to load it with a data URI and keep it in memory.
  * SDL2 saves the bitmap to disk as it did before.
  * WASM: deprecate the sessionStorage for holding image data. Session
    storage methods panic if called. The image data is directly kept in
    Go memory as a js.Value holding an Image().
* Shared Memory workaround: the level.Chunk.ToBitmap() function is where
  chunk textures get cached, but it had no access to the render.Engine
  used in the game. The `pkg/shmem` package holds global pointers to
  common structures like the CurrentRenderEngine as a work-around.
  * Also shmem.Flash() so Doodle can make its d.Flash() function
    globally available, any sub-package can now flash text to the screen
    regardless of source code location.
  * JavaScript API for Doodads now has a global Flash() function
    available.
* WASM: Handle window resize so Doodle can recompute its dimensions
  instead of scaling/shrinking the view.
2019-06-27 12:03:52 -07:00
..
azulian-red.js Mobile Enemy Doodad Test 2019-05-06 16:30:45 -07:00
azulian.js WASM Texture Caching 2019-06-27 12:03:52 -07:00
blu-back.png Add Azulian doodad sprites and build script 2019-05-01 18:27:20 -07:00
blu-front.png Add Azulian doodad sprites and build script 2019-05-01 18:27:20 -07:00
blu-wl1.png Add Azulian doodad sprites and build script 2019-05-01 18:27:20 -07:00
blu-wl2.png Add Azulian doodad sprites and build script 2019-05-01 18:27:20 -07:00
blu-wl3.png Add Azulian doodad sprites and build script 2019-05-01 18:27:20 -07:00
blu-wl4.png Add Azulian doodad sprites and build script 2019-05-01 18:27:20 -07:00
blu-wr1.png Add Azulian doodad sprites and build script 2019-05-01 18:27:20 -07:00
blu-wr2.png Add Azulian doodad sprites and build script 2019-05-01 18:27:20 -07:00
blu-wr3.png Add Azulian doodad sprites and build script 2019-05-01 18:27:20 -07:00
blu-wr4.png Add Azulian doodad sprites and build script 2019-05-01 18:27:20 -07:00
red-back.png Mobile Enemy Doodad Test 2019-05-06 16:30:45 -07:00
red-front.png Mobile Enemy Doodad Test 2019-05-06 16:30:45 -07:00
red-wl1.png Mobile Enemy Doodad Test 2019-05-06 16:30:45 -07:00
red-wl2.png Mobile Enemy Doodad Test 2019-05-06 16:30:45 -07:00
red-wl3.png Mobile Enemy Doodad Test 2019-05-06 16:30:45 -07:00
red-wl4.png Mobile Enemy Doodad Test 2019-05-06 16:30:45 -07:00
red-wr1.png Mobile Enemy Doodad Test 2019-05-06 16:30:45 -07:00
red-wr2.png Mobile Enemy Doodad Test 2019-05-06 16:30:45 -07:00
red-wr3.png Mobile Enemy Doodad Test 2019-05-06 16:30:45 -07:00
red-wr4.png Mobile Enemy Doodad Test 2019-05-06 16:30:45 -07:00