Skip to content

Instantly share code, notes, and snippets.

@AlabasterAxe
Created November 10, 2020 00:15
Show Gist options
  • Save AlabasterAxe/2ffb1d2248f9205840fc3cda5f77486e to your computer and use it in GitHub Desktop.
Save AlabasterAxe/2ffb1d2248f9205840fc3cda5f77486e to your computer and use it in GitHub Desktop.
Initialize the ground objects for Flutter Dino Game
ground = [
Ground(location: Offset(0, 0)),
Ground(
location: Offset(groundSprite.imageWidth / WORLD_TO_PIXEL_RATIO, 0))
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment