# 主循环
$pre = 0
$rep = 0
loop do
# 刷新游戏画面
#--------------------------------------------------------------------------
# ● 刷新画面
#--------------------------------------------------------------------------
def update
@command_window.update
if Input.press?(Input::C)
$pre += 1
end
if Input.repeat?(Input::C)
$rep += 1
end
if Input.trigger?(Input::L)
print "press", "\n", $pre, "\n", "repeat", "\n", $rep
end
end
# 主循环
$pre = 0
$rep = 0
loop do
# 刷新游戏画面
#--------------------------------------------------------------------------
# ● 刷新画面
#--------------------------------------------------------------------------
def update
@command_window.update
if Input.press?(Input::C)
$pre += 1
end
if Input.repeat?(Input::C)
$rep += 1
end
if Input.trigger?(Input::L)
print "press", "\n", $pre, "\n", "repeat", "\n", $rep
end
end