Skip to content

Back to menu button#31

Open
aureeliano wants to merge 2 commits intoCodeCreator3:mainfrom
aureeliano:back-to-menu-button
Open

Back to menu button#31
aureeliano wants to merge 2 commits intoCodeCreator3:mainfrom
aureeliano:back-to-menu-button

Conversation

@aureeliano
Copy link

@aureeliano aureeliano commented May 25, 2025

Implemented a 'Back to menu' button in index.html and added a goToMainMenu() function in game.js to handle full UI reset, game state cleanup, canvas clearing, and socket reconnection, allowing users to return to the main menu without refreshing the page.

Grabacin2025-05-24220040-ezgif com-video-to-gif-converter

@CodeCreator3
Copy link
Owner

Hey @aureeliano, I appreciate the pull request! Sorry this reply is a little late, I have been a little checked out over the summer.
The new button is implemented well, and the proper elements are hidden when the button is pressed.
There are a couple of edge cases I noticed:

  • the 'back to menu' button is shown even when the user is in the menu:
image - the 'back to menu' button is hidden by equations when the student is playing: image

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