asset
(
string
full_asset_name
)
->
(
am.asset
)
general:cursor
If this asset is not found then the
data/assets/general.lua
file is loaded then the definition is looked for again.
asset
(
am.asset
asset
)
->
(
am.gfx_engine
)
filename:assetname
This filename should be relative to the
data/assets/
folder. If no filename is given then the current file being loaded will be used. The files under
data/assets/
will be automatically loaded when an asset with their filename is used. Assets can also be registered from outside of those files, however they will need to always provide a filename. Assets can be overridden.