game/src/main.c

19 lines
424 B
C
Raw Normal View History

#include <tonc.h>
int main(void) {
// wait for vsync (necessary for this? probably not, but good practice)
vid_vsync();
// bitmap mode 3, enable bg2 (bitmap layer)
REG_DISPCNT = DCNT_MODE3 | DCNT_BG2;
// plot rgb points
m3_plot(119, 80, RGB15(31, 0, 0)); // Red
m3_plot(120, 80, RGB15(0, 31, 0)); // Green
m3_plot(121, 80, RGB15(0, 0, 31)); // Blue
while (1); // loop so you don't get nasal demons
return 0;