Exemplo n.º 1
0
        public Bar(string PATH, Vector2 DIMS)
        {
            //boarder = BOARDER;

            healthbar   = new Basic2d(PATH, new Vector2(0, 0), new Vector2(DIMS.X, DIMS.Y));
            healthbarbg = new Basic2d(PATH + "zero", new Vector2(0, 0), new Vector2(DIMS.X, DIMS.Y));
        }
Exemplo n.º 2
0
        public World(PassObject RESETWORLD)
        {
            ResetWorld = RESETWORLD;



            offset = new Vector2(0, 0);

            Global.gamefont = Global.content.Load <SpriteFont>("FONT");

            bg = new Backgrounds("Background", new Vector2(0, 0), new Vector2(4000, 4000));

            Ship = new Hero("Ship", new Vector2(bg.dims.X / 2, bg.dims.Y / 2), new Vector2(28, 44));

            GameGlobal.PassProjectiles = Addprojectile;

            GameGlobal.PassMob = AddMob;


            istimeofboss   = false;
            delayspawnboss = 300;

            GameGlobal.triggerNuclear = TriggerNuclearBomb;

            GameGlobal.GunnerPassProjectiles  = GunnerProjectiles;
            GameGlobal.FatboizPassProjectiles = FatboizProjectiles;
            GameGlobal.FatboizPassMob         = FatboizSummon;
            GameGlobal.BlitzHook       = BlitzHook;
            GameGlobal.BlitzHookEffect = BlitzHookEffect;

            healthbar = new Bar("HB", new Vector2(600, 35));

            manabar = new Bar("MB", new Vector2(500, 15));

            bosshealthbar = new Bar("BossHP", new Vector2(800, 55));

            scoreimg = new Basic2d("Score", new Vector2(0, 0), new Vector2(150, 75));

            spawnPoints.Add(new SpawnPoint("UFO3", new Vector2(100, 100), new Vector2(200, 200)));

            spawnPoints.Add(new SpawnPoint("UFO3", new Vector2(3800, 100), new Vector2(200, 200)));

            spawnPoints.Add(new SpawnPoint("UFO3", new Vector2(100, 3800), new Vector2(200, 200)));

            spawnPoints.Add(new SpawnPoint("UFO3", new Vector2(3800, 3800), new Vector2(200, 200)));

            orbspawn      = false;
            orbspawntimer = 100;

            iceworldtimer = 300;
            lbltrigger    = 50;

            timescore = 0;



            imagePause = new Basic2d("pause2", new Vector2(Ship.pos.X, Ship.pos.Y), new Vector2(500, 500));

            imageGameOver = new Basic2d("gameover4", new Vector2(Ship.pos.X, Ship.pos.Y), new Vector2(836, 183));
        }
Exemplo n.º 3
0
        public Hero(string PATH, Vector2 POS, Vector2 DIMS) : base(PATH, POS, DIMS)
        {
            isdead          = false;
            speed           = 5.0f; //5f
            hitdist         = 35;
            gravityradius   = 200;
            bulletdelay     = 1;
            currenthealth   = 100;
            maxhealth       = currenthealth;
            currentmana     = 100;
            maxmana         = currentmana;
            life            = 3;
            triggeredSwift  = false;
            triggergotohell = false;
            timeSwift       = 100;
            timedeadeffect  = 30;
            spawndelay      = 100;
            critchance      = 10;

            cursor      = new Cursor("crosshair_red_large", new Vector2(2000 - Global.screenwidth / 2, 2000 - Global.screenheight / 2), new Vector2(30, 30));
            spawncircle = new SpawnCircle("SpawnCircle", new Vector2(0, 0), new Vector2(120, 100));
            herolife.Add(new HeroLife("Heart", new Vector2(0, 0), new Vector2(50, 50)));
            herolife.Add(new HeroLife("Heart", new Vector2(0, 0), new Vector2(50, 50)));
            herolife.Add(new HeroLife("Heart", new Vector2(0, 0), new Vector2(50, 50)));
            swiftaura   = new Basic2d("SwiftAura", new Vector2(0, 0), new Vector2(100, 100));
            nuclearbomb = new Basic2d("NuclearBomb", new Vector2(0, 0), new Vector2(75, 75));
        }