KorGE Resources

KorGE uses the Virtual File Systems from Korio to load resources from different sources, and its most basic resources are Bitmaps from KorIM and Sounds from KorAU. But it can also load bitmap fonts, tiled maps, etc.


KorIO offers a resourcesVfs global property that holds a Virtual File System that include the files from src/commonMain/resources in all the targets.


With the injector, or as part of the Scene class, you have access to a ResourcesRoot instance. It is a MoutableVfs, where the resourcesVfs is mounted at /. This allows you to load resources from different sources like a cache folder, or a base URL.


KorGE supports directly or indirectly several kind of resources.


You can read bitmaps with:


All the targets support at least PNG and JPEG bitmap loading.

Sound and Music

You can read sound files with:


All targets support WAV and MP3.