Assets
Formats, loading and progress, art made in code, size and memory budgets.
- Formats: glTF and GLB (Draco or Meshopt meshes, KTX2 textures inside), PNG and WebP, Opus and MP3, Tiled and LDtk maps, JSON, WebAssembly, WGSL.
Preload per scene with
assets.add(name, { type, url })andawait assets.load(...); show progress on the title. - Art of the game's own. Draw or generate it for the art direction: procedural geometry (
Mesh.*),Shape2D, gradient and pattern textures, noise, pictures and models made for this game, and the synthesized sound effects (no files, they load at once). A well-made flat style beats borrowed art. The engine's library (Library.model('tree.pine'), thelibrarytopic,search_assets) is for blockouts and accents. - Keep the first screen under 3 seconds on a phone: the title draws first, with the heavy assets loading behind it. Total under the platform's 100 MB; keep a 3D game under about 500 MB of memory.
- Other games' characters, logos and platform buttons are never fair game; look at the result at 128 px wide.