Skip to content

How does Arrow or Notes System works? (Give technical explanation) #2092

Closed Answered by Snirozu
Poinet asked this question in Q&A
Discussion options

You must be logged in to vote

when a player enters a song, the game generates notes and adds them to the unspawnNotes array that is sorted from lowest to highest note song position
after it's generated a update() function is called every frame that:

  1. checks if first note in unspawnNotes is 1500ms ahead of current song position and if it is this note is moved to the notes array (the notes array renders notes)
  2. calls keyShit() function

the keyShit() function (basically input system):

  1. sorts notes array from the lowest to highest note song position
  2. gets the first note in notes and checks if a key was just pressed for it and if it is this note gets judged
  3. iterates through sustain notes in notes and checks if a note can be…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Hundrec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants