ugur-akin / algo-robo

0 stars 0 forks source link

Game Manager - Sequence State #6

Open ugur-akin opened 3 years ago

ugur-akin commented 3 years ago

Once a level is loaded, the user is playing the game and inputting a sequence. While the main component that's responsible for processing these inputs is the Command Palette component, game manager should retrieve the sequence related information from the levelInformation object and pass it to the UI Layer components, namely the Command Palette and Sequencer components. Game manager should own the memory store of the user input sequence and modify it when needed (i.e. Command Palette sends a message to add a command).

Later, when the simulation begins, the game manager should be responsible for tracking which steps are simulated and share this information with the UI layer components.

Therefore, the game manager should: