mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 23:52:35 +00:00
Renamed objects/ to game_objects/ removed redundant entities, added Map loader and test map, made LoadingState use Map for entity asset loading.
This commit is contained in:
19
lib/game_objects/entities/skydome.rb
Normal file
19
lib/game_objects/entities/skydome.rb
Normal file
@@ -0,0 +1,19 @@
|
||||
class IMICFPS
|
||||
class Skydome < Entity
|
||||
def setup
|
||||
@collision = :none
|
||||
end
|
||||
|
||||
def draw
|
||||
glDisable(GL_LIGHTING)
|
||||
super
|
||||
glEnable(GL_LIGHTING)
|
||||
end
|
||||
|
||||
def update
|
||||
@orientation.y += 0.01
|
||||
@orientation.y %= 360
|
||||
super
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user