Exemplo n.º 1
0
        private void setuplvl1()
        {
            level lvl1 = new level(1200, 1200, 1, 45, 300, new pistol(new PointF(0, 0)));

            lvl1.addenemy("easyenemy", 275, 105, 275, 105, 350, 105, 350, 660, 275, 660, 350, 660, 350, 105);
            lvl1.addenemy("easyenemy", 950, 105, 950, 105, 1000, 105, 1000, 660, 950, 660, 1000, 660, 1000, 105);
            lvl1.addenemy("easyenemy", 700, 375, 700, 375, 550, 375, 550, 600, 400, 600, 550, 600, 550, 375);
            lvl1.addenemy("easyenemy", 700, 325, 700, 325, 550, 325, 550, 100, 400, 100, 550, 100, 550, 325);
            lvl1.addenemy("easyenemy", 100, 950, 100, 950, 500, 950);
            lvl1.addenemy("easyenemy", 500, 950, 500, 950, 100, 950);


            lvl1.addwall(225, 150, 50, 450);
            lvl1.addwall(600, 125, 250, 50);
            lvl1.addwall(600, 575, 250, 50);
            lvl1.addwall(800, 150, 50, 450);
            lvl1.addwall(0, 750, 800, 50);

            lvl1.addpowerup(700, 380, "firstaidpowerup");
            lvl1.addpowerup(400, 380, "tripleshot");



            levellist.Add(lvl1);
        }
Exemplo n.º 2
0
        private void setuplvl2()
        {
            level lvl2 = new level(1400, 1600, 1, 400, 700, new superballgun(new PointF(0, 0)));

            lvl2.addenemy("eliteenemy", 75, 600, 75, 1175, 175, 1175, 75, 1175, 75, 175, 175, 175, 75, 175);
            lvl2.addenemy("easyenemy", 175, 600, 175, 175, 275, 175, 175, 175, 175, 1175, 275, 1175, 175, 1175);
            lvl2.addenemy("easyenemy", 325, 1050, 325, 1050, 275, 1050, 275, 325, 500, 325, 275, 325, 275, 1050);
            lvl2.addenemy("eliteenemy", 1400, 750, 1400, 750, 1200, 750);
            lvl2.addenemy("easyenemy", 1400, 500, 1400, 500, 1200, 500);
            lvl2.addenemy("easyenemy", 1400, 1000, 1400, 1000, 1200, 1000);

            lvl2.addwall(100, 200, 25, 950);
            lvl2.addwall(200, 200, 25, 950);
            lvl2.addwall(100, 100, 1100, 25);
            lvl2.addwall(300, 1225, 150, 150);
            lvl2.addwall(300, 200, 200, 50);
            lvl2.addwall(300, 400, 50, 600);
            lvl2.addwall(550, 350, 100, 800);
            lvl2.addwall(350, 550, 100, 50);
            lvl2.addwall(1200, 250, 200, 200);
            lvl2.addwall(1200, 550, 200, 100);
            lvl2.addwall(1200, 850, 200, 100);
            lvl2.addwall(1200, 1050, 200, 200);



            lvl2.addpowerup(125, 1175, "firstaidpowerup");
            lvl2.addpowerup(400, 175, "machinegun");

            levellist.Add(lvl2);
        }
Exemplo n.º 3
0
        private void setuplvl3()
        {
            level lvl3 = new level(1800, 2400, 1, 400, 400, new pistol(new PointF(0, 0)));

            lvl3.addpowerup(400, 175, "superballgun");



            lvl3.addwall(800, 0, 50, 250);
            lvl3.addwall(800, 350, 50, 250);
            lvl3.addwall(800, 700, 50, 250);
            lvl3.addwall(800, 1050, 50, 250);
            lvl3.addwall(800, 1400, 50, 250);

            lvl3.addwall(1600, 0, 50, 250);
            lvl3.addwall(1600, 350, 50, 250);
            lvl3.addwall(1600, 700, 50, 250);
            lvl3.addwall(1600, 1050, 50, 250);
            lvl3.addwall(1600, 1400, 50, 250);

            lvl3.addwall(0, 600, 300, 50);
            lvl3.addwall(400, 600, 300, 50);
            lvl3.addwall(800, 600, 300, 50);
            lvl3.addwall(1200, 600, 300, 50);
            lvl3.addwall(1600, 600, 300, 50);

            lvl3.addwall(0, 1200, 300, 50);
            lvl3.addwall(400, 1200, 300, 50);
            lvl3.addwall(800, 1200, 300, 50);
            lvl3.addwall(1200, 1200, 300, 50);
            lvl3.addwall(1600, 1200, 300, 50);

            lvl3.addenemy("boss", 1200, 1000);
            lvl3.addpowerup(900, 1000, "enemyspawner");
            lvl3.addpowerup(1300, 1000, "enemyspawner");

            levellist.Add(lvl3);
        }