diff options
| author | Eltrac <hi@guhub.cn> | 2025-02-28 10:36:09 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-02-28 10:36:09 +0800 |
| commit | 6f69e2598c9592a5adccf088d7088dfb4e5cd816 (patch) | |
| tree | 991369dc46e1c8f6300507629d029f6009a8b375 /utils | |
| parent | c119ca25d566c3e3df5462dc4415d6b97b55e98f (diff) | |
style: remove Chinese comments
Diffstat (limited to 'utils')
| -rw-r--r-- | utils/frameTimer.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/frameTimer.lua b/utils/frameTimer.lua index 2946a28..baecd65 100644 --- a/utils/frameTimer.lua +++ b/utils/frameTimer.lua @@ -3,7 +3,7 @@ FrameTimer.__index = FrameTimer function FrameTimer:new(frameRate, totalFrames) local obj = { - frameRate = frameRate or 10, -- 默认每秒10帧 + frameRate = frameRate or 10, elapsedTime = 0, currentFrame = 1, totalFrames = totalFrames or 1 @@ -21,7 +21,7 @@ function FrameTimer:update(dt) self.elapsedTime = self.elapsedTime - self.frameTime self.currentFrame = self.currentFrame + 1 if self.currentFrame > self.totalFrames then - self.currentFrame = 1 -- 循环播放 + self.currentFrame = 1 -- repeat end end end |
