#下面是几个变量,根据需要自己改吧。
#作者:XGM
$判断挂起秒数 = 2
$检查间隔秒数 = 2
$加速判断帧数 = -0.5
Thread.new do
a = Time.now
b = Graphics.frame_count
loop do
if Time.now - a > $检查间隔秒数
t = ((Time.now - a) * Graphics.frame_rate).to_f - (Graphics.frame_count - b).to_f
if t > $判断挂起秒数 * Graphics.frame_rate #挂起
#p "欢迎回来"
end
if t < $加速判断帧数 #加速
p "请不要使用加速齿轮!!"
exit
end
a = Time.now
b = Graphics.frame_count
end
end
end
#下面是几个变量,根据需要自己改吧。
#作者:XGM
$判断挂起秒数 = 2
$检查间隔秒数 = 2
$加速判断帧数 = -0.5
Thread.new do
a = Time.now
b = Graphics.frame_count
loop do
if Time.now - a > $检查间隔秒数
t = ((Time.now - a) * Graphics.frame_rate).to_f - (Graphics.frame_count - b).to_f
if t > $判断挂起秒数 * Graphics.frame_rate #挂起
#p "欢迎回来"
end
if t < $加速判断帧数 #加速
p "请不要使用加速齿轮!!"
exit
end
a = Time.now
b = Graphics.frame_count
end
end
end