class

GSDL::Camera

Inherits GSDL::Tweenable < GSDL::ProjectionMatrix < Reference < Object

Constructors

new(width : Num, height : Num)
Source

Instance methods

boundary_height
Source
boundary_height=(boundary_height : Num)
Source
boundary_width
Source
boundary_width=(boundary_width : Num)
Source
boundary_x

Boundary configuration

Source
boundary_x=(boundary_x : Num)

Boundary configuration

Source
boundary_y
Source
boundary_y=(boundary_y : Num)
Source
draw(draw : Draw)

TODO: required if trying to draw Tweenable objects using obj.each(&.draw(draw)) think of a better solution

Source
input_down
Source
input_down=(input_down : Symbol)
Source
input_left
Source
input_left=(input_left : Symbol)
Source
input_right
Source
input_right=(input_right : Symbol)
Source
input_up
Source
input_up=(input_up : Symbol)
Source
lerp_speed
Source
lerp_speed=(lerp_speed : Float32)
Source
look_at(tx : Num, ty : Num)
Source
look_at(sprite : SpriteBase)
Source
offset_x

Optional properties with default implementations

Source
offset_x=(offset_x : Float32)
Source
offset_y
Source
offset_y=(offset_y : Float32)
Source
scale
Source
scale=(scale : Tuple(Num, Num))
Source
scale_x
Source
scale_x=(scale_x : Num)
Source
scale_y
Source
scale_y=(scale_y : Num)
Source
scroll_speed_x
Source
scroll_speed_x=(scroll_speed_x : Float32)
Source
scroll_speed_y
Source
scroll_speed_y=(scroll_speed_y : Float32)
Source
set_boundary(x : Num, y : Num, width : Num, height : Num)
Source
set_boundary(rect : Rect | FRect)
Source
set_boundary(tile_map : TileMap)
Source
shake(duration : Float32, intensity : Float32 = 10_f32)
Source
speed

Input movement configuration

Source
speed=(speed : Num)

Input movement configuration

Source
target_x

Target coordinates

Source
target_x=(target_x : Num | Nil)

Target coordinates

Source
target_y
Source
target_y=(target_y : Num | Nil)
Source
tweens
Source
tweens=(tweens : Array(Tween))
Source
type
Source
type=(type : Type)
Source
update(dt : Float32)
Source
x=(x : Num)
Source
y=(y : Num)
Source
z_index
Source
z_index=(z_index : Int32)
Source
zoom
Source
zoom=(new_zoom : Float32)
Source

Nested types