예제 #1
0
 public LoadingScreen(
     MainGame.Globals globals,
     Task <Screen> t
     )
 {
     this.globals = globals;
     this.t       = t;
 }
예제 #2
0
파일: SongLoader.cs 프로젝트: sunny-lan/Uso
        public SongLoader(
            MainGame.Globals globals,
            SongSelect previous,
            SelectedSong selectedSong
            )
        {
            this.globals  = globals;
            this.previous = previous;
            this.midiLoad = Task.Run(async() =>
            {
                var bytes = await File.ReadAllBytesAsync(selectedSong.SongFile);
                return(MidiToSong.FromMidi(new MidiFile(bytes)));
            });
            var midiMgr = new UWP.UWPMidiManager();

            midiOutLoad = midiMgr.CreateOutput();
        }
예제 #3
0
파일: PlayScreen.cs 프로젝트: sunny-lan/Uso
        public PlayScreen(MainGame.Globals globals, SongLoader previous, Song s, SongSettings songSettings)
        {
            this.globals  = globals;
            this.previous = previous;


            ts = new SimpleTimeSource(s.PPQ, s.InitialTempo);
            //var stf = new StaffRenderer(theme, , s);
            sR = new StaffRenderer(globals.Theme, new MV
            {
                ts       = ts,
                interval = s.PPQ * 4,
            }, s);


            g   = new Core.Game(s, songSettings.MidiOut, ts, this);
            inp = new Mono.KeyboardMIDIInput(g);

            ctr = new ComboCounter(globals.Theme.TestFont, ts);

            g.Play();
        }
예제 #4
0
 public SongSelect(MainGame.Globals globals, GameMenu previous)
 {
     this.globals  = globals;
     this.previous = previous;
 }
예제 #5
0
 public GameMenu(MainGame.Globals globals)
 {
     this.songSelect = new SongSelect(globals, this);
     this.globals    = globals;
 }