Fixed draw_rect helper missing drawing mode argument, set max view distance to a large number

This commit is contained in:
2021-04-25 23:22:58 +00:00
parent e3c8e3bcc2
commit 165fc6f307
2 changed files with 4 additions and 4 deletions

View File

@@ -28,8 +28,8 @@ module CyberarmEngine
window.show_cursor = boolean window.show_cursor = boolean
end end
def draw_rect(x, y, width, height, color, z = 0) def draw_rect(x, y, width, height, color, z = 0, mode = :default)
Gosu.draw_rect(x, y, width, height, color, z) Gosu.draw_rect(x, y, width, height, color, z, mode)
end end
def fill(color, z = 0) def fill(color, z = 0)

View File

@@ -3,8 +3,8 @@ module CyberarmEngine
attr_accessor :position, :orientation, :aspect_ratio, :field_of_view, attr_accessor :position, :orientation, :aspect_ratio, :field_of_view,
:min_view_distance, :max_view_distance :min_view_distance, :max_view_distance
def initialize(position:, aspect_ratio:, orientation: Vector.new(0, 0, def initialize(position:, aspect_ratio:, orientation: Vector.new(0, 0, 0),
0), field_of_view: 70.0, min_view_distance: 0.1, max_view_distance: 155.0) field_of_view: 70.0, min_view_distance: 0.1, max_view_distance: 1024.0)
@position = position @position = position
@orientation = orientation @orientation = orientation