20220628 - Scrolling en cours de développement.

This commit is contained in:
mibi88 2022-06-28 22:11:33 +02:00
parent e1688320d3
commit 4bd0c4095b
1 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,6 @@ void mappartdisplaying(int x, int y, unsigned short int * terrain) {
case 3:
dimage(px, py, &coal_tile); break;
}
dupdate();
px += 8;
}
py += 8;
@ -50,7 +49,7 @@ int main(void) {
dimage(16, TITLE_IMAGE_MARGIN, &title_img);
dtext(1, TITLE_MARGIN, C_BLACK, TITLE_START);
dupdate();
int key = 0, game = 0, selected = 0, i, x, y;
int key = 0, game = 0, selected = 0, i, x = 0, y = 0;
unsigned short terrain[WORLD_WIDTH*WORLD_HEIGHT];
while(key != KEY_EXIT){
key=getkey().key;
@ -108,6 +107,7 @@ int main(void) {
}
// dtext(1, 1, C_BLACK, "test");
mappartdisplaying(x, y, terrain);
dupdate();
}
}
return 1;