Esempio n. 1
0
 public Game1()
 {
     graphics = new GraphicsDeviceManager(this);
     Content.RootDirectory = "Content";
     fingers = new Fingers();
     session = new GameSession();
     chart = new NoteChart();
     chart.parse(new Scanner(File.ReadAllText("test.txt")));
     session.Initialize(chart);
     Song song = Content.Load<Song>("qby");
     MediaPlayer.Play(song);
     startingTime = DateTime.Now;
 }
Esempio n. 2
0
 public void Initialize(NoteChart chart)
 {
     var rnt = new RawNoteTrace[chart.traces.Count];
     for (int i = 0; i < chart.traces.Count; i++) {
         NoteTrace trace = chart.traces[i];
         rnt[i] = chart.ToRaw(trace);
     }
     foreach (RawNoteTrace trace in rnt) {
         future.Add(trace);
     }
     bpm = chart.bpm;
 }