Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.  * ...
  3.  * @author S*****************************
  4.  */
  5.  
  6.  
  7. import flash.display.Shape;
  8. import flash.display.Sprite;
  9. import flash.Lib;
  10.  
  11. class Map extends Sprite
  12. {
  13.  
  14.     public function new(xx:Int, yy:Int)
  15.     {
  16.         super();
  17.         x == xx;
  18.         trace(x);
  19.         var mappiece:Shape = new Shape();
  20.         mappiece.graphics.beginFill(0);
  21.         mappiece.graphics.drawRect(x, 0, 20, 20);
  22.         mappiece.graphics.beginFill(0xFF0000);
  23.         mappiece.graphics.drawRect(x, -1, 19, 19);
  24.         mappiece.graphics.endFill();
  25.         Lib.current.addChild(mappiece);
  26.        
  27.     }
  28.    
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement