Added Game States, decoupled game from Window class and placed it in Game < GameState

This commit is contained in:
2018-09-09 07:36:59 -05:00
parent bf783381ee
commit 16e0e4dcff
10 changed files with 216 additions and 151 deletions

View File

@@ -20,6 +20,7 @@ class IMICFPS
@debug_color = Color.new(0.0, 1.0, 0.0)
@terrain = terrain
@width, @height, @depth = 0,0,0
@delta_time = Gosu.milliseconds
ObjectManager.add_object(self) if auto_manage
setup
@@ -78,6 +79,7 @@ class IMICFPS
def update
model.update
@delta_time = Gosu.milliseconds
end
# Do two Axis Aligned Bounding Boxes intersect?