class Dungeon::Sprite
- Dungeon::Sprite
- Reference
- Object
Defined in:
dungeon/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
- #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)))
#