mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 14:14:59 +00:00
Removed last possible usages of Graphics.frame_rate and Graphics.frame_count, improved screen scrolling code, player now animates walking into a wall
This commit is contained in:
@@ -312,7 +312,7 @@ class SpriteWindow < Window
|
||||
if @pause
|
||||
oldpauseframe = @pauseframe
|
||||
oldpauseopacity = @pauseopacity
|
||||
@pauseframe = (Graphics.frame_count / 8) % 4
|
||||
@pauseframe = (System.uptime * 5) % 4 # 4 frames, 5 frames per second
|
||||
@pauseopacity = [@pauseopacity + 64, 255].min
|
||||
mustchange = @pauseframe != oldpauseframe || @pauseopacity != oldpauseopacity
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user