Asset Management

This document describes basic asset management in DVN.
Contents
Asset folders
The following folders and files are self-explanatory and used for assets.
data/
backgrounds
fonts
images
resources/
main.json
data/game/
backgrounds
animations
characters
images
music
scripts
views
animations.json
backgrounds.json
characters.json
music.json
Naming conventions
Generally you should avoid spaces and special characters in asset names and instead use _ Example:
"My_Asset"
Instead of
"My Asset"
Performance considerations
DVN loads all visual and non-audio assets upfront to ensure smooth gameplay during runtime.
Caching
Caching behavior is automatic and handled internally. You do not need to manage asset lifetimes or memory recycling manually.
Hot-reloading
Script assets are hot reloaded, but graphical assets are not.
Scripts will reload every time you start a new game, so to hot reload your scripts just go to the main menu and start a new game.