mirror of
https://github.com/cyberarm/cyberarm_engine.git
synced 2025-12-15 12:42:34 +00:00
Fixed draw_rect helper missing drawing mode argument, set max view distance to a large number
This commit is contained in:
@@ -28,8 +28,8 @@ module CyberarmEngine
|
||||
window.show_cursor = boolean
|
||||
end
|
||||
|
||||
def draw_rect(x, y, width, height, color, z = 0)
|
||||
Gosu.draw_rect(x, y, width, height, color, z)
|
||||
def draw_rect(x, y, width, height, color, z = 0, mode = :default)
|
||||
Gosu.draw_rect(x, y, width, height, color, z, mode)
|
||||
end
|
||||
|
||||
def fill(color, z = 0)
|
||||
|
||||
@@ -3,8 +3,8 @@ module CyberarmEngine
|
||||
attr_accessor :position, :orientation, :aspect_ratio, :field_of_view,
|
||||
:min_view_distance, :max_view_distance
|
||||
|
||||
def initialize(position:, aspect_ratio:, orientation: Vector.new(0, 0,
|
||||
0), field_of_view: 70.0, min_view_distance: 0.1, max_view_distance: 155.0)
|
||||
def initialize(position:, aspect_ratio:, orientation: Vector.new(0, 0, 0),
|
||||
field_of_view: 70.0, min_view_distance: 0.1, max_view_distance: 1024.0)
|
||||
@position = position
|
||||
@orientation = orientation
|
||||
|
||||
|
||||
Reference in New Issue
Block a user