class Game::SpriteEntity
- Game::SpriteEntity
- Game::Entity
- Reference
- Object
Defined in:
game/shapes/sprite_entity.crConstructors
Instance Method Summary
- #draw(parent_x = 0, parent_y = 0)
- #height : Int32 | Float32
- #height=(height : Int32 | Float32)
- #pause(*args, **options)
- #pause(*args, **options, &)
- #restart(*args, **options)
- #restart(*args, **options, &)
- #rotation : Int32 | Float32
- #rotation=(rotation : Int32 | Float32)
- #start(*args, **options)
- #start(*args, **options, &)
- #update(frame_time)
- #width : Int32 | Float32
- #width=(width : Int32 | Float32)
- #x : Int32 | Float32
- #x=(x : Int32 | Float32)
- #y : Int32 | Float32
- #y=(y : Int32 | Float32)
Instance methods inherited from class Game::Entity
draw
draw,
height
height,
height=(_height)
height=,
update(_frame_time)
update,
width
width,
width=(_width)
width=,
x
x,
x=(_x)
x=,
y
y,
y=(_y)
y=
Constructor methods inherited from class Game::Entity
new
new
Constructor Detail
def self.new(x : Float32 | Int32, y : Float32 | Int32, sprite_name, width = nil, height = nil, rotation : Float32 | Int32 = 0)
#