LogoPixi’VN

Assets

Describes how to define, initialize and load assets in Pixi’VN (ink), including asset matrix setup, ink load/lazyload commands, manifest examples, and asset aliases.

As explained in more detail here, initialize the asset matrix at project start and decide when assets should be loaded.

In ink you have less control than in JavaScript/TypeScript over how and when to load assets. Pixi’VN provides a single ink command that loads assets before a label starts. Use the following syntax:

To load the assets or bundle with await, use the load operation:

# load assets eggHead flowerTop

To load the assets or bundle in the background, use the lazyload operation:

# lazyload bundle main_menu

For example:

=== start ===
# lazyload bundle main_menu start
# load assets eggHead flowerTop my_video
# show image eggHead
# show image flowerTop
# show video my_video
# pause
-> start