Exemple #1
0
        protected override void LoadContent()
        {
            DrawingHelper.Initialize(GraphicsDevice);
            CONTENT_MANAGER.spriteBatch       = new SpriteBatch(GraphicsDevice);
            CONTENT_MANAGER.CurrentInputState = new InputState(Mouse.GetState(), Keyboard.GetState());

            CONTENT_MANAGER.LoadFonts("default");
            CONTENT_MANAGER.LoadSprites("Cats", "tank", "bullet");

            InitScreens();
        }
        protected override void LoadContent()
        {
            CONTENT_MANAGER.spriteBatch = new SpriteBatch(GraphicsDevice);

            #region Load font
            CONTENT_MANAGER.LoadFont("default", "hack");
            #endregion

            #region Load spritesheet
            CONTENT_MANAGER.LoadSprites("animation", "spritesheet");
            #endregion

            #region Load audio
            CONTENT_MANAGER.LoadSound("door_close", "door_open", "footstep", "lever", "switch_pressed", "switch_released", "tele", "light_on", "light_off");
            #endregion

            InitScreen();
        }