Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scene/main view #25

Merged
merged 7 commits into from Apr 21, 2022
Merged

Scene/main view #25

merged 7 commits into from Apr 21, 2022

Conversation

ThorAlFR
Copy link
Collaborator

The scene now renders required UI elements, and has basic functionality. It still lacks connections to the server, but this was outside the scope of the Trello task. The main menu uses the ui elements from https://github.com/libgdx/libgdx/tree/master/tests/gdx-tests-android/assets/data. Two buttons and a text field have been made.

Textfield: saves input from this element to a String that serves as a game ID, and should be used to make calls to the server

Join Game button: should take the gameID and send it to the server. Currently skips this step, and simply sends the user directly to the game view.

Settigns button: sends the user to the settings view.

A framework for a 'waiting to join game' has also been made. The render() function has a swith statement, with three states: MAIN, QEUED, and START. The plan is for the Join Game button to change the state to QEUED which will deactivate the UI elements, making sure that the user can't accidentally join two games at once. The player should stay in this state until the server sends a signal that the game is ready to be joined. This check isn't implemented yet.

@larsmathisen
Copy link
Collaborator

Looks well done!

@larsmathisen larsmathisen merged commit 37170d5 into main Apr 21, 2022
@TheHundini TheHundini deleted the scene/main-view branch April 23, 2022 13: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.

None yet

2 participants