abstract class Looper::Obj
- Looper::Obj
- Reference
- Object
Direct Known Subclasses
Defined in:
looper/obj.crConstant Summary
-
HIT_BOX_COLOR =
Color::Red
Constructors
Instance Method Summary
- #collision?(x, y, width, height)
- #collision?(objs : Array(Obj))
- #collision?(rects : Array(Rectangle))
- #collision?(tris : Array(Triangle))
- #collision?(obj : Obj)
- #collision?(rect : Rectangle)
- #collision?(tri : Triangle)
- #draw
- #height : Int32
- #height=(height : Int32)
- #hit_box
- #inside?(x, y)
- #update(frame_time)
- #width : Int32
- #width=(width : Int32)
- #x : Int32 | Float32
- #x=(x : Int32 | Float32)
- #y : Int32 | Float32
- #y=(y : Int32 | Float32)
Constructor Detail
def self.new(x : Float32 | Int32, y : Float32 | Int32, width : Int32, height : Int32, hit_box_color : Color = HIT_BOX_COLOR)
#