Crono::Image
Inherits Reference / Object
Constructors
new(src : String, dimentions : TSize)
new(src : String)
Class methods
load_tiles(src : String, dimentions : TSize)
Returns Array(NamedTuple) The total number of sprites would be (img.full_width / dimentions[0]) * (img.full_height / dimentions[1])
Instance methods
dimentions
dimentions=(dimentions : Tuple(Int32, Int32))
full_height
returns the full height of the image
full_width
returns the full width of the image
height
returns the height you want
sdl
TODO: find a better name for this proxy method
src
src=(src : String)
width
returns the width you want