Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
ProgArkProject
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sixten Müller
ProgArkProject
Merge requests
!18
Draft: Resolve "Create game model"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Closed
Draft: Resolve "Create game model"
2-create-game-model
into
main
Overview
0
Commits
21
Pipelines
0
Changes
3
Closed
Draft: Resolve "Create game model"
Sixten Müller
requested to merge
2-create-game-model
into
main
Apr 15, 2024
Overview
0
Commits
21
Pipelines
0
Changes
3
Closes
#2 (closed)
0
0
Merge request reports
Viewing commit
0f90614f
Prev
Next
Show latest version
3 files
+
9
−
15
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
0f90614f
feat: added ifAllPlayersFinished check
· 0f90614f
Sixten Müller
authored
Apr 18, 2024
core/src/com/wordbattle/game/controller/LeaderBoardController.java
+
4
−
2
View file @ 0f90614f
Edit in single-file editor
Open in Web IDE
Show full file
@@ -101,8 +101,10 @@ public class LeaderBoardController {
mouseYCoordinate
=
Gdx
.
input
.
getY
();
Vector3
touchPos
=
new
Vector3
(
Gdx
.
input
.
getX
(),
Gdx
.
input
.
getY
(),
0
);
state
.
getCam
().
unproject
(
touchPos
);
// convert from screen coordinates to world coordinates
if
(
leaderBoardView
.
getNextRoundBounds
().
contains
(
touchPos
.
x
,
touchPos
.
y
)){
state
.
getStateManager
().
setState
(
new
GamePlayState
(
state
.
getStateManager
(),
_FBIC
,
pin
,
nickname
));
if
(
leaderBoardView
.
isHost
())
{
if
(
leaderBoardView
.
getNextRoundBounds
().
contains
(
touchPos
.
x
,
touchPos
.
y
))
{
state
.
getStateManager
().
setState
(
new
GamePlayState
(
state
.
getStateManager
(),
_FBIC
,
pin
,
nickname
));
}
}
Loading