class Gsw::View

Defined in:

gsw/maps/view.cr

Constant Summary

MOVE_HELD_SPEED = 500
MOVE_SPEED = 150
VIEW_PADDING = 50

Instance Method Summary

Instance methods inherited from class Gsw::Obj

collision?(other : Vector) collision?, draw(_parent_x, _parent_y) draw, height : Int32 | Float32 height, position : Vector position, rotation : Int32 | Float32 | Float64 rotation, update(_frame_time) update, width : Int32 | Float32 width, x(*args, **options)
x(*args, **options, &)
x
, y(*args, **options)
y(*args, **options, &)
y

Constructor methods inherited from class Gsw::Obj

new(x, y, width : Float32 | Int32, height : Float32 | Int32, rotation : Float32 | Float64 | Int32 = 0) new

Instance Method Detail

def draw #

[View source]
def draw_viewport_border #

[View source]
def map_initial_x #

[View source]
def map_initial_y #

[View source]
def movable_x?(map, dx) #

[View source]
def movable_y?(map, dy) #

[View source]
def move_map(frame_time, map) #

[View source]
def update(frame_time, map : Map) #

[View source]
def viewable?(position : Vector, width : Int32 | Float32, height : Int32 | Float32) #

[View source]
def viewable?(obj : Obj) #

[View source]