EGFX · FUNCTION 11ALPHA · USE AT YOUR OWN RISK
WORLD_INIT
Initialise a world.
Sets the resource bank, scenery seed and sprite dimensions for the world compositor.
Parameters
| Name | Order | Description |
|---|---|---|
BANK | 8 | Writable resource bank. |
SEED | 9 | Scenery seed. |
WIDTH/HEIGHT | 10–11 | Sprite dimensions. |
BASIC example
MODE 1:HIMEM=&2400
PROCeginit
PROCegbegin
PROCegcall(11)
PROCegpresent
ENDAssembly example
JSR init_egfx
JSR begin_frame
LDA #11 : JSR eg_call
JSR present_frame
RTS