Commit graph

30 commits

Author SHA1 Message Date
3e55cc5b90 fixed a minor issue with the save where non-local IP could have a rollback in the save 2023-03-05 12:31:28 +01:00
75d1c1fa92 added load / save system 2023-03-05 12:05:41 +01:00
5bdffd40de changed some grid code to be easier to manipulate 2023-03-05 11:32:36 +01:00
312210b323 Added prompt to save the game 2023-03-04 12:46:58 +01:00
5cbb28df72 fixed some bugs, network error are now handled 2023-03-04 11:11:41 +01:00
c4116b64d1 added an GameError scene in case of error in the Game 2023-03-03 19:07:48 +01:00
aa4b2f8eb2 added a popup for the quit button in the game 2023-03-03 18:26:23 +01:00
0872883a5c the chat is now fully working, input can now take a type_check regex 2023-03-03 12:47:27 +01:00
3caaa8180d batchs are now automatically handled by the scene and the widgets 2023-03-02 21:34:21 +01:00
25a3c0fa86 simplified some part of the game code, made some quality of life change 2023-02-24 19:37:44 +01:00
385adb2cf1 added settings for the game 2023-02-24 16:11:44 +01:00
5dd5663ac6 ajout d'un texte affichant l'état de la partie 2023-02-24 11:46:28 +01:00
c49971fe5a ajout d'un écran de victoire 2023-02-24 11:32:13 +01:00
14ebc82a72 the listener now give as a first argument the widget itself. Added some event to some widgets 2023-02-23 19:53:52 +01:00
a096785c28 unified GameGridAlly and GameGridEnemy 2023-02-23 19:05:28 +01:00
db21bf5e04 it is now possible to see the opponent move on our board 2023-02-23 17:34:43 +01:00
9c8e0f87ce the score system is now working 2023-02-23 17:22:20 +01:00
75d7c407c1 added the turn system 2023-02-23 16:59:55 +01:00
c6ffbb9a58 simplified the usage of socket thanks to the Packet class 2023-02-22 23:19:37 +01:00
4e376bc009 implemented more of the game with the network 2023-02-22 15:50:45 +01:00
2f96ab14ad added a better management for the network thread and a prototypal chat 2023-02-21 23:25:50 +01:00
772e3bb47a added a bomb functionality on the enemy game grid 2023-02-21 17:38:56 +01:00
bda12c3cc1 fixed a bug where the board inverted the rows and columns 2023-02-21 17:01:38 +01:00
930947aded simplified and added the possibility to place boat with the given boat size list on the grid 2023-02-20 23:25:26 +01:00
39d44e7ec2 added a function to render board on the grid (unoptimised !!!) 2023-02-20 15:21:43 +01:00
5dcd570be8 added the possibility to prevent an event to propagate to the next widgets 2023-02-19 16:50:05 +01:00
d2d2f2fdc1 drawing is now done with batch (speeding up the drawing by 50% to 300%) 2023-02-19 12:32:16 +01:00
75c1d4b6e8 added a Style system 2023-02-19 12:02:12 +01:00
ca59abee01 added background on game and renamed some minor variable 2023-02-17 22:49:44 +01:00
ca001511c8 started the networking and interface connection 2023-02-17 15:56:00 +01:00