Overworld map tile pointer business, very serious

This commit is contained in:
Justin Scofield
2022-07-19 21:47:04 -04:00
parent b0c79a42c5
commit f3b090c89f
7 changed files with 113 additions and 140 deletions

View File

@@ -7,9 +7,8 @@ namespace yaze {
namespace app {
namespace zelda3 {
void Overworld::Load(ROM &rom) {
void Overworld::Load(ROM &rom, uchar *ow_blockset, uchar *current_gfx) {
rom_ = rom;
//mapblockset16.Create(128, 8192, 8, 1048576);
AssembleMap32Tiles();
AssembleMap16Tiles();
@@ -24,7 +23,8 @@ void Overworld::Load(ROM &rom) {
auto size = tiles16.size();
for (int i = 0; i < core::NumberOfOWMaps; i++) {
overworld_maps_[i].BuildMap(size, game_state_, map_parent_, map_tiles_);
overworld_maps_[i].BuildMap(size, game_state_, map_parent_, ow_blockset,
current_gfx, map_tiles_);
}
is_loaded_ = true;