It'd be rather beneficial in some cases to be able to get the time laps of a song as well as the maximum time length. For instance, perhaps at a specific part of the song, I want some event to happen, it'd be great to access the time lapse as close as possible.
if(levelMusic->lapsedTime() >= Gosu::Song::TimeSignature("2:40"))
EnemyFactory::releaseTheKracken();
Thoughts>
Loading...