Skip to content

Instantly share code, notes, and snippets.

@AlabasterAxe
Created November 10, 2020 00:12
Show Gist options
  • Select an option

  • Save AlabasterAxe/1af2c24da7cc2942715116b9346396a8 to your computer and use it in GitHub Desktop.

Select an option

Save AlabasterAxe/1af2c24da7cc2942715116b9346396a8 to your computer and use it in GitHub Desktop.
the main implementation of _die() for Flutter Dino Game
void _die() {
setState(() {
worldController.stop();
dino.die();
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment