Rendering tiles!

master
sigonasr2 5 months ago
parent ea0e2a0a46
commit 462e4d1295
  1. 3
      EarthboundBattleBackgrounds/EarthboundBattleBackgrounds/main.cpp
  2. BIN
      EarthboundBattleBackgrounds/x64/Debug/EarthboundBattleBackgrounds.exe

@ -353,9 +353,10 @@ public:
Rom::BackgroundPalette&palette{rom.palettes[selectedPalette]}; Rom::BackgroundPalette&palette{rom.palettes[selectedPalette]};
for(uint8_t index=0;Pixel&col:palette.colors){ for(uint8_t index=0;Pixel&col:palette.colors){
FillRectDecal(vf2d{index*8.f,8.f+yOffset+9},{8,8},col); FillRectDecal(vf2d{index*8.f,8.f},{8,8},col);
index++; index++;
} }
DrawRectDecal(vf2d{8.f,8.f},{8*16,8});
for(uint8_t row=0;Rom::BackgroundGraphics&graphics:rom.graphics){ for(uint8_t row=0;Rom::BackgroundGraphics&graphics:rom.graphics){
for(uint8_t col=0;Rom::Tile&tile:graphics.tiles){ for(uint8_t col=0;Rom::Tile&tile:graphics.tiles){

Loading…
Cancel
Save