public LoadingScreen( MainGame.Globals globals, Task <Screen> t ) { this.globals = globals; this.t = t; }
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(); }
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(); }
public SongSelect(MainGame.Globals globals, GameMenu previous) { this.globals = globals; this.previous = previous; }
public GameMenu(MainGame.Globals globals) { this.songSelect = new SongSelect(globals, this); this.globals = globals; }