doodle/pkg
Noah 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
..
balance WASM Event Queue 2019-06-26 20:33:24 -07:00
branding Add Branding Module for Centralized Game Info 2019-06-23 17:52:48 -07:00
collision Return False: Solid Collision Between Actors 2019-05-28 21:43:30 -07:00
doodads Add Branding Module for Centralized Game Info 2019-06-23 17:52:48 -07:00
enum Code Layout Refactor 2019-04-09 17:35:44 -07:00
filesystem Load Doodads from System Path as well as User Path 2019-05-06 13:35:08 -07:00
level WASM Texture Caching 2019-06-27 12:03:52 -07:00
log Initial Doodad JavaScript System 2019-04-15 23:07:40 -07:00
scripting WASM Texture Caching 2019-06-27 12:03:52 -07:00
shmem WASM Texture Caching 2019-06-27 12:03:52 -07:00
uix Texture Caching for WASM Canvas Engine 2019-06-26 22:44:08 -07:00
userdir Texture Caching for WASM Canvas Engine 2019-06-26 22:44:08 -07:00
wallpaper Initial WebAssembly Build Target 2019-06-26 18:40:40 -07:00
wasm WASM Texture Caching 2019-06-27 12:03:52 -07:00
commands.go Add MenuScene with New Level UI 2019-06-25 15:01:37 -07:00
config.go Shareware Build Flags 2019-04-19 17:23:37 -07:00
doodle.go WASM Texture Caching 2019-06-27 12:03:52 -07:00
editor_scene.go Add Play/Edit Buttons to Toggle Between Modes 2019-06-25 18:36:53 -07:00
editor_scene_debug.go Code Layout Refactor 2019-04-09 17:35:44 -07:00
editor_ui.go Add Play/Edit Buttons to Toggle Between Modes 2019-06-25 18:36:53 -07:00
editor_ui_doodad.go Link Tool UX 2019-06-23 16:15:09 -07:00
editor_ui_palette.go Blueprint Theme Palette 2019-06-25 17:43:23 -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 Initial WebAssembly Build Target 2019-06-26 18:40:40 -07:00
menu_scene.go Add blank white wallpaper 2019-06-25 18:10:57 -07:00
play_scene.go Add Play/Edit Buttons to Toggle Between Modes 2019-06-25 18:36:53 -07:00
scene.go Port over code from old collision dev PR 2019-04-09 19:17:56 -07:00
shell.go Code Layout Refactor 2019-04-09 17:35:44 -07:00