Main sections
ENDPOLY
ENDPOLY
ENDPOLY closes a STARTPOLY block.
There have to be at least 3 POLYVECTOR calls in-between STARTPOLY and ENDPOLY otherwise no area has been specified and nothing will be seen.
Between STARTPOLY and ENDPOLY no calls to DRAWSPRITE or PRINT functions are allowed. If you use DRAWSPRITE or print functions, non expected results or system crashes may occur!
Sample:
// POLYSPRITES
LOADSPRITE "Block.bmp", 0 // 64x64 Bitmap
LOADBMP "Test.bmp"
STARTPOLY 0 // Bitmap = No.0
POLYVECTOR 0, 0, 0, 0, RGB(255, 255, 255)
POLYVECTOR 0, 300, 0, 64, RGB (255, 255, 255)
POLYVECTOR 300, 300, 64, 64, RGB(255, 255, 255)
POLYVECTOR 250, 50, 64, 0, RGB( 0, 255, 0)
ENDPOLY
SHOWSCREEN
MOUSEWAIT