mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 15:42:35 +00:00
Ran rubocop autocorrect
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class IMICFPS
|
||||
class Boot < GameState
|
||||
def setup
|
||||
@title = Text.new(IMICFPS::NAME, size: 100, z: 0, color: Gosu::Color.new(0xff000000), shadow: false, font: "Droid Serif")
|
||||
@logo = get_image(IMICFPS::GAME_ROOT_PATH + "/static/logo.png")
|
||||
@logo = get_image("#{IMICFPS::GAME_ROOT_PATH}/static/logo.png")
|
||||
|
||||
@start_time = Gosu.milliseconds
|
||||
@time_to_live = 3_000
|
||||
@@ -34,7 +35,7 @@ class IMICFPS
|
||||
|
||||
@title.draw
|
||||
|
||||
fill(Gosu::Color.rgba(0,0,0, 255 * (1.2 - fraction_left)))
|
||||
fill(Gosu::Color.rgba(0, 0, 0, 255 * (1.2 - fraction_left)))
|
||||
end
|
||||
end
|
||||
|
||||
@@ -46,11 +47,11 @@ class IMICFPS
|
||||
end
|
||||
|
||||
def button_up(id)
|
||||
if id == Gosu::KbEscape or
|
||||
(id >= Gosu::GP_LEFT and id >= Gosu::GP_BUTTON_15) or
|
||||
id == Gosu::MsLeft
|
||||
if (id == Gosu::KbEscape) ||
|
||||
((id >= Gosu::GP_LEFT) && (id >= Gosu::GP_BUTTON_15)) ||
|
||||
(id == Gosu::MsLeft)
|
||||
push_state(MainMenu)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user