Skip to content

Commit

Permalink
Remove back to lobby button temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
s5bug committed Nov 15, 2024
1 parent 18edfa2 commit fd0e77a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ let readyButton: Button;
let changeColorButton: Button;
let startGameButton: Button;

// FIXME
// @ts-ignore
let backToLobbyButton: Button;

function initGame() {
Expand Down Expand Up @@ -1049,7 +1051,7 @@ function updateLeaderboard(ls: LeaderboardState) {
let placement: number = 1

let pidList = Object.entries(ls.strokeCount)
.sort(([_, at], [__, bt]) => bt - at)
.sort(([_, at], [__, bt]) => at - bt)
.map(([pid, _]) => pid)
for(let pid of pidList) {
text(`${placement}.`, 50, placement * 8)
Expand All @@ -1059,7 +1061,7 @@ function updateLeaderboard(ls: LeaderboardState) {
placement++
}

updateButton(backToLobbyButton)
// updateButton(backToLobbyButton)
}

class Random {
Expand Down

0 comments on commit fd0e77a

Please sign in to comment.