mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 23:52:35 +00:00
Added dependance on cyberarm_engine, removed duplicate code which is in cyberarm_engine
This commit is contained in:
@@ -1,36 +1,16 @@
|
||||
class IMICFPS
|
||||
class GameState
|
||||
class GameState < CyberarmEngine::GameState
|
||||
include CommonMethods
|
||||
include EntityManager
|
||||
include LightManager
|
||||
|
||||
attr_reader :options
|
||||
def initialize(options = {})
|
||||
@options = options
|
||||
@delta_time = Gosu.milliseconds
|
||||
@entities = []
|
||||
@lights = []
|
||||
|
||||
setup
|
||||
end
|
||||
|
||||
def push_game_state(klass_or_instance)
|
||||
window.push_game_state(klass_or_instance)
|
||||
end
|
||||
|
||||
def setup
|
||||
end
|
||||
|
||||
def draw
|
||||
end
|
||||
|
||||
def update
|
||||
end
|
||||
|
||||
def button_down(id)
|
||||
end
|
||||
|
||||
def button_up(id)
|
||||
super
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user