Created
November 10, 2020 00:12
-
-
Save AlabasterAxe/1af2c24da7cc2942715116b9346396a8 to your computer and use it in GitHub Desktop.
the main implementation of _die() for Flutter Dino Game
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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