mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-16 08:02:36 +00:00
WIP changes sync
This commit is contained in:
@@ -12,7 +12,7 @@ class IMICFPS
|
||||
@last_changed_time = Gosu.milliseconds
|
||||
@change_interval = 1_500
|
||||
|
||||
@colors = [0xffffffff, 0xaaffffff, 0x88ffffff, 0x22ffffff]
|
||||
@color = 0xaaffffff
|
||||
end
|
||||
|
||||
def draw
|
||||
@@ -25,14 +25,6 @@ class IMICFPS
|
||||
@color
|
||||
)
|
||||
end
|
||||
|
||||
def update
|
||||
if Gosu.milliseconds - @last_changed_time >= @change_interval
|
||||
@last_changed_time = Gosu.milliseconds
|
||||
|
||||
@color = @colors.sample
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user