mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 23:52:35 +00:00
Added Game States, decoupled game from Window class and placed it in Game < GameState
This commit is contained in:
22
lib/states/game_state.rb
Normal file
22
lib/states/game_state.rb
Normal file
@@ -0,0 +1,22 @@
|
||||
class IMICFPS
|
||||
class GameState
|
||||
include CommonMethods
|
||||
|
||||
def initialize
|
||||
@delta_time = Gosu.milliseconds
|
||||
setup
|
||||
end
|
||||
|
||||
def setup
|
||||
end
|
||||
|
||||
def draw
|
||||
end
|
||||
|
||||
def update
|
||||
end
|
||||
|
||||
def button_up(id)
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user