class Game_Player < Game_Character
alias old_update update
def update
old_update
unless moving? or $game_system.map_interpreter.running? or
@move_route_forcing or $game_temp.message_window_showing
# 如果方向键被按下、主角就朝那个方向移动
case Input.dir4
when 2
if $game_switches[PLAN_Map_Window::MAP_SWITCH]
$win_x = 8
$win_y = 8
$direction = 0
$game_variables[PLAN_Map_Window::MAP_DIRECTION] = $direction
end
when 4
if $game_switches[PLAN_Map_Window::MAP_SWITCH]
$win_x = 382
$win_y = 8
$direction = 1
$game_variables[PLAN_Map_Window::MAP_DIRECTION] = $direction
end
when 6
if $game_switches[PLAN_Map_Window::MAP_SWITCH]
$win_x = 8
$win_y = 280 - 8
$direction = 2
$game_variables[PLAN_Map_Window::MAP_DIRECTION] = $direction
end
when 8
if $game_switches[PLAN_Map_Window::MAP_SWITCH]
$win_x = 382
$win_y = 280 - 8
$direction = 3
$game_variables[PLAN_Map_Window::MAP_DIRECTION] = $direction
end
end
end
end
end
#==============================================================================
# ■ Window_Base
#------------------------------------------------------------------------------
# 游戏中全部窗口的超级类。
#==============================================================================
class Window_Base < Window
#--------------------------------------------------------------------------
# ● 初始化对像
# x : 窗口的 X 坐标
# y : 窗口的 Y 坐标
# width : 窗口的宽
# height : 窗口的宽
#--------------------------------------------------------------------------
def initialize(x, y, width, height)
super()
@windowskin_name = $game_system.windowskin_name
if !$minimap
self.windowskin = RPG::Cache.windowskin(@windowskin_name)
end
self.x = x
self.y = y
self.width = width
self.height = height
self.z = 100
end
end
#==============================================================================
# 本脚本来自www.66RPG.com,使用和转载请保留此信息
#==============================================================================