first mapeditor test

This commit is contained in:
Josef Konrad 2012-06-03 13:41:46 +02:00
parent 8d0ff1a929
commit 8da2299c08
13 changed files with 605 additions and 0 deletions

20
Editor/script/Tile.js Normal file
View 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 + '" />';
}
};
}