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; }
// 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 }
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 }