Commit graph

50 commits

Author SHA1 Message Date
5ca7ed5195 implemented settings 2023-03-09 14:31:46 +01:00
9388c0eedb form can no longer be submitted if they contain invalid elements 2023-03-09 00:06:54 +01:00
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
1c872f7a28 ajout de plus de son et d'une meilleure gestion des players 2023-03-08 18:18:17 +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
b386fc03fa added the possibility to view in replay a previous game 2023-03-07 14:52:05 +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
8c7b429d29 each move are now saved in the history list of the Game object 2023-03-06 13:54:56 +01:00
e64439b622 renamed some variable and files 2023-03-06 09:29:30 +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
49546ff4a8 added things to the todo list 2023-03-05 14:51:14 +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
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
37350926b2 changed the packet code to be simpler and more flexible 2023-02-28 14:07:00 +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
fb90534436 the header and the data are now send together 2023-02-23 21:38:47 +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
75d7c407c1 added the turn system 2023-02-23 16:59:55 +01:00
a2d37c37f7 added more documentation in some files 2023-02-23 00:02:28 +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
d34d610b98 fixed the game grid preview 2023-02-21 11:39:50 +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
8a385a75bf factorised the event_wrapper from Window and Scene to a Mixin 2023-02-19 18:50:04 +01:00
f38f440e9d fixed a bug where creating a room and quiting it would not close the thread 2023-02-19 17:07:28 +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
1a36cd2372 added a caption to the window 2023-02-18 20:21:21 +01:00
e3fbd890fa moved the fps counter from a widget to the GameWindow features, window can now react to event after all scenes got their corresponding event called by adding "_after" in the name of the method event 2023-02-18 20:05:58 +01:00
15161764ad moved the fps counter from a widget to the GameWindow features, window can now react to event after all scenes got their corresponding event called by adding "_after" in the name of the method event 2023-02-18 20:05:44 +01:00
2783dd67dc removed *args from Widget 2023-02-15 15:50:45 +01:00
cac84ff171 added a Checkbox widget 2023-02-15 09:39:56 +01:00
2dfc21b8ef distance can now be represented by a constant pixel value or a function that is called when the distance have to be updated 2023-02-15 08:57:24 +01:00
432a311b76 rewrote the base of the Window, Scene and Widget class to make them as clean as possible 2023-02-09 23:56:04 +01:00