class Game::Square
- Game::Square
- Game::Rectangle
- Game::Shape
- Reference
- Object
Defined in:
game/shapes/square.crConstructors
Instance Method Summary
Instance methods inherited from class Game::Rectangle
draw_filled(parent_x = 0, parent_y = 0)
draw_filled,
draw_outlined(parent_x = 0, parent_y = 0)
draw_outlined,
height : Int32 | Float32
height,
height=(height : Int32 | Float32)
height=,
origin : Vector
origin,
origin=(origin : Vector)
origin=,
rotation : Int32 | Float32
rotation,
rotation=(rotation : Int32 | Float32)
rotation=,
width : Int32 | Float32
width,
width=(width : Int32 | Float32)
width=,
x : Int32 | Float32
x,
x=(x : Int32 | Float32)
x=,
y : Int32 | Float32
y,
y=(y : Int32 | Float32)
y=
Constructor methods inherited from class Game::Rectangle
new(x : Float32 | Int32 = 0, y : Float32 | Int32 = 0, width : Float32 | Int32 = 1, height : Float32 | Int32 = 1, rotation : Float32 | Int32 = 0, origin : ::Game::Vector = Vector.new, color = nil, filled = Shape::FILLED)
new
Instance methods inherited from class Game::Shape
color : Color
color,
color=(color : Color)
color=,
draw(image : Image, parent_x = 0, parent_y = 0)draw(parent_x = 0, parent_y = 0) draw, draw_filled(image : Image, parent_x = 0, parent_y = 0)
draw_filled(parent_x = 0, parent_y = 0) draw_filled, draw_outlined(image : Image, parent_x = 0, parent_y = 0)
draw_outlined(parent_x = 0, parent_y = 0) draw_outlined, filled=(filled : Bool) filled=, filled? : Bool filled?, height height, height=(_height) height=, update(_frame_time) update, width width, width=(_width) width=, x x, x=(_x) x=, y y, y=(_y) y=