Esempio n. 1
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            base.LoadContent();

            Background = new Background(this);

            Background.ChangeBackground("BackgroundTextureOne");
            SpriteManager.Add(Background);

            TextureManager = new Managers.ContentManager(this);

            /* Top Wall */
            SpriteManager.Add(new WallSprite(this, new Vector2(0, -HUD.Height / 2f), HUD.Width, 30));

            /* Left Wall */
            SpriteManager.Add(new WallSprite(this, new Vector2(-HUD.Width / 2f, 0), 30, HUD.Height));

            /* Right Wall */
            SpriteManager.Add(new WallSprite(this, new Vector2(HUD.Width / 2f - 15, 0), 30, HUD.Height));

            /* Bottom Wall */
            SpriteManager.Add(new WallSprite(this, new Vector2(0, HUD.Height / 2f - 15), HUD.Width, 30));


            ToolBox = new Display.ToolBox(this);
            HUD.HUDObjects.Add(ToolBox);
            Player = new Player(this);



            Prefabs.CreatePrefabs(this);

            SetupDebug();
        }