Click here to open the full guide.
// screen
void setimagesize(fixed size);
void setclip(int x, int y, int width, int height);@clp
void gotoxy(int x, int y);
void scroll(int dir);@srl
void delayredraw();@ddw
void clearscreen();@cls
void setframerate(int fps);
// image
void putimage(int address, int x, int y, int w, int h);@pim
void putimage1bit(int address, int x, int y, int w, int h);@pib
void putimagerle(int address, int x, int y, int w, int h);@pir
// color & palette
void setpalette(int n, int r5g6b5);@pal
void setcolor(int color);@col
void setbgcolor(int color);@bcl
// sprite
int spritegetvalue(int n, int type);
void spritesetvalue(int n, int type, int value);
int angbetweenspr(int n1, int n2);
void getsprite(int n, int address);
void putsprite(int n, int x, int y);
void spritespeed(int n, int speed, int direction);
void spritesize(int n, float size);
int getspriteinxy(int x, int y);
/*type is
S_X, S_Y, S_SPEEDX, S_SPEEDY, S_WIDTH, S_HEIGHT, S_IS_ONEBIT,
S_ANGLE, S_LIVES, S_COLLISION, S_SOLID, S_GRAVITY, S_ON_COLLISION,
S_ON_EXIT_SCREEN, S_IS_SCROLLED, S_FLIP_HORIZONTAL, S_ZINDEX, S_COLOR */
// geometry
void putpixel(int x, int y);@pix
int getpixel(int x, int y);@gpx
void line(int x, int y, int x1, int y1);
void rect(int x, int y, int x1, int y1);
void fillrect(int x, int y, int x1, int y1);@frc
void triangle(int x, int y, int x1, int y1, int x2, int y2);@trn
void filltriangle(int x, int y, int x1, int y1, int x2, int y2);@ftr
void circle(int x, int y, int radius);@cir
void fillcircle(int x, int y, int radius);@fcr
// text
char putchar(char c);
int puts(char[] message);
int putn(int number);
int printf(char[] formatString, arg-list...);
int getchar();
void drawchar(char c, int x, int y);@chr
void drawstring(char[] message, int x, int y);@str
void loadfont(char[] font, int startchar, int endchar);@fnt
void setfontsize(int imagewidth, int imageheight, int charwidth, int charheight);@fsz
// tile map
void loadtile(int adress, int imgwidth, int imgheight, int width, int height);
void setcollisionmap(int adress);
void drawtile(int x, int y);
int gettileinxy(int x, int y);
// particles
void setparticle(int gravity, int count, int time);@prt
void setemitter(int time, int dir, int dir1, int speed);@emt
void emittersize(int width, int height, int size);@ems
void drawparticle(int x, int y, int color);@dpr
// input
int getkey();@key
/*key is KEY_UP, KEY_LEFT, KEY_DOWN, KEY_RIGHT,
KEY_A, KEY_B, KEY_SELECT, KEY_START */
// time
void settimer(int n, int time);@stm
int gettimer(int n);@gtm
/* n: 0 - 7 */
// data
int savedata(int name, int array, int count);
int loaddata(int name, int array);
// sounds & music
void tone(int freq, int delay);
void loadrtttl(int address, int isLoop);
void playrtttl();
void pausertttl();
void stoprtttl();
// mathematics
fixed sin(int angle);
fixed cos(int angle);
int distance(int x1, int y1, int x2, int y2);
// memory
*int malloc(int size);
void free(*int array);
void memcpy(*int array1, *int array2, int size);
void unpuckrle(*int array1, *int array2, int size);
void unpucklz(*int array1, *int array2, int size);
// connections
int serialbegin();
int serialavailable();
int serialread();
int serialwrite(char c);