Apply sprite pal to sprites, add mutable_exits
This commit is contained in:
@@ -249,8 +249,14 @@ absl::Status ROM::LoadAllGraphicsData() {
|
|||||||
graphics_manager_.LoadBitmap(i, converted_sheet, core::kTilesheetWidth,
|
graphics_manager_.LoadBitmap(i, converted_sheet, core::kTilesheetWidth,
|
||||||
core::kTilesheetHeight,
|
core::kTilesheetHeight,
|
||||||
core::kTilesheetDepth);
|
core::kTilesheetDepth);
|
||||||
graphics_manager_[i]->ApplyPaletteWithTransparent(
|
if (i > 115) {
|
||||||
palette_groups_["dungeon_main"][0], 0);
|
// Apply sprites palette
|
||||||
|
graphics_manager_[i]->ApplyPaletteWithTransparent(
|
||||||
|
palette_groups_["global_sprites"][0], 0);
|
||||||
|
} else {
|
||||||
|
graphics_manager_[i]->ApplyPaletteWithTransparent(
|
||||||
|
palette_groups_["dungeon_main"][0], 0);
|
||||||
|
}
|
||||||
graphics_manager_[i]->CreateTexture(renderer_);
|
graphics_manager_[i]->CreateTexture(renderer_);
|
||||||
}
|
}
|
||||||
graphics_bin_[i] =
|
graphics_bin_[i] =
|
||||||
|
|||||||
@@ -354,6 +354,7 @@ class Overworld : public SharedROM, public core::ExperimentFlags {
|
|||||||
|
|
||||||
auto overworld_map(int i) const { return overworld_maps_[i]; }
|
auto overworld_map(int i) const { return overworld_maps_[i]; }
|
||||||
auto mutable_overworld_map(int i) { return &overworld_maps_[i]; }
|
auto mutable_overworld_map(int i) { return &overworld_maps_[i]; }
|
||||||
|
auto mutable_exits() { return &all_exits_; }
|
||||||
|
|
||||||
auto Sprites(int state) const { return all_sprites_[state]; }
|
auto Sprites(int state) const { return all_sprites_[state]; }
|
||||||
auto AreaGraphics() const {
|
auto AreaGraphics() const {
|
||||||
|
|||||||
Reference in New Issue
Block a user