#==============================================================================
# ■ Game_Player
#------------------------------------------------------------------------------
# 處理玩家人物的類。擁有事件啟動的判定、地圖的卷動等功能。
# 本類的實例請參考 $game_player 。
#==============================================================================
class Game_Player < Game_Character
def getX
@x
end
def getY
@y
end
end
#==============================================================================
# ■ Scene_Menu
#------------------------------------------------------------------------------
# 菜單畫面
#==============================================================================
class Scene_Menu < Scene_MenuBase
#--------------------------------------------------------------------------
# ● 生成窗口
#--------------------------------------------------------------------------
def create_gold_window
@gold_window = Window_Gold.new
@gold_window.x = 0
@gold_window.y = Graphics.height - @gold_window.height
# 生成地圖信息窗口
@mapinfos_window = Window_MapInfo.new
@mapinfos_window.x = 0
@mapinfos_window.y = Graphics.height - @mapinfos_window.height - @gold_window.height
end
end
#==============================================================================
# ■ Window_MapInfo
#------------------------------------------------------------------------------
# 顯示當前信息的窗口。 By SkyZH
#==============================================================================
class Window_MapInfo < Window_Base
#--------------------------------------------------------------------------
# ● 初始化對像
#--------------------------------------------------------------------------
def initialize
super(317, 270, window_width, 144)
self.opacity = 255
refresh
end
#--------------------------------------------------------------------------
# ● 獲取窗口的寬度
#--------------------------------------------------------------------------
def window_width
return 225
end
#--------------------------------------------------------------------------
# ● 刷新
#--------------------------------------------------------------------------
def refresh
self.contents.clear
self.contents.font.color = normal_color
@a=$game_map.width
@b=$game_map.height
已刪
end
end
class Spriteset_Map
#--------------------------------------------------------------------------
# ● 初始化對象
#--------------------------------------------------------------------------
def initialize
create_viewports
create_tilemap
create_parallax
create_characters
create_shadow
create_weather
create_pictures
create_timer
@MapInfoWin=Window_MapInfo.new
update
end
def dispose
dispose_tilemap
dispose_parallax
dispose_characters
dispose_shadow
dispose_weather
dispose_pictures
dispose_timer
dispose_viewports
@MapInfoWin.dispose
end
def update
update_tileset
update_tilemap
update_parallax
update_characters
update_shadow
update_weather
update_pictures
update_timer
update_viewports
if $game_switches[1]==false then #通過1號開關控制信息窗口是否顯示
@MapInfoWin.visible=false
else
@MapInfoWin.visible=true
end
@MapInfoWin.refresh
end
end