class Tile::Namespace

Included Modules

Defined in:

tile/namespace.cr
tile/namespace/animator.cr

Constant Summary

OFFSET_STRIPS = 4

Constructors

Instance Method Summary

Constructor Detail

def self.new(texture_path, map : Map, values : Values, viewport : SF::Window | SF::View) #

For a given number of tiles, find the power of 2 that can contain at least two dimensions worth of tiles.


[View source]
def self.new(texture_path, map : Map, values : Values) #

[View source]

Instance Method Detail

def animator : Tile::Namespace::Animator #

[View source]
def draw(target, states) #

[View source]
def px_height #

[View source]
def px_width #

[View source]
def refresh! #

[View source]