Open ugur-akin opened 3 years ago
Implement a Game Manager to hold game and level state and manage/maintain gameplay related information.
Game Manager
The considerations for implementation are:
context
custom hook
Game
component
Implement a
Game Manager
to hold game and level state and manage/maintain gameplay related information.The considerations for implementation are:
context
to provide easy access to information to all the UI layer components.custom hook
to be used by theGame
page, which can handle passing the necessary information to the UI components (currently preferred).component
which takes a render method and passes it the information.