← EGFX function index

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

NameOrderDescription
BANK8Writable resource bank.
SEED9Scenery seed.
WIDTH/HEIGHT10–11Sprite dimensions.

BASIC example

MODE 1:HIMEM=&2400
PROCeginit
PROCegbegin
PROCegcall(11)
PROCegpresent
END

Assembly example

        JSR init_egfx
        JSR begin_frame
        LDA #11 : JSR eg_call
        JSR present_frame
        RTS

← Function index