Removed global state for LightManager and ObjectManager, they're now inside GameState. Simplified terrain mesh.

This commit is contained in:
2019-02-07 10:05:43 -06:00
parent 2f0cb47ed8
commit f4a81f1e36
16 changed files with 28104 additions and 144520 deletions

View File

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