예제 #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()
        {
            navi.Initialize(Content, new Vector2(1, 1), stage);

            foreach (KeyValuePair <string, AttackType> entry in attackTypes)
            {
                entry.Value.Initialize(Content);
            }

            foreach (KeyValuePair <string, Chip> entry in chipsList)
            {
                entry.Value.Initialize(Content);
            }

            virus[0].Initialize(Content, new Vector2(4, 1), stage);
            virus[1].Initialize(Content, new Vector2(3, 0), stage);
            virus[2].Initialize(Content, new Vector2(5, 2), stage);

            foreach (Virus foo in virus)
            {
                foo.AiInitialize();
            }

            spriteBatch = new SpriteBatch(GraphicsDevice);

            loadSongsFromFile();

            MediaPlayer.Volume = 0.2f;
            MediaPlayer.Play(songList["network"]);
            MediaPlayer.IsRepeating = true;

            loadTilesetsFromFile();

            charge         = Content.Load <SoundEffect>("soundFX/battle/charge");
            chargeComplete = Content.Load <SoundEffect>("soundFX/battle/chargeComplete");

            foreach (KeyValuePair <string, Area> entry in areaList)
            {
                entry.Value.loadTileset(tilesetList[entry.Value.tilesetName]);
                entry.Value.generateMap();
            }
            newGame();

            debugContent();
        }