mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 23:52:35 +00:00
Refactored GameObject to Entity, replaced @x,@y,@z with @position, added @velocity vector to Entity, bricked Player terrain interaction while authoring Axis Aligned Bounding Box Tree for CollisionManager to handle all collision interaction. Added PhysicsManager stub.
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
class IMICFPS
|
||||
class GameState
|
||||
include CommonMethods
|
||||
include ObjectManager
|
||||
include EntityManager
|
||||
include LightManager
|
||||
|
||||
attr_reader :options
|
||||
def initialize(options = {})
|
||||
@options = options
|
||||
@delta_time = Gosu.milliseconds
|
||||
@game_objects = []
|
||||
@lights = []
|
||||
@entities = []
|
||||
@lights = []
|
||||
|
||||
setup
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user