Moved constants into their own file, LoadingState now loads shaders and now shows 'Loading [model|shader] name...', tweaked player running speed, Player model is no longer rendered when in first person view, removed redundant ShaderManager

This commit is contained in:
2019-08-10 09:40:31 -05:00
parent bc89fb6911
commit a22a3f3f3c
10 changed files with 35 additions and 35 deletions

View File

@@ -1,9 +1,4 @@
class IMICFPS
TextureCoordinate = Struct.new(:u, :v, :weight)
Point = Struct.new(:x, :y)
Color = Struct.new(:red, :green, :blue, :alpha)
Face = Struct.new(:vertices, :uvs, :normals, :material, :smoothing)
module EntityManager # Get included into GameState context
def add_entity(entity)
@collision_manager.add(entity)# Add every entity to collision manager

View File

@@ -96,6 +96,12 @@ class IMICFPS
raise "InputMapper.action(#{key}) is nil!" unless answer
answer
end
def self.reset_keys
@@keys.each do |key, value|
@@keys[key] = false
end
end
end
end

View File

@@ -1,12 +0,0 @@
class IMICFPS
class ShaderManager
SHADERS = {}
def self.add_shader(name, shader)
SHADERS[name] = shader
end
def self.shader(name)
SHADERS[name]
end
end
end