mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-16 08:02:36 +00:00
Fixed cursor not showing up in Asset Viewer main menu, fixed Camera free move not having :turn_left/right implemented
This commit is contained in:
@@ -28,6 +28,12 @@ class IMICFPS
|
||||
window.close
|
||||
end
|
||||
end
|
||||
|
||||
def update
|
||||
super
|
||||
|
||||
window.needs_cursor = true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -5,6 +5,7 @@ class IMICFPS
|
||||
|
||||
attr_reader :map
|
||||
def setup
|
||||
window.needs_cursor = false
|
||||
@manifest = @options[:manifest]
|
||||
|
||||
if window.config.get(:debug, :use_shaders)
|
||||
@@ -23,6 +24,7 @@ class IMICFPS
|
||||
@entity.bind_model
|
||||
@map.add_entity(@entity)
|
||||
@map.entities.each { |e| e.backface_culling = false }
|
||||
@crosshair = Crosshair.new(color: Gosu::Color.rgba(100, 200, 255, 100))
|
||||
|
||||
@lights = []
|
||||
@light = Light.new(id: available_light, position: Vector.new, diffuse: Vector.new(1, 1, 1, 1))
|
||||
@@ -42,8 +44,6 @@ class IMICFPS
|
||||
end
|
||||
|
||||
def draw
|
||||
window.show_cursor = true
|
||||
|
||||
color_top = Gosu::Color::GRAY
|
||||
color_bottom = Gosu::Color::BLACK
|
||||
|
||||
@@ -58,6 +58,8 @@ class IMICFPS
|
||||
@renderer.draw(@camera, [@light], @map.entities)
|
||||
end
|
||||
|
||||
@crosshair.draw
|
||||
|
||||
super
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user