1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
int main()
{
int mx, my;
string shape = KB_H;
int color = BLACK;
// int map[S+OS][S+OS];
// int size = 1;
initwindow(S + OS, S + OS, "Map editor by Derek Gann", 0, 0, true);
// create_map(map);
while(true)
{
mx = mousex();
my = mousey();
clearviewport();
setfillstyle(SOLID_FILL, RED);
bar(130, 130, 430, 430);
process_kbhit(shape, color);
track_mouse(shape, color, mx, my);
// process_click(map);
// animate_map(map);
draw_grid();
swapbuffers();
delay(1000/FPS);
}
return EXIT_SUCCESS;
}
|