Пример #1
0
        public MainMenu()
        {
            collidables = new ArrayList();

            background = new Background();
            playButton = new PlayerButton();
            exitButton = new PlayerButton();
            player = new Player();
            ground = new Ground(new Rectangle(0, 345, 1000, 10));

            collidables.Add(playButton);
            collidables.Add(exitButton);
            collidables.Add(ground);
        }
Пример #2
0
        public Level2()
        {
            background = new Background();
            player = new Player();
            ground = new Ground(new Rectangle(0, 400, 1000, 10));
            nextButton = new PlayerButton();
            hpHearth = new Platform();
            hpHearth1 = new Platform();
            hpHearth2 = new Platform();
            hpHearth3 = new Platform();
            hpHearth4 = new Platform();
            platform = new Platform();
            platform1 = new Platform();
            platform2 = new Platform();
            platform3 = new Platform();
            platform4 = new Platform();
            platform5 = new Platform();

            collidables = new ArrayList();
            enemies = new List<Enemy>();
        }