我做了一个记分器,但是晚了。

function score( e )
    local score_txt = display.newText( e.count, 980, 60, Ariel , 43 )
    timer.performWithDelay( 10, function() score_txt:removeSelf() end)
  end
Counter = timer.performWithDelay( 10, score, 0 )

问题在于计时器的延迟。例如:当它到达10000时,意味着100秒,但我测量时间为127秒。Corona中的计时器不准确吗?

点赞