class

GSDL::TileLayer

Inherits Reference < Object

Constructors

new(name : String, data : Array(Array(UInt32)), visible : Bool = true, opacity : Float32 = 1.0_f32, offset_x : Int32 = 0, offset_y : Int32 = 0, parallax_x : Float32 = 1.0_f32, parallax_y : Float32 = 1.0_f32, z_index : Int32 = 0)
Source

Instance methods

data
Source
data=(data : Array(Array(UInt32)))
Source
draw(draw : Draw, tilesets : Hash(String, Tileset), tile_width : Int32, tile_height : Int32, z_index : Int32 = 0)
Source
name
Source
name=(name : String)
Source
offset_x
Source
offset_x=(offset_x : Int32)
Source
offset_y
Source
offset_y=(offset_y : Int32)
Source
opacity
Source
opacity=(opacity : Float32)
Source
parallax_x
Source
parallax_x=(parallax_x : Float32)
Source
parallax_y
Source
parallax_y=(parallax_y : Float32)
Source
visible
Source
visible=(visible : Bool)
Source
z_index
Source
z_index=(z_index : Int32)
Source