Source code is generated by Pixas Editor.
Pixas Editor is a “WYSWYG” tool which helps to build isometric pixel elements:
http://risonhuang.wordpress.com/pixas-editor/
/**
* Copyright rison ( http://wonderfl.net/user/rison )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/dsDH
*/
package {
/**
* Generated By Pixas Editor:
* http://risonhuang.wordpress.com/pixas-editor/
*/
import flash.display.Sprite;
public class FlashTest extends Sprite {
public function FlashTest() {
import com.risonhuang.pixas.colors.*;
import com.risonhuang.pixas.dimensions.*;
import com.risonhuang.pixas.math.*;
import com.risonhuang.pixas.objects.*;
import com.risonhuang.pixas.objects.primitives.*;
var po:PixelObject = new PixelObject();
po.x = Math.floor(stage.stageWidth/2);
po.y = Math.floor(stage.stageHeight/4);
addChild(po);
var pmt_0:Cube = new Cube( new CubeDms(180, 140, 6), CubeColor.getByHorizontalColor(0xEEEEEE), true);
var po_0:PixelObject = new PixelObject(pmt_0 , new Coord3D(104, 128, 0));
po.addChild(po_0);
var pmt_1:SlopeWest = new SlopeWest( new SlopeDms(28, 40), SlopeColor.getByHorizontalColor(0xCEFFA0), true);
var po_1:PixelObject = new PixelObject(pmt_1 , new Coord3D(34, 116, 0));
po.addChild(po_1);
var pmt_2:SlopeWest = new SlopeWest( new SlopeDms(32, 38), SlopeColor.getByHorizontalColor(0xCEFFA0), true);
var po_2:PixelObject = new PixelObject(pmt_2 , new Coord3D(74, 162, 0));
po.addChild(po_2);
var pmt_3:Cube = new Cube( new CubeDms(116, 66, 139), CubeColor.getByHorizontalColor(0xCEFFA0), true);
var po_3:PixelObject = new PixelObject(pmt_3 , new Coord3D(130, 168, 0));
po.addChild(po_3);
var pmt_4:SlopeWest = new SlopeWest( new SlopeDms(28, 64), SlopeColor.getByHorizontalColor(0xCEFFA0), true);
var po_4:PixelObject = new PixelObject(pmt_4 , new Coord3D(-10, 30, 0));
po.addChild(po_4);
var pmt_5:SlopeEast = new SlopeEast( new SlopeDms(28, 64), SlopeColor.getByHorizontalColor(0xCEFFA0), true);
var po_5:PixelObject = new PixelObject(pmt_5 , new Coord3D(78, 30, 0));
po.addChild(po_5);
var pmt_6:Cube = new Cube( new CubeDms(22, 12, 22), CubeColor.getByHorizontalColor(0xF3ECE0), true);
var po_6:PixelObject = new PixelObject(pmt_6 , new Coord3D(58, 140, 0));
po.addChild(po_6);
var pmt_7:SideX = new SideX( new SideXDms(92, 29), SideColor.getByInnerColor(0xEEEEEE), true);
var po_7:PixelObject = new PixelObject(pmt_7 , new Coord3D(120, 212, 0));
po.addChild(po_7);
var pmt_8:SlopeSouth = new SlopeSouth( new SlopeDms(80, 12), SlopeColor.getByHorizontalColor(0xF3ECE0), true);
var po_8:PixelObject = new PixelObject(pmt_8 , new Coord3D(122, 208, 1));
po.addChild(po_8);
var pmt_9:SlopeSouth = new SlopeSouth( new SlopeDms(14, 38), SlopeColor.getByHorizontalColor(0xF3ECE0), true);
var po_9:PixelObject = new PixelObject(pmt_9 , new Coord3D(118, 168, 0));
po.addChild(po_9);
var pmt_10:Cube = new Cube( new CubeDms(22, 12, 22), CubeColor.getByHorizontalColor(0xF3ECE0), true);
var po_10:PixelObject = new PixelObject(pmt_10 , new Coord3D(112, 140, 0));
po.addChild(po_10);
var pmt_11:SideY = new SideY( new SideYDms(50, 121), SideColor.getByInnerColor(0xEEEEEE), true);
var po_11:PixelObject = new PixelObject(pmt_11 , new Coord3D(236, 168, 0));
po.addChild(po_11);
var pmt_12:SlopeEast = new SlopeEast( new SlopeDms(32, 38), SlopeColor.getByHorizontalColor(0xCEFFA0), true);
var po_12:PixelObject = new PixelObject(pmt_12 , new Coord3D(226, 162, 3));
po.addChild(po_12);
var pmt_13:SlopeEast = new SlopeEast( new SlopeDms(28, 38), SlopeColor.getByHorizontalColor(0xCEFFA0), true);
var po_13:PixelObject = new PixelObject(pmt_13 , new Coord3D(170, 106, 4));
po.addChild(po_13);
}
}
}