Last active
August 23, 2021 08:32
-
-
Save juskek/9e9b521b5be2521fa8766dfb032c2ee6 to your computer and use it in GitHub Desktop.
This file contains 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
import 'package:flame/gestures.dart'; // for TapDetector mixin | |
import 'package:flutter/gestures.dart'; // for TapDownDetails class | |
class BoxGame extends Game with TapDetector { | |
bool hasWon = false; | |
@override | |
void onTapDown(TapDownDetails tapDownDetails) { | |
// handle taps here | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment