mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-16 16:12:35 +00:00
Moved game objects to their own folder
This commit is contained in:
19
lib/objects/game_objects/skydome.rb
Normal file
19
lib/objects/game_objects/skydome.rb
Normal file
@@ -0,0 +1,19 @@
|
||||
class IMICFPS
|
||||
class Skydome < GameObject
|
||||
def setup
|
||||
bind_model(ModelLoader.new(type: :obj, file_path: "objects/skydome.obj", game_object: self))
|
||||
end
|
||||
|
||||
def draw
|
||||
glDisable(GL_LIGHTING)
|
||||
super
|
||||
glEnable(GL_LIGHTING)
|
||||
end
|
||||
|
||||
def update
|
||||
@y_rotation+=0.01
|
||||
@y_rotation%=360
|
||||
super
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user