Guest User

Untitled

a guest
May 20th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class PlayerWin extends World
  2.     {
  3.         public var winscreen:WinScreen = new WinScreen(0, 0);
  4.  
  5.         public function PlayerWin()
  6.         {
  7.             add(winscreen);
  8.            
  9.         }
  10.     }
  11. }
  12.  
  13.  
  14. WINSCREEN:
  15.  
  16.     public class WinScreen extends Entity
  17.     {
  18.        
  19.         public function WinScreen(x:int, y:int)
  20.         {
  21.             type = "winscreen";
  22.             this.graphic = new Image (Assets.playerwin1);
  23.             this.x = x;
  24.             this.y = y
  25.         }
  26.        
  27.     }
  28.  
  29. }
Add Comment
Please, Sign In to add comment