Ejemplo n.º 1
0
        public static void Initialize(SprintFourGame instance) {
            game = instance;
            library = new Dictionary<BGMusicState, Song>(Utility.THREE);
            hurriedLibrary = new Dictionary<BGMusicState, Song>(Utility.THREE);
            musicTracker = new Dictionary<BGMusicState, TimeSpan>(Utility.THREE);
            
            library.Add(BGMusicState.Normal, game.Content.Load<Song>(Utility.BG_NORMAL));
            library.Add(BGMusicState.Underground, game.Content.Load<Song>(Utility.BG_UNDERGROUND));
            library.Add(BGMusicState.Transition, game.Content.Load<Song>(Utility.BG_TRANSITION));
            library.Add(BGMusicState.Star, game.Content.Load<Song>(Utility.BG_STAR));

            hurriedLibrary.Add(BGMusicState.Normal, game.Content.Load<Song>(Utility.BG_HURRIED));
            hurriedLibrary.Add(BGMusicState.Transition, game.Content.Load<Song>(Utility.BG_TRANSITION));
            hurriedLibrary.Add(BGMusicState.Star, game.Content.Load<Song>(Utility.BG_STAR));

            musicTracker.Add(BGMusicState.Normal, new TimeSpan(Utility.ZERO, Utility.ZERO, Utility.ZERO));
            Hurried = false;
            Ending = false;
            Triple = false;
            State = BGMusicState.Normal;
            Pause();
        }
Ejemplo n.º 2
0
 public SprintFourGame()
 {
     instance = this;
     graphics = new GraphicsDeviceManager(this);
     Content.RootDirectory = Utility.CONTENT;
 }