Назад
· 1 мин. четене
A pack in pieces
A web export can start its game before every asset has arrived: the scenes `[export] later` names come in a second file the page fetches while the game runs.
- Dragos Balaur
A web export can start its game before every asset has arrived. The scenes [export] later names have their assets in a second file, which the page fetches while the game runs.

[export]
later = ["scenes/level*.toml"]
- The assets only those scenes name go to
game.bpak.tail, besidegame.bpak. An asset any other scene or a script names stays ingame.bpak. game.bpaklists the tail and those scenes in.balaur/tail.toml. The page boots on it and fetches the tail behind the first frame.- A switch to one of those scenes waits until the tail has arrived, then goes ahead at the end of that tick.
- A test game whose second scene draws one picture exported to a 59 KB
game.bpakand a 17 KB tail, and drew the picture once the tail had come. balaur play game.bpakreads a tail beside it before the first frame.- A desktop or a phone export stays one file.