class Buzzle::Sprite
- Buzzle::Sprite
- Reference
- Object
Defined in:
buzzle/sprite.crConstant Summary
-
DEBUG =
false
Constructors
Class Method Summary
- .get(asset_file)
- .get_texture(asset_file)
- .load(asset_file : String, frames, rows)
- .load(sprites : Array(NamedTuple(asset_file: String, frames: Int32, rows: Int32)))
- .load_texture(asset_file)
Instance Method Summary
- #asset_file : String
- #draw(x, y, frame = 0, row = 0, rotation = 0, tint = Color::White)
- #draw_partial(x, y, source_width = width, source_height = height, frame = 0, row = 0, rotation = 0, tint = Color::White)
- #frames : Int32
- #get_texture
- #height : Int32
- #rows : Int32
- #texture : LibRay::Texture2D
- #width : Int32
Constructor Detail
Class Method Detail
def self.load(sprites : Array(NamedTuple(asset_file: String, frames: Int32, rows: Int32)))
#
Instance Method Detail
def draw_partial(x, y, source_width = width, source_height = height, frame = 0, row = 0, rotation = 0, tint = Color::White)
#