Implemented GameData::Metadata and GameData::MapMetadata

This commit is contained in:
Maruno17
2020-11-15 18:59:07 +00:00
parent d8476d1fa4
commit 52ffae9e8a
45 changed files with 803 additions and 540 deletions

View File

@@ -318,7 +318,7 @@ class Game_Map
def display_x=(value)
@display_x = value
if pbGetMetadata(self.map_id,MapMetadata::SNAP_EDGES)
if GameData::MapMetadata.get(self.map_id).snap_edges
max_x = (self.width - Graphics.width*1.0/TILE_WIDTH) * REAL_RES_X
@display_x = [0, [@display_x, max_x].min].max
end
@@ -327,7 +327,7 @@ class Game_Map
def display_y=(value)
@display_y = value
if pbGetMetadata(self.map_id,MapMetadata::SNAP_EDGES)
if GameData::MapMetadata.get(self.map_id).snap_edges
max_y = (self.height - Graphics.height*1.0/TILE_HEIGHT) * REAL_RES_Y
@display_y = [0, [@display_y, max_y].min].max
end