tridecco / game-client-web

Tridecco Game Client is a frontend application designed to support Tridecco games. It provides user interface rendering, user interaction handling, dynamic content loading, and communication with the backend server.
https://play.tridecco.com
GNU Affero General Public License v3.0
1 stars 0 forks source link

Implement Game Page and Logic #12

Closed TKanX closed 1 week ago

TKanX commented 1 month ago

Description:

Create a comprehensive game page that users are directed to after matching or joining custom rooms. This includes the waiting interface for game matching, the custom room interface, and the game-ready interface. The game page will encompass various components such as board rendering, piece vector conversion, network requests (using socket.io), and essential UI elements like buttons and controls.

Requirements:

TKanX commented 1 month ago

Added game route and pages for game functionality

https://github.com/tridecco/game-client-web/commit/cd2be2e6c3be1aae83358a5634a33de8359b9b3f

TKanX commented 1 month ago

Added GameUI class and update game page

https://github.com/tridecco/game-client-web/commit/5bfb0ea679eeb394bd31c56755b4c5ae1d57a729

TKanX commented 1 month ago

Added error component to game page

https://github.com/tridecco/game-client-web/commit/fc17726fb40ec381f31cf48bdf066e02af156237

TKanX commented 1 month ago

Added error handling to GameUI and modify section management

https://github.com/tridecco/game-client-web/commit/33d46bebcd8274d29ab3acf9af266056bb0ae261

TKanX commented 1 month ago

Added error handling for single active session

https://github.com/tridecco/game-client-web/commit/84e4b0a9416328ade311427d495d4d7f821d4910

TKanX commented 1 month ago

Added disconnect event listener to handle server disconnections

https://github.com/tridecco/game-client-web/commit/167c81bd2c0c2e327d0252adfc345b94b4d9d9ab

Added a disconnect event listener to the GameNetwork class in game.ejs. This listener displays an error message when the user is disconnected from the server and provides an option to go back to the home page. This improves the user experience by gracefully handling disconnections.

TKanX commented 1 month ago

Added ready section to GameUI and modify section management

https://github.com/tridecco/game-client-web/commit/4034c7ba7d936287e5cdbd45ab8bdc36ba44ad3f

TKanX commented 1 month ago

Corrected variable name in showGameReady method and fix DOM element updates

https://github.com/tridecco/game-client-web/commit/fbf765d8c7541670fab2e70b2fa081ba4cfc02aa

TKanX commented 1 month ago

Resolved type errors in showGameReady method

https://github.com/tridecco/game-client-web/commit/444affd9b23662d5c0958a3609ee035adc8df494

TKanX commented 1 month ago

Fixed player avatar alt text in GameUI class

https://github.com/tridecco/game-client-web/commit/ef6c1f555fdc033d2a44c8582b5ce1f84bb140d8

TKanX commented 1 month ago

Added ID to player element in GameUI class

https://github.com/tridecco/game-client-web/commit/4ecf4360fd442e2adc871e8d0dbbe1bdc972f0ed

TKanX commented 1 month ago

Added playerReady method to GameNetwork and GameUI classes

https://github.com/tridecco/game-client-web/commit/1779c6248a2156ca250789d7a4b55bce1966099e

TKanX commented 1 month ago

Enhanced showGameReady to disable start button on click

https://github.com/tridecco/game-client-web/commit/2efd2606f30e2a3a8bf21e82aefb054faf3e9c1f

TKanX commented 1 month ago

Added game ready event handling and UI integration

https://github.com/tridecco/game-client-web/commit/0bb7089747aa4a62c8286ef83730075f15dd2891

TKanX commented 1 month ago

Enhanced showRoom method for improved room management

https://github.com/tridecco/game-client-web/commit/95b20990e1a8970bc752287bdbbd5aba6a32a136

TKanX commented 1 month ago

Improved start game button behavior in GameUI class

https://github.com/tridecco/game-client-web/commit/f88e1d11a62da1fe27ca6e7be2d873e2f17d73ed

TKanX commented 1 month ago

Added leaveRoom method to GameNetwork class

https://github.com/tridecco/game-client-web/commit/d4197dc84c479ae0db171a28ad9f83d2f66e4fb9

TKanX commented 1 month ago

Updated room component with exit and copy functionality

https://github.com/tridecco/game-client-web/commit/544fe40894a94364fc7d9d3affaef73ad33b591a

TKanX commented 1 month ago

Enhanced room functionality for joining and creating rooms

https://github.com/tridecco/game-client-web/commit/b79596af7c4fcc8dfa803a6a6a42347a952a460f

TKanX commented 1 month ago

Replaced currentRoomPlayersCount with currentRoomPlayers array

https://github.com/tridecco/game-client-web/commit/cfb8845f55c0dc2f201767ca0981a6fba8f89a05

TKanX commented 1 month ago

Added current player detection in room player list

https://github.com/tridecco/game-client-web/commit/8a1207b1ef0e5a900cd068ed40c594f6b1b99925

TKanX commented 1 month ago

Implemented host transfer functionality

https://github.com/tridecco/game-client-web/commit/e82eb40e84285801ee56f760d5da602b1acb1f6e

TKanX commented 1 month ago

Added startRoom method to GameNetwork class

https://github.com/tridecco/game-client-web/commit/c809e4bc1b4cb51c71f75fc321fa44f6542f24ea

TKanX commented 1 month ago

Moved game start logic to the Game class

https://github.com/tridecco/game-client-web/commit/845add80e773aef07dd03c3704e1d4c55cfa64b4