class Gsw::Sprite
- Gsw::Sprite
- Reference
- Object
Defined in:
gsw/utils/sprite.crConstant Summary
-
DEBUG =
false
-
SPRITE_ASSET_PATH =
"../../../assets/sprites"
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 = LibRay::WHITE)
- #draw_partial(x, y, source_width = width, source_height = height, frame = 0, row = 0, rotation = 0, tint = LibRay::WHITE)
- #frames : Int32
- #get_texture
- #height : Int32
- #rows : Int32
- #texture : LibRay::Texture2D
- #width : Int32
Constructor Detail
Class Method Detail
Instance Method Detail
def draw_partial(x, y, source_width = width, source_height = height, frame = 0, row = 0, rotation = 0, tint = LibRay::WHITE)
#