Advertisement
Guest User

Untitled

a guest
May 24th, 2018
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Haxe 0.27 KB | None | 0 0
  1. package;
  2.  
  3. import openfl.display.Sprite;
  4.  
  5. class Main extends Sprite {
  6.  
  7.     public function new () {
  8.  
  9.     super ();
  10.  
  11.         var glsprite:GLSprite = new GLSprite();
  12.  
  13.         addChild(glsprite);
  14.  
  15.         this.graphics.beginFill(0xff0000);
  16.         this.graphics.drawRect(0,0, 10,10);
  17.     }
  18.  
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement