class Dungeon::Sprite

Defined in:

dungeon/sprite.cr

Constant Summary

DEBUG = false

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(asset_file : String, frames : Int32, rows : Int32) #

[View source]

Class Method Detail

def self.get(asset_file) #

[View source]
def self.get_texture(asset_file) #

[View source]
def self.load(asset_file : String, frames, rows) #

[View source]
def self.load(sprites : Array(NamedTuple(asset_file: String, frames: Int32, rows: Int32))) #

[View source]
def self.load_texture(asset_file) #

[View source]

Instance Method Detail

def asset_file : String #

[View source]
def frames : Int32 #

[View source]
def get_texture #

[View source]
def height : Int32 #

[View source]
def rows : Int32 #

[View source]
def texture : LibRay::Texture2D #

[View source]
def width : Int32 #

[View source]