Example #1
0
        protected override void LoadContent()
        {
            font = Content.Load<SpriteFont>("Content/SpriteFont1");
            sprite = new SpriteBatch(GraphicsDevice);
            statupscreen = new StartupScreen(sprite, Gm.GraphicsDevice);
            stageselect = new StageSelect(sprite, Gm.GraphicsDevice);
            talkevent = new Event(sprite, Gm.GraphicsDevice, font);
            gameover = new GameOver(sprite, Gm.GraphicsDevice);
            song = new Song[8];
            for (int i = 0; i < 8; i++)
            {
                song[i] = Content.Load<Song>("Content/bgm"+i);
            }

                hitbox = new HitBox();
            enemydata = new GetEnemyDate();
            bgm = new BGM(song);
            bgm.setBGM(1);
            // 秒 (Second) を取得する
             iSecond = dtNow.Second;

             Stream s = File.OpenRead("images/reng1.png");
             reng = Texture2D.FromStream(Gm.GraphicsDevice, s);
        }
Example #2
0
 protected override void LoadContent()
 {
     font = Content.Load<SpriteFont>("Content/SpriteFont1");
     sprite = new SpriteBatch(GraphicsDevice);
     statupscreen = new StartupScreen(sprite, Gm.GraphicsDevice);
     stageselect = new StageSelect(sprite, Gm.GraphicsDevice);
     talkevent = new Event(sprite, Gm.GraphicsDevice, font);
     map = new CreateMap(sprite, Gm.GraphicsDevice);
     hitbox = new HitBox();
     enemydata = new GetEnemyDate();
     // 秒 (Second) を取得する
      iSecond = dtNow.Second;
 }