littlektframework / littlekt

A multiplatform WebGPU 2D game framework written in Kotlin. Build your own game engine on top.
https://littlekt.com
Apache License 2.0
313 stars 12 forks source link

Add new `Vfs` sub-types: `UrlVfs` & `LocalVfs` #276

Closed LeHaine closed 3 weeks ago

LeHaine commented 3 weeks ago

Context now has three Vfs types:

  1. resourcesVfs for loading from the resources directory. This handles loading from fat JARs fine now (fixes #275)
  2. urlVfs for loading directly from a URL or data URL.
  3. applicationVfs for loading files at the root of the application working directory.