Use fonts everywhere, misc. tweaks

This commit is contained in:
2020-07-18 21:33:33 -05:00
parent ce90284001
commit 4ee97cca4b
11 changed files with 55 additions and 37 deletions

View File

@@ -21,7 +21,7 @@ class IMICFPS
@light = Light.new(type: Light::DIRECTIONAL, id: available_light, position: Vector.new, diffuse: Vector.new(1, 1, 1, 1))
@lights << @light
@camera = Camera.new(position: Vector.new(0, 1.5, 5), orientation: Vector.forward)
@camera = PerspectiveCamera.new(aspect_ratio: window.aspect_ratio, position: Vector.new(0, 1.5, 5), orientation: Vector.forward)
label @manifest.name, text_size: 50
label @manifest.model
@@ -56,7 +56,7 @@ class IMICFPS
def update
super
@camera.update
# @camera.update
@light.position = @camera.position.clone
@light.position.y += 1.5
@camera_position.value = "Camera Position: X #{@camera.position.x.round(2)}, Y #{@camera.position.y.round(2)}, Z #{@camera.position.z.round(2)}"

View File

@@ -15,6 +15,7 @@ class IMICFPS
@crosshair = Crosshair.new
@map.setup
@map.add_entity(@editor)
end
def draw
@@ -45,7 +46,7 @@ class IMICFPS
end
end
@editor.update
@editor.orientation.x = @camera.orientation.x
end
def button_down(id)