Created
November 9, 2020 23:44
-
-
Save AlabasterAxe/ca8174a3330e1d9f909b99d622bc64a3 to your computer and use it in GitHub Desktop.
Game Object Class for Flutter implementation of Chrome Dino Game
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
abstract class GameObject { | |
Widget render(); | |
Rect getRect(Size screenSize, double runDistance); | |
void update(Duration lastTime, Duration elapsedTime) {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment