Exemplo n.º 1
0
        } // Initialize

        protected override void LoadContent()
        {
            spriteBatch = new SpriteBatch(GraphicsDevice);

            mainThemePlaying  = false;
            targetModeScore   = 0;
            LoggedIn          = false;
            firstGameOverpass = true;
            isHighScore       = false;
            username          = "";

            player    = new Archer(Content);
            bow       = new Bow(Content);
            menu      = new Menu(Content);
            loginForm = new LoginForm(Content);
            nyancat   = new Nyan(Content);
            bearMode  = new BearMode(Content);

            font          = Content.Load <SpriteFont>("Menu\\VisitorBrk");
            crossHair     = Content.Load <Texture2D>("Player\\Crosshairs");
            gameOverBear  = Content.Load <Texture2D>("Menu\\AB-Bear");
            archeryTarget = new ArcheryTarget(Content);

            background  = Content.Load <Texture2D>("Menu\\background");
            menuObjects = new List <CollidableObject>();
            menuObjects.Add(menu.getArcherCollide());
            menuObjects.Add(menu.getTargetCollide());
            menuObjects.Add(menu.getbearCollide());
            menuObjects.Add(menu.getExitCollide());

            audioengine = new AudioEngine("Content\\archerXact.xgs");
            wavebank    = new WaveBank(audioengine, "Content\\Wave Bank.xwb");
            soundbank   = new SoundBank(audioengine, "Content\\Sound Bank.xsb");
            mainTheme   = soundbank.GetCue("mainTheme");
        } // LoadContent
Exemplo n.º 2
0
        protected override void LoadContent()
        {
            spriteBatch = new SpriteBatch(GraphicsDevice);

            mainThemePlaying = false;
            targetModeScore = 0;
            LoggedIn = false;
            firstGameOverpass = true;
            isHighScore = false;
            username = "";

            player = new Archer(Content);
            bow = new Bow(Content);
            menu = new Menu(Content);
            loginForm = new LoginForm(Content);
            nyancat = new Nyan(Content);
            bearMode = new BearMode(Content);

            font = Content.Load<SpriteFont>("Menu\\VisitorBrk");
            crossHair = Content.Load<Texture2D>("Player\\Crosshairs");
            gameOverBear = Content.Load<Texture2D>("Menu\\AB-Bear");
            archeryTarget = new ArcheryTarget(Content);

            background = Content.Load<Texture2D>("Menu\\background");
            menuObjects = new List<CollidableObject>();
            menuObjects.Add(menu.getArcherCollide());
            menuObjects.Add(menu.getTargetCollide());
            menuObjects.Add(menu.getbearCollide());
            menuObjects.Add(menu.getExitCollide());

            audioengine = new AudioEngine("Content\\archerXact.xgs");
            wavebank = new WaveBank(audioengine, "Content\\Wave Bank.xwb");
            soundbank = new SoundBank(audioengine, "Content\\Sound Bank.xsb");
            mainTheme = soundbank.GetCue("mainTheme");
        }