fix: correct collision message and improve asset loading
- Fix typo in collision message from "Ihr seit koolidiert!" to "Es gab eine Kollision!" - Reorder TODO comment in endGame method - Rename "Früchte" folder to "Fruits" for consistency - Add TileLoader class to preload and cache game assets - Refactor Overlay class to use TileLoader for improved image handling
This commit is contained in:
@@ -55,12 +55,13 @@ class Game{
|
||||
}
|
||||
|
||||
endGame(msg){
|
||||
// TODO: Spielende in die Datenbank eintragen
|
||||
|
||||
|
||||
this.io.to(`game-${this.code}`).emit("gameEnd", {
|
||||
msg: msg,
|
||||
score: this.score,
|
||||
});
|
||||
|
||||
// TODO: Spielende in die Datenbank eintragen
|
||||
}
|
||||
|
||||
waitingForPlayers(changeTime = false){
|
||||
|
||||
Reference in New Issue
Block a user