Instantly share code, notes, and snippets.

@MarcinusX MarcinusX/main.dart Secret
Created Jan 14, 2019

Embed
What would you like to do?
if (notes[currentNoteIndex].state != NoteState.tapped) {
//game over
setState(() {
isPlaying = false;
notes[currentNoteIndex].state = NoteState.missed; //<-- set note state to missed
});
animationController.reverse(); //<-- reverse last animation
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment