Removed alternate map rendering code

This commit is contained in:
Maruno17
2021-05-19 20:25:51 +01:00
parent 42b7988089
commit e7d116780f
12 changed files with 51 additions and 575 deletions

View File

@@ -114,18 +114,9 @@ class Spriteset_Map
tmoy = (@map.display_y/Game_Map::Y_SUBPIXELS).round
@tilemap.ox = tmox
@tilemap.oy = tmoy
if $PokemonSystem.tilemap==0 # Original Map View only, to prevent wrapping
@@viewport1.rect.x = [-tmox,0].max
@@viewport1.rect.y = [-tmoy,0].max
@@viewport1.rect.width = [@tilemap.map_data.xsize*Game_Map::TILE_WIDTH-tmox,Graphics.width].min
@@viewport1.rect.height = [@tilemap.map_data.ysize*Game_Map::TILE_HEIGHT-tmoy,Graphics.height].min
@@viewport1.ox = [-tmox,0].max
@@viewport1.oy = [-tmoy,0].max
else
@@viewport1.rect.set(0,0,Graphics.width,Graphics.height)
@@viewport1.ox = 0
@@viewport1.oy = 0
end
@@viewport1.rect.set(0,0,Graphics.width,Graphics.height)
@@viewport1.ox = 0
@@viewport1.oy = 0
@@viewport1.ox += $game_screen.shake
@tilemap.update
@panorama.ox = tmox/2