class JamWarmUp::CollisionBox

Defined in:

jam_warm_up/collision_box.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(width : Float32 | Int32 = 1, height : Float32 | Int32 = 1) #

[View source]

Instance Method Detail

def collides?(x, y, other : CollisionBox, other_x, other_y) #

[View source]
def draw(window : SF::RenderWindow, x, y) #

[View source]
def height : Int32 | Float32 #

[View source]
def width : Int32 | Float32 #

[View source]