mirror of
https://github.com/photonstorm/phaser
synced 2024-12-23 11:33:28 +00:00
23 lines
392 B
JavaScript
23 lines
392 B
JavaScript
|
var Class = require('../../utils/Class');
|
||
|
|
||
|
// Dummy Tile class
|
||
|
// Todo: merge dynamic/tile into this
|
||
|
|
||
|
var Tile = new Class({
|
||
|
|
||
|
initialize:
|
||
|
|
||
|
function Tile (layer, index, x, y, width, height)
|
||
|
{
|
||
|
this.layer = layer;
|
||
|
this.index = index;
|
||
|
this.x = x;
|
||
|
this.y = y;
|
||
|
this.width = width;
|
||
|
this.height = height;
|
||
|
}
|
||
|
|
||
|
});
|
||
|
|
||
|
module.exports = Tile;
|