fixed rendering issues
This commit is contained in:
parent
a2d95fd15c
commit
8e26b01b05
@ -206,14 +206,13 @@ void drawMap() {
|
|||||||
|
|
||||||
void render() {
|
void render() {
|
||||||
clearScreenWithTile(TILE_EMPTY);
|
clearScreenWithTile(TILE_EMPTY);
|
||||||
initTileBuffer(12); // map color
|
|
||||||
uploadTileDataToVRAM(TILE_FILLED);
|
|
||||||
initTileBuffer(0); // background color
|
|
||||||
uploadTileDataToVRAM(TILE_EMPTY);
|
|
||||||
drawMap();
|
drawMap();
|
||||||
VDP_setTextPlane(BG_B);
|
VDP_setTextPlane(BG_B);
|
||||||
VDP_setTextPalette(2);
|
VDP_setTextPalette(2);
|
||||||
VDP_showFPS(0);
|
VDP_showFPS(1);
|
||||||
|
for(int i = 0; i < 50; i++){
|
||||||
|
castRay(10);
|
||||||
|
}
|
||||||
SYS_doVBlankProcess();
|
SYS_doVBlankProcess();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user