Ai to jouzai is now playable

This commit is contained in:
Yonokid
2024-08-20 16:05:58 -04:00
parent 633d0e5b18
commit 4883a9ccc2
2 changed files with 9 additions and 6 deletions

View File

@@ -1,6 +1,7 @@
import time
import os
import pyray as ray
import copy
from collections import deque
@@ -229,6 +230,6 @@ class tja_parser:
# Sorting by load_ms is necessary for drawing, as some notes appear on the
# screen slower regardless of when they reach the judge circle
# Bars can be sorted like this because they don't need hit detection
draw_note_list = deque(sorted(play_note_list, key=lambda d: d['load_ms']))
draw_note_list = deque(sorted(copy.deepcopy(play_note_list), key=lambda d: d['load_ms']))
bar_list = deque(sorted(bar_list, key=lambda d: d['load_ms']))
return play_note_list, draw_note_list, bar_list