Skip to content

Instantly share code, notes, and snippets.

@mukeshsolanki
Created May 27, 2022 06:03
Show Gist options
  • Save mukeshsolanki/6c9f8d0f8aaed3326b0827bb93100db8 to your computer and use it in GitHub Desktop.
Save mukeshsolanki/6c9f8d0f8aaed3326b0827bb93100db8 to your computer and use it in GitHub Desktop.
private lateinit var scope: CoroutineScope // Needed by our game engine
// Our instance of the game engine
private var gameEngine = GameEngine(
scope = lifecycleScope,
onGameEnded = {
//TODO show Endgame screen
},
onFoodEaten = {
//TODO Increment game srore
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment