Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * ...
- * @author S*****************************
- */
- import flash.display.Shape;
- import flash.display.Sprite;
- import flash.Lib;
- class Map extends Sprite
- {
- public function new(xx:Int, yy:Int)
- {
- super();
- x == xx;
- trace(x);
- var mappiece:Shape = new Shape();
- mappiece.graphics.beginFill(0);
- mappiece.graphics.drawRect(x, 0, 20, 20);
- mappiece.graphics.beginFill(0xFF0000);
- mappiece.graphics.drawRect(x, -1, 19, 19);
- mappiece.graphics.endFill();
- Lib.current.addChild(mappiece);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement