mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
cleaned branch
This commit is contained in:
parent
6b5a689662
commit
b155faa63c
606 changed files with 0 additions and 13749 deletions
20
editor/script/Tile.js
Normal file
20
editor/script/Tile.js
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
// Tile Class
|
||||
function Tile(x, y, tile, rotation)
|
||||
{
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
this.tile = tile;
|
||||
this.rotation = rotation;
|
||||
|
||||
this.toString = function()
|
||||
{
|
||||
if(this.rotation == 0)
|
||||
{
|
||||
return '<tile shape="' + this.tile + '" x="' + this.x + '" y="' + this.y + '" />';
|
||||
}
|
||||
else
|
||||
{
|
||||
return '<tile shape="' + this.tile + '" x="' + this.x + '" y="' + this.y + '" rotation="' + this.rotation + '" />';
|
||||
}
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue