Ejemplo n.º 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;
 }
Ejemplo n.º 2
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
 }