示例#1
0
 public Goal(Texture2D texture, int x, int y, int width, int height, Game1 game1, GameScreen gs)
 {
     game        = game1;
     ls          = new LevelScreen(game);
     theGame     = game;
     save        = new SaveInfo();
     state       = new GameState(game);
     rect        = new Rectangle(x, y, width, height);
     xPostion    = x;
     yPostion    = y;
     this.width  = width;
     this.height = height;
     goalTexture = texture;
     gameScreen  = gs;
 }
示例#2
0
 public Goal(Texture2D texture, int x, int y, int width, int height, Game1 game1, GameScreen gs)
 {
     game = game1;
     ls = new LevelScreen(game);
     theGame = game;
     save = new SaveInfo();
     state = new GameState(game);
     rect = new Rectangle(x, y, width, height);
     xPostion = x;
     yPostion = y;
     this.width = width;
     this.height = height;
     goalTexture = texture;
     gameScreen = gs;
 }
示例#3
0
 // switched screen to Level screen
 public void SwitchLevel(Game1 game)
 {
     levelScreen = new LevelScreen(game); //makes new level screen
     currentScreen = Screen.LevelScreen; // sets current screen to level screen
 }
示例#4
0
 public void SwitchLevel(Game1 game)        // switched screen to Level screen
 {
     levelScreen   = new LevelScreen(game); //makes new level screen
     currentScreen = Screen.LevelScreen;    // sets current screen to level screen
 }