housekeeping
This commit is contained in:
@@ -66,7 +66,7 @@ void ScreenEditor::DrawInventoryMenuEditor() {
|
|||||||
static bool create = false;
|
static bool create = false;
|
||||||
if (!create && rom_.isLoaded()) {
|
if (!create && rom_.isLoaded()) {
|
||||||
inventory_.Create();
|
inventory_.Create();
|
||||||
palette_ =inventory_.Palette();
|
palette_ = inventory_.Palette();
|
||||||
create = true;
|
create = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
namespace yaze {
|
namespace yaze {
|
||||||
namespace app {
|
namespace app {
|
||||||
namespace zelda3 {
|
namespace zelda3 {
|
||||||
|
|
||||||
void Inventory::Create() {
|
void Inventory::Create() {
|
||||||
data_.reserve(256 * 256);
|
data_.reserve(256 * 256);
|
||||||
for (int i = 0; i < 256 * 256; i++) {
|
for (int i = 0; i < 256 * 256; i++) {
|
||||||
@@ -74,7 +74,7 @@ absl::Status Inventory::BuildTileset() {
|
|||||||
for (int i = 0; i < 0x4000; i++) {
|
for (int i = 0; i < 0x4000; i++) {
|
||||||
test_.push_back(tilesheets_[i]);
|
test_.push_back(tilesheets_[i]);
|
||||||
}
|
}
|
||||||
for (int i = 0x8000; i < + 0x8000 + 0x2000; i++) {
|
for (int i = 0x8000; i < +0x8000 + 0x2000; i++) {
|
||||||
test_.push_back(tilesheets_[i]);
|
test_.push_back(tilesheets_[i]);
|
||||||
}
|
}
|
||||||
tilesheets_bmp_.Create(128, 0x130, 64, test_);
|
tilesheets_bmp_.Create(128, 0x130, 64, test_);
|
||||||
|
|||||||
Reference in New Issue
Block a user