Beispiel #1
0
        public override void Initialize()
        {
            Cursor.SetVisibility(true);
            armor = new Entity(new Pos(230, 14));
            armor.LoadContent("inventory", "2", "3", "3");

            weapons = new Entity(new Pos(260, 15));
            weapons.LoadContent("inventory", "10", "11", "11");

            div = new Entity(new Pos(314, 13));
            div.LoadContent("inventory", "6", "7", "7");

            quest = new Entity(new Pos(340, 16));
            quest.LoadContent("inventory", "8", "9", "9");

            cons = new Entity(new Pos(287, 8));
            cons.Initialize();
            cons.LoadContent("inventory", "4", "5", "5");

            _inv = new Entity(new Pos(15, 10));
            _inv.LoadContent("inventory", "1");

            shit = new Entity(new Pos(225, 50), false);
            shit.LoadContent("inventory", "12");

            overshit = new Ennemy(new Pos(225, 50), false);
            overshit.LoadContent("inventory", "13");
        }
Beispiel #2
0
        public override void Initialize()
        {
            Hero.Mana = 100;
            if (G.willFightBoss)
                Music.Play("boss");
            else
                Music.Play("monster");
            Cursor.SetVisibility(false);
            _hero = new Entity(new Pos(100, 400));
            _ennemy = new Ennemy(new Pos(800, 400));

            _map = new FightMap();
            _hero.LoadContent("fight", "1");
            _ennemy.LoadContent("fight", "3");
            _ennemy.Life = 10000;
            if (G.willFightBoss)
            {
                _ennemy.LoadContent("main deco/9");
                _ennemy.Life = 20000;
            }

            _background = new Entity();
            _background.LoadContent("fight/9");
            _background2 = new Entity(new Pos(0, 450));
            _background2.LoadContent("fight/9");

            _fireball = new Entity();
            _fireball.LoadContent("fight/fireball");
            _fireball.Visible = false;

            _ennemyFireball = new Entity();
            _ennemyFireball.LoadContent("fight/fireball2");
            _fireball.Visible = false;
            _ennemyFireball.Pos = new Pos(_ennemy.Pos.I, _ennemy.Pos.J - 32);
        }