6
\$\begingroup\$

What's the best way to program a rhythm based game in XNA? (Some sort of game like Dance Dance Revolution) Would you use the built in GameTime? What logic would you use to make sure the game constantly stays in sync to the music? Any tips would be much appreciated!

What I am basically asking is how you would keep the gameplay in sync with the music. For example in DDR how would I correctly sync the arrows to the beat of the music?

\$\endgroup\$
4
\$\begingroup\$

In XNA it should be simple as the mediaplayer class can report its position while playing back something, use that position (at least that's what I did when I did a 2D scene playback that had to sync perfectly to a music track). It can also be set, so you can do decently accurate scrubbing.

\$\endgroup\$
0
\$\begingroup\$

You can use as a base those midi trackers for xna:

http://xnasfxrsynth.codeplex.com/

http://sharpmod.codeplex.com/

this way you can do a perfect sync with the notes in an easy way.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.