git.y1.nz

gbdk-2020

GameBoy Development Kit
download: https://git.y1.nz/archives/gbdk.tar.gz
README | Files | Log | Refs | LICENSE

gbdk-lib/examples/gb/template_minimal/main.c

      1 #include <gb/gb.h>
      2 #include <stdint.h>
      3 
      4 
      5 void main(void)
      6 {
      7     // Loop forever
      8     while(1) {
      9 
     10 
     11 		// Game main loop processing goes here
     12 
     13 
     14 		// Done processing, yield CPU and wait for start of next frame
     15         vsync();
     16     }
     17 }

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.