mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Removed alternate map rendering code
This commit is contained in:
@@ -148,8 +148,7 @@ class Sprite_Character < RPG::Sprite
|
||||
self.oy -= @character.bob_height
|
||||
end
|
||||
if self.visible
|
||||
if $PokemonSystem.tilemap == 0 ||
|
||||
(@character.is_a?(Game_Event) && @character.name[/regulartone/i])
|
||||
if @character.is_a?(Game_Event) && @character.name[/regulartone/i]
|
||||
self.tone.set(0, 0, 0, 0)
|
||||
else
|
||||
pbDayNightTint(self)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -76,16 +76,8 @@ class Spriteset_Map
|
||||
|
||||
def update
|
||||
return if @tilemap.disposed?
|
||||
if $PokemonSystem.tilemap==0
|
||||
if self.map==$game_map
|
||||
pbDayNightTint(@@viewport3)
|
||||
else
|
||||
@@viewport3.tone.set(0,0,0,0)
|
||||
end
|
||||
else
|
||||
pbDayNightTint(@tilemap)
|
||||
@@viewport3.tone.set(0,0,0,0)
|
||||
end
|
||||
pbDayNightTint(@tilemap)
|
||||
@@viewport3.tone.set(0,0,0,0)
|
||||
_animationSprite_update
|
||||
for i in 0...@usersprites.length
|
||||
@usersprites[i].update if !@usersprites[i].disposed?
|
||||
|
||||
43
Data/Scripts/005_Sprites/013_ScreenPosHelper.rb
Normal file
43
Data/Scripts/005_Sprites/013_ScreenPosHelper.rb
Normal file
@@ -0,0 +1,43 @@
|
||||
module ScreenPosHelper
|
||||
def self.pbScreenZoomX(ch)
|
||||
return Game_Map::TILE_WIDTH/32.0
|
||||
end
|
||||
|
||||
def self.pbScreenZoomY(ch)
|
||||
return Game_Map::TILE_HEIGHT/32.0
|
||||
end
|
||||
|
||||
def self.pbScreenX(ch)
|
||||
return ch.screen_x
|
||||
end
|
||||
|
||||
def self.pbScreenY(ch)
|
||||
return ch.screen_y
|
||||
end
|
||||
|
||||
@heightcache={}
|
||||
|
||||
def self.bmHeight(bm)
|
||||
h=@heightcache[bm]
|
||||
if !h
|
||||
bmap=AnimatedBitmap.new("Graphics/Characters/"+bm,0)
|
||||
h=bmap.height
|
||||
@heightcache[bm]=h
|
||||
bmap.dispose
|
||||
end
|
||||
return h
|
||||
end
|
||||
|
||||
def self.pbScreenZ(ch,height=nil)
|
||||
if height==nil
|
||||
height=0
|
||||
if ch.tile_id > 0
|
||||
height=32
|
||||
elsif ch.character_name!=""
|
||||
height=bmHeight(ch.character_name)/4
|
||||
end
|
||||
end
|
||||
ret=ch.screen_z(height)
|
||||
return ret
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user