WIP changes sync

This commit is contained in:
2021-03-22 22:11:11 -05:00
parent f04217ccc7
commit 86e5f879dd
6 changed files with 110 additions and 103 deletions

View File

@@ -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