예제 #1
0
 public LevelVictory(Level level)
 {
     this.level = level;
     backGround = new Image(this.level.Game,Vector2.Zero , @"PlaySceneAssets/background/Background4");
     this.overlay = new Image(this.level.Game, new Vector2(120f, 100f) , @"PlaySceneAssets/overlay/Congratulation");
     rectangle = new Rectangle((int)overlay.Rectangle.X + 290, (int)overlay.Rectangle.Y + 243, overlay.Rectangle.Width / 10, overlay.Rectangle.Height / 15);
 }
예제 #2
0
 public LevelGameOver(Level level)
 {
     this.level = level;
     this.text = this.level.Game.Content.Load<Texture2D>(@"PlaySceneAssets/Player/blokje");
     this.overlay = new Image(this.level.Game, new Vector2(0,0), @"PlaySceneAssets/overlay/GameOver");
     rectangle = new Rectangle((int)overlay.Rectangle.X + 290, (int)overlay.Rectangle.Y + 243, overlay.Rectangle.Width / 10, overlay.Rectangle.Height / 15);
 }
예제 #3
0
        //loadContent
        public void LoadContent()
        {
            this.level = new Level(this.game, levelNumber);
            //Console.WriteLine(levelNumber);

            this.bgMusic = this.game.Content.Load<Song>(@"PlayScene\Background\BGmusic");
            MediaPlayer.Play(this.bgMusic);
            MediaPlayer.Volume = 1;
        }
예제 #4
0
 //load content
 public void Loadcontent()
 {
     this.level = new Level(this.game, levelNumber);
 }
예제 #5
0
 //Constructor
 public LevelEndGame(Level level)
 {
     this.level = level;
     this.background = new Image(this.level.Game, @"PlaySceneAssets\Background\Background2", Vector2.Zero);
     this.congratulations = new Image(this.level.Game, @"PlaySceneAssets\Background\Congratulation", new Vector2(120f,100f));
 }
예제 #6
0
 public void loadLevel()
 {
     this.level = new Level(this.game, this.levelNumber);
 }
예제 #7
0
 public LevelPlay(Level level)
 {
     this.level = level;
 }
예제 #8
0
 //Constructor
 public LevelPause(Level level)
 {
     this.level = level;
     this.overlay = new Picture(level.Game, @"PlayScene\Overlay\overlay", Vector2.Zero);
 }
예제 #9
0
 public void LoadLevel()
 {
     this.level = new Level(this.game, this.levelIndex);
 }
예제 #10
0
 //Constructor
 public LevelPause(Level level)
 {
     this.level = level;
     this.overlay = new Image(level.Game, @"PlaySceneAssets\Overlay\overlay", Vector2.Zero);
 }
예제 #11
0
 public LevelOpenDoor(Level level)
 {
     this.level = level;
     this.overlay = new Image(this.level.Game, new Vector2(0, 0), @"PlaySceneAssets/overlay/overlayDoorsAreOpen");
 }
예제 #12
0
 // LoadConctent methode. Deze methode maakt nieuwe objecten aan van de verschillende
 // classes.
 public void LoadContent()
 {
     this.level = new Level(this.game, 0);
 }
예제 #13
0
 //Constructor
 public LevelDoorOpen(Level level)
 {
     this.level = level;
     this.doorsAreOpen = new Image(level.Game, @"PlaySceneAssets\Overlay\DoorOpenOverlay", Vector2.Zero);
 }
예제 #14
0
 public LevelDeath(Level level)
 {
     this.level = level;
     this.gameOver = new Image(level.Game, @"PlaySceneAssets\Overlay\overlayDeath",  Vector2.Zero);
 }
예제 #15
0
 public LevelPause(Level level)
 {
     this.level = level;
     this.overlay = new Image(this.level.Game, new Vector2(0,0), @"PlaySceneAssets/overlay/overlay");
 }
예제 #16
0
 //Loadcontent
 public void LoadContent()
 {
     this.levelEditorPanel = new LevelEditorPanel(this, new Vector2(0f,448f));
     this.level = new Level(this.game, this.levelIndex);
     this.LoadLevel();
 }
예제 #17
0
 //Constructor
 public LevelNextLevel(Level level)
 {
     this.level = level;
     this.gameOver = new Image(level.Game, @"PlaySceneAssets\Overlay\LevelNextLevel", Vector2.Zero);
 }
예제 #18
0
 //Constructor
 public LevelNextLevel(Level level)
 {
     this.level = level;
     this.gameOver = new Picture(level.Game, @"PlayScene\Overlay\LevelNextLevel", Vector2.Zero);
 }
예제 #19
0
 //Constructor
 public LevelGameOver(Level level)
 {
     this.level = level;
     this.gameOver = new Picture(level.Game, @"PlayScene\Overlay\GameOverOverlay", Vector2.Zero);
 }