Commit graph

122 commits

Author SHA1 Message Date
8ef6d0d239 fixed an issue where leaving while the other was deciding to load the old save would softlock the user 2023-03-08 23:18:05 +01:00
708e32e245 changed the game background 2023-03-08 22:51:46 +01:00
ff14a4e5d4 added more animations for the boats, preview boat are now handled with a whole texture instead of a color filter 2023-03-08 21:14:45 +01:00
1c872f7a28 ajout de plus de son et d'une meilleure gestion des players 2023-03-08 18:18:17 +01:00
94243d3028 replay now start from the last movement, added a shortcut will the mouse scroll 2023-03-08 17:37:57 +01:00
c5e33ce6f8 new texture for the menus 2023-03-08 08:56:26 +01:00
d574703e90 position now use a css like distance system 2023-03-07 21:50:25 +01:00
e1b575efc9 position now use more readable function 2023-03-07 16:10:07 +01:00
b386fc03fa added the possibility to view in replay a previous game 2023-03-07 14:52:05 +01:00
15353991f6 path are now in the path module 2023-03-07 11:26:39 +01:00
15b522cb7b regex are now stored in a specific file 2023-03-07 11:17:52 +01:00
cc5a90405c fixed type hint for packets 2023-03-07 10:14:16 +01:00
bd748ad349 the connexion timeout is now 1 second instead of 5 (fix the quiting fast from host to client to connect to ourselves) 2023-03-07 09:33:43 +01:00
8d3f53cec1 there is now a status text when trying to connect to a host, it is no longer possible to spam "connect" 2023-03-07 09:30:21 +01:00
3df01c695c finished the history menu 2023-03-06 19:57:18 +01:00
f3ee475c2e boats of the ally grid are now sent to the opposent when the game end 2023-03-06 19:30:07 +01:00
8c7b429d29 each move are now saved in the history list of the Game object 2023-03-06 13:54:56 +01:00
316de05525 united custom Sprite and Label in better_pyglet, they now have a default_kwargs. "Century Gothic Bold" is now the default font 2023-03-06 10:11:42 +01:00
e64439b622 renamed some variable and files 2023-03-06 09:29:30 +01:00
eaa70a5c76 system message are now formatted as "<System>" instead of "[System]" 2023-03-05 23:02:32 +01:00
bc1dceb39b the save button now have a cooldown of 40 seconds 2023-03-05 22:59:02 +01:00
4be4cf5a03 save are now deleted end an history save is created when a game end 2023-03-05 22:49:05 +01:00
808b309c40 the load menus now show the time of the save 2023-03-05 21:47:51 +01:00
49546ff4a8 added things to the todo list 2023-03-05 14:51:14 +01:00
e7f73c0b98 added texture for the replay 2023-03-05 12:58:46 +01:00
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
8048a3d43b load screen before loading an old save file 2023-03-04 13:32:59 +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
16e88462a1 added popup alongside scene 2023-03-03 13:06:08 +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
3aa9eaf541 fixed access to some style that would raise a attribute does not exist error 2023-02-28 18:28:00 +01:00
b7d147fc3c added SimplePacket and VariableLengthBytesPacket to simplify some Packet type 2023-02-28 18:15:08 +01:00
37350926b2 changed the packet code to be simpler and more flexible 2023-02-28 14:07:00 +01:00
58287a0649 port can now be changed 2023-02-27 16:15:53 +01:00
8b296f6965 the global IP of the host is now shown in the host lobby 2023-02-27 15:53:11 +01:00
e961f7e348 changed the way texture are loaded 2023-02-27 15:18:12 +01:00
fd2ffa7856 pressing enter refresh the boat list 2023-02-25 14:11:59 +01:00
0db1f08f71 can no longer click behind the result screen 2023-02-25 14:11:36 +01:00
a3df2f6c2c removed atlas for the texture to avoid issue 2023-02-25 14:01:09 +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
1bbef3f57d unified the cls_from_connection, instance_from_connection 2023-02-23 22:38:04 +01:00