use tiles to improve perf

This commit is contained in:
evanpelle
2024-08-10 19:35:31 -07:00
parent f7b0441f41
commit dd94bb4c65
8 changed files with 64 additions and 54 deletions
+6 -6
View File
@@ -56,12 +56,12 @@ class Client {
this.lobbiesContainer.appendChild(button);
});
// Join first lobby
if (!this.hasJoined && lobbies.length > 0) {
this.hasJoined = true
console.log(`joining lobby ${lobbies[0].id}`)
this.joinLobby(lobbies[0].id)
}
// // Join first lobby
// if (!this.hasJoined && lobbies.length > 0) {
// this.hasJoined = true
// console.log(`joining lobby ${lobbies[0].id}`)
// this.joinLobby(lobbies[0].id)
// }
}
async fetchLobbies() {