Beispiel #1
0
    public void GameOver()
    {
        CurrentLevel.Exit();
        CurrentLevel = null;
        NextLevel();

        pusher.Reset();
    }
        public MainWindow()
        {
            // this.AllowsTransparency = true;
               // this.WindowStyle = new System.Windows.WindowStyle();

            InitializeComponent();

            table = new Table();
            level = new Level(canvas1);
        }
Beispiel #3
0
    public void NextLevel()
    {
        if (CurrentLevel == null){
            CurrentLevel = new Levels.Level1(this);

        }else if(CurrentLevel is Levels.Level1){
            CurrentLevel.Exit();
            CurrentLevel = new Levels.Level2(this);

        }else if (CurrentLevel is Levels.Level2){
            CurrentLevel.Exit();
            CurrentLevel = new Levels.Level3(this);
        }
        CurrentLevel.CurrentLevelState = Levels.Level.LEVEL_STATE.RUNNING;
    }