Commit graph

59 commits

Author SHA1 Message Date
0578ff41c2 added new better music, added ambient music 2023-03-09 23:15:19 +01:00
5ca7ed5195 implemented settings 2023-03-09 14:31:46 +01:00
6e6e42d54e renamed "invalid" to "valid" for the Input widget 2023-03-09 09:40:12 +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
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
15353991f6 path are now in the path module 2023-03-07 11:26:39 +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
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
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
e961f7e348 changed the way texture are loaded 2023-02-27 15:18:12 +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
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
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
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
6eb8d2452d added support for animated texture 2023-02-21 15:19:43 +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
5dcd570be8 added the possibility to prevent an event to propagate to the next widgets 2023-02-19 16:50:05 +01:00
75c1d4b6e8 added a Style system 2023-02-19 12:02:12 +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
446e377b19 simplified event in Widget with Listener, added more useful property to BoxWidget 2023-02-18 19:41:07 +01:00
ca001511c8 started the networking and interface connection 2023-02-17 15:56:00 +01:00
b0844e981a added a GameGrid widget, a on_hover event for the BoxWidget 2023-02-16 08:58:42 +01:00
2783dd67dc removed *args from Widget 2023-02-15 15:50:45 +01:00
c5c81be6ce implemented the Scroller 2023-02-15 13:58:28 +01:00
928d35b97b added a Checkbox widget 2023-02-15 09:38:31 +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
e5ce93a207 added a RoomCreate and a RoomJoin scene 2023-02-14 23:02:44 +01:00
3db2ea3c9a fixed the on_pressed event on the bbox 2023-02-14 13:43:22 +01:00
48da47c234 added Image and Input widgets 2023-02-14 10:36:59 +01:00
abf653a4e9 the draw method is now abstract for the Widget 2023-02-13 22:44:02 +01:00
0f0b21f9b7 the text on Button is now properly centered 2023-02-13 21:40:11 +01:00
31d1069709 added Button widget (label to fix) 2023-02-13 20:32:23 +01:00
59ee20efe5 fixed bbox property not returning the correct x2 and y2 2023-02-13 14:31:25 +01:00
11476f5de8 added on_press, on_release, on_hover_enter, on_hover_leave event on BoxWidget 2023-02-12 14:04:07 +01:00
9b008cbaea added BoxWidget class that allow widgets with a bbox 2023-02-11 00:31:48 +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
3cb8a94c13 added more widgets 2023-02-09 18:26:03 +01:00