How ot display a Tilemap in Game Boy

237 views Asked by At

I am trying to display this image with Game Boy Developer Kit and i don't see it displayed when i run the emulator

enter image description here

The code i use is this one

void displayDodge(){
int nbTiles = (160 * 144) / 8;
int i,j;
SPRITES_8x8;
j = 0;
set_sprite_data(0, nbTiles, gbpic_dat);
    for (i=0; i+=8; i<=nbTiles){
        set_sprite_tile(j, j);
        move_sprite(j, i, 75);
        j++;
    };
SHOW_SPRITES;
}

I've created a gist for the same project here

0

There are 0 answers