Tile.new()
Type | function |
Library | wattageTileEngine.Tile.* |
Return value | Tile |
Keywords | |
See also |
Overview
This function creates a new instance of type Tile.
Syntax
Tile.new( params )
params (required)
Table. Contains all required inputs. See Required Properties below.
Required Properties
The params
table contains the following properties:
resourceKey (required)
String. The key that will be passed to the SpriteResolver.
Examples
local TileEngine = require "plugin.wattageTileEngine"
local Tile = TileEngine.Tile
local tileInstance = Tile.new({
resourceKey = "tree"
})