cscg22-gearboy

CSCG 2022 Challenge 'Gearboy'
git clone https://git.sinitax.com/sinitax/cscg22-gearboy
Log | Files | Refs | sfeed.txt

main.c (539B)


      1#include <gb/gb.h>
      2#include <stdint.h>
      3#include "../res/dungeon_map.h"
      4#include "../res/dungeon_tiles.h"
      5
      6
      7void init_gfx() {
      8    // Load Background tiles and then map
      9    set_bkg_data(0, 79u, dungeon_tiles);
     10    set_bkg_tiles(0, 0, 32u, 32u, dungeon_mapPLN0);
     11
     12	// Turn the background map on to make it visible
     13    SHOW_BKG;
     14}
     15
     16
     17void main(void)
     18{
     19	init_gfx();
     20
     21    // Loop forever
     22    while(1) {
     23
     24
     25		// Game main loop processing goes here
     26
     27
     28		// Done processing, yield CPU and wait for start of next frame
     29        wait_vbl_done();
     30    }
     31}