class Scene_Battle_easy
def main @donghua = 0
@wait_count = 0
a = $game_actors[$b_act]
@actor = RPG::Sprite.new
@actor.bitmap = RPG::Cache.battler(a.battler_name,a.battler_hue)
b = $data_enemies[$c_act] @battler = Sprite_Battler.new(@viewport2, b)
@battler.bitmap = RPG::Cache.battler(b.battler_name,b.battler_hue)
Graphics.transition(20)
#----循环-----------------
loop do
Graphics.update
@wait_count -= 1 if @wait_count != 0
Input.update
update
if $scene != self
break
end
end
#---------------------------
@actor.dispose
@enemy.dispose
end
#--------------------------------------------------------------------------
def update
if @donghua != 0
@enemy.animation($data_animations[29],true)
@donghua = 0
else
@enemy.animation(nil,true) if @wait_count == 0
end
if Input.trigger?(Input::B)
# 战斗结束
Graphics.freeze
$scene = Scene_Map.new
end
if Input.trigger?(Input::C)
@donghua = 1
@wait_count = 40
end
end
end