Hi guys,

I'm creating a rhythm style game in C++ where the notes come down the screen and you have to hit a key that corresponds to that note within the correct time, I'm sure we all know those type of games by now :3

My question is regarding the best way to create hundreds, and in some cases possibly thousands of note objects. I currently thought of two ways to do it:

1) Create and place every note manually before the song starts. This would mean placing notes at positions like 200, -4000, so the notes move down the Y axis at the same pace, and obviously the lower the Y axis, the later the note arrives.

2) Create the notes as the song is playing based on the amount of time that has elapsed, and place them all in the same position on the Y axis when doing so.

The first way appeals to me more as I can create everything before the game begins, and keep destroying the notes as they're no longer needed, but it seems like a strange idea to have notes starting at such low numbers on the Y axis; is this a feasible way to do it?

The second way seems like a better option, as there's a lot less notes, thus a lot less lag throughout, but I'm not entirely sure how I'd go about this option; so if this is the better option, a little advice on how to go about this would be appreciated.

Thanks for reading

~Rob