#############################################################################
#############################################################################
# 处理速度的函数 (为了让直接调用 $scene = XXX.new 也生效,故每个Scene都调用)
def speed
# 速度处理 (因为像素不可活算小数(分数),所以只能取一些公约数)
# (存档处因为数字比较特殊,所以这里的速度不影响它
# 有兴趣可以自己在下面的Scene_File调)
case Speed
when 1;$speed = 1
when 2;$speed = 2
when 3;$speed = 4
when 4;$speed = 5
when 5;$speed = 8
when 6;$speed = 10
when 7;$speed = 16
when 8;$speed = 20
when 9;$speed = 32
when 10;$speed = 40
when 11;$speed = 80
when 12;$speed = 160
end
end
# 弹力处理
def elasticity (object)
if Elasticity then for i in 0 .. 5
object.y -= i * 2
Graphics.update
end;for i in 0 .. 5
object.y += i * 2
Graphics.update
end;for i in 0 .. 3
object.y -= i * 2
Graphics.update
end;for i in 0 .. 3
object.y += i * 2
Graphics.update
end;for i in 0 .. 1
object.y -= i * 2
Graphics.update
end;for i in 0 .. 1
object.y += i * 2
Graphics.update
end
end
end
end
#==============================================================================
# ■ Scene_Menu
#------------------------------------------------------------------------------
# 处理菜单画面的类。
#==============================================================================