Code: Select all
// C Source File
// Created 3/8/2006; 9:26:11 PM
#include <tigcclib.h>
// define the global constants
#define SPRITE_HEIGHT 8
#define LEFT 0
#define RIGHT 1
// Main Function
void _main(void)
{
// declare the sprite positions
int x1 = 8, y1 = 80;
// keycode variable
int key = 0;
// declare the sprites (8,16,32) pixels wide x 8 pixels tall
unsigned char sprite1[] = {0x18, 0x66, 0x99, 0x66, 0x24, 0xFF, 0x7E, 0x24};
// clear the screen
ClrScr();
// draw the sprites
Sprite8(x1, y1, SPRITE_HEIGHT, sprite1, LCD_MEM, SPRT_XOR);
// wait until the user presses ESC
while ((key = ngetchx()) != KEY_ESC) {
}
}
}
}