v6.0.17 – World Scrolling Commands
This update adds a new high-level world system for creating scrolling maps, RPGs, adventure games, and Zelda/Pokémon-style scenes.
New commands:
W = LOADWORLD("world.png", "world_colormap.png")
SHOWWORLD W, XW, YW
HIT = CALLWORLD(W, X, Y, XW, YW)
ADDSPRITE W, SPRITEID, COLORCODE
LOADWORLD works like the GUI system: it loads a visible world image and a color-coded logic map. The colormap is converted at build time, so the original overlay image does not need to be stored in ROM.
SHOWWORLD draws a 320×200 scrolling viewport from the world image. If the camera reaches the edge of the map, the outside area is automatically drawn black.
CALLWORLD returns the color code at a screen/world position, making it useful for walls, doors, triggers, water, NPC zones, and other interaction areas.
ADDSPRITE connects sprites with world color codes, opening the door for simple collision and object interaction systems.
This keeps the BASIC code very small while allowing much larger scrolling game worlds.
