Пример #1
0
        public Objects(Texture2D map1, Texture2D map2, Texture2D map3, Texture2D box, SpriteFont text)
        {
            // Statics
            Shops.Set_Texture(box);
            Zombie_manager.Get_Texture(box);

            //Objects
            settings = new Settings(box);
            maps     = new Maps(box, map1, map2, map3);
            font     = text;
            bullets  = new Bullets(box, new Vector2(2, 2));
            weapon   = new Weapons(box, new Rectangle(50, 50, 10, 5));
            player   = new Player(box, new Rectangle(20, 20, bodySize, bodySize));
            menu     = new Menu(box, new Vector2(350, 150));
        }