class Gsw::Obj

Direct Known Subclasses

Defined in:

gsw/core/obj.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def collision?(other : Vector) #

[View source]
def draw(_parent_x, _parent_y) #

[View source]
def height : Int32 | Float32 #

[View source]
def position : Vector #

[View source]
def rotation : Int32 | Float32 | Float64 #

[View source]
def update(_frame_time) #

[View source]
def width : Int32 | Float32 #

[View source]
def x(*args, **options) #

[View source]
def x(*args, **options, &) #

[View source]
def y(*args, **options) #

[View source]
def y(*args, **options, &) #

[View source]