Skip to main content

Graphics

Commands for printing text and drawing on the screen.

GBUFENABLE

  • Arguments: INTEGER

Enable screen double-buffering. In double-buffering mode, drawing happens on an off-screen buffer that then can be flipped using GBUFFLIP onto output. This does not affect screen border or sprites.

If ENABLE% is <> 0, the mode is enabled. If it's = 0, the mode is disabled.

ENABLE%

GBUFFLIP

No arguments

Swap output and drawing buffers when double-buffering mode is enabled.

IMGPUTTILES

  • Arguments: INTEGER, INTEGER, ARRAY OF INTEGER, INTEGER, INTEGER, INTEGER, INTEGER, INTEGER, INTEGER
  • Minimum arguments: 3

Paint a tile map, sourcing the tiles from an Image under IMAGE_HANDLE%. The tiles are TILE_SIZE% by TILE_SIZE%, starting at the top-left corner, numbering starts from 1. MAP_DEFINITION% is an array defining what Tiles to paint. DST_X%, DST_Y%, DST_W%, DST_H% define the target paint rectangle. SRC_X%, SRC_Y% define where the target paint rectangle is located on the Tile Map, if it were an imaginary, large image. If DST_X%, DST_Y% is not provided, the default is 0. If DST_W% and DST_H% is not provided, the default is screen dimentions minus target x,y location.

IMAGE_HANDLE%, TILE_SIZE%, MAP_DEFINITION%(), SRC_X%, SRC_Y%, [DST_X%, DST_Y%, [DST_W%, DST_H%,]]

SPSET

  • Arguments: INTEGER, INTEGER, INTEGER, INTEGER
  • Minimum arguments: 2

Set the image as a sprite.

SPRITE_NO%, IMAGE_HANDLE% [, FRAME_COUNT% [, FRAMES_PER_ROW%]]