gba-trycatch

view src/game.c @ 5:850be43b3135

sdl version
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 16 Jun 2014 22:01:45 +0300
parents
children 73b5f2e5d18a
line source
1 #include "game.h"
2 #include "gbasys.h"
3 #include "polyfill.h"
5 #define X16INT(x) ((x) << 16)
7 static const pvec3 poly[] = {
8 {X16INT(80), X16INT(10), 0},
9 {X16INT(140), X16INT(100), 0},
10 {X16INT(40), X16INT(800), 0}
11 };
13 void game_draw(void)
14 {
15 clear_buffer(back_buffer, 0);
17 draw_poly(3, poly, 0xffff);
19 flip();
20 }
22 void game_keyb(int key, int pressed)
23 {
24 }