class Game::SpriteEntity

Defined in:

game/shapes/sprite_entity.cr

Constructors

Instance Method Summary

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) #

[View source]

Instance Method Detail

def draw(parent_x = 0, parent_y = 0) #

[View source]
def height : Int32 | Float32 #

[View source]
def height=(height : Int32 | Float32) #

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

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

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

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

[View source]
def rotation : Int32 | Float32 #

[View source]
def rotation=(rotation : Int32 | Float32) #

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

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

[View source]
def update(frame_time) #

[View source]
def width : Int32 | Float32 #

[View source]
def width=(width : Int32 | Float32) #

[View source]
def x : Int32 | Float32 #

[View source]
def x=(x : Int32 | Float32) #

[View source]
def y : Int32 | Float32 #

[View source]
def y=(y : Int32 | Float32) #

[View source]