mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 23:52:35 +00:00
Removed global state for LightManager and ObjectManager, they're now inside GameState. Simplified terrain mesh.
This commit is contained in:
@@ -1,15 +1,21 @@
|
||||
class IMICFPS
|
||||
class GameState
|
||||
include CommonMethods
|
||||
include ObjectManager
|
||||
include LightManager
|
||||
|
||||
attr_reader :options
|
||||
def initialize(options = {})
|
||||
@options = options
|
||||
@delta_time = Gosu.milliseconds
|
||||
@game_objects = []
|
||||
@lights = []
|
||||
|
||||
setup
|
||||
end
|
||||
|
||||
def push_game_state(klass_or_instance)
|
||||
$window.push_game_state(klass_or_instance)
|
||||
window.push_game_state(klass_or_instance)
|
||||
end
|
||||
|
||||
def setup
|
||||
@@ -21,6 +27,9 @@ class IMICFPS
|
||||
def update
|
||||
end
|
||||
|
||||
def button_down(id)
|
||||
end
|
||||
|
||||
def button_up(id)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user