예제 #1
0
파일: Inventory.cs 프로젝트: Lyloox/Abimn
        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");
        }
예제 #2
0
파일: PauseMenu.cs 프로젝트: Lyloox/Abimn
        public override void Initialize()
        {
            Cursor.SetVisibility(true);

            fond_menu = new Entity();
            fond_menu.Initialize(new Pos(fond_menu.Pos.X+112,fond_menu.Pos.Y+ 94));
            fond_menu.LoadContent("pause menu", "1");

            resume = new Entity(new Pos(fond_menu.Pos.X + 250, fond_menu.Pos.Y + 195));
            resume.LoadContent("pause menu", "2", "6", "2");
            exit = new Entity(new Pos(fond_menu.Pos.X + 250, fond_menu.Pos.Y + 355));
            exit.LoadContent("pause menu", "4", "7", "4");
            option = new Entity(new Pos(fond_menu.Pos.X + 250, fond_menu.Pos.Y + 275));
            option.LoadContent("pause menu", "3", "5", "3");
        }