Skip to content

Instantly share code, notes, and snippets.

@AlabasterAxe
Created November 9, 2020 23:44
Show Gist options
  • Save AlabasterAxe/ca8174a3330e1d9f909b99d622bc64a3 to your computer and use it in GitHub Desktop.
Save AlabasterAxe/ca8174a3330e1d9f909b99d622bc64a3 to your computer and use it in GitHub Desktop.
Game Object Class for Flutter implementation of Chrome Dino Game
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