Skip to content

Conversation

@linusrachlis
Copy link
Owner

This addresses issue #19. However, main.ts is getting quite unweildy with spaghetti state management. In addition, there is a conceptual issue becoming clear between game-rendered input prompts and DOM-level input prompts. E.g. in the game-over state, the game renders the message "Space to restart," but now that only works if the game is not "paused," aka input is being captured. As another example, the hotkeys identified by the game-mode checkbox labels only work when input is captured, but that's not clear from looking at them.

The plan for the state management issue is to rewrite the UI in React, which will be the next bit of work.

I'm not sure OTTOMH what to do about the conceptual issue, but I think clarifying state management may help in thinking it through.

This addresses issue #19. However, main.ts is getting quite unweildy
with spaghetti state management. In addition, there is a conceptual
issue becoming clear between game-rendered input prompts and DOM-level
input prompts. E.g. in the game-over state, the game renders the message
"Space to restart," but now that only works if the game is not "paused,"
aka input is being captured. As another example, the hotkeys identified
by the game-mode checkbox labels only work when input is captured, but
that's not clear from looking at them.

The plan for the state management issue is to rewrite the UI in React,
which will be the next bit of work.

I'm not sure OTTOMH what to do about the conceptual issue, but I think
clarifying state management may help in thinking it through.
@netlify
Copy link

netlify bot commented Oct 3, 2023

Deploy Preview for polite-sfogliatella-f40428 ready!

Name Link
🔨 Latest commit 9eb5431
🔍 Latest deploy log https://app.netlify.com/sites/polite-sfogliatella-f40428/deploys/651b7eb8162d850009a72277
😎 Deploy Preview https://deploy-preview-21--polite-sfogliatella-f40428.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@linusrachlis linusrachlis marked this pull request as ready for review July 15, 2024 20:13
@linusrachlis linusrachlis marked this pull request as draft July 15, 2024 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants