Commit graph

32 commits

Author SHA1 Message Date
f3ee475c2e boats of the ally grid are now sent to the opposent when the game end 2023-03-06 19:30:07 +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
fd2ffa7856 pressing enter refresh the boat list 2023-02-25 14:11:59 +01:00
c49971fe5a ajout d'un écran de victoire 2023-02-24 11:32:13 +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
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
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
920914ad8c restructured some part of the code, implemented Label and Button 2023-01-17 22:24:03 +01:00
7cc837b68e recoded the structure of the gui 2023-01-14 00:11:35 +01:00
2b4d125b46 added prototypal "AdaptativeWidget" to automatically resize widget when the window is resized 2023-01-11 20:26:53 +01:00
91a79c7a80 button can now have another image when clicked 2023-01-10 22:50:10 +01:00
1175c8b5d1 added Board, Boat, Orientation serialisation 2023-01-10 17:11:18 +01:00
dcca925dbe added a sprite class to simplify the modification of width and height 2023-01-10 14:22:30 +01:00
36e89f0e6d button now have simpler getter and a single _update_size method 2023-01-10 13:56:20 +01:00
eff0218c8f added a Widget system with a Button widget example 2023-01-10 00:09:25 +01:00
b902d83d90 renamed some directory to avoid conflit and improve readability 2023-01-09 16:04:49 +01:00
69cf45bd72 implemented a Scene system for pyglet to simplify the creation of multiple different interface 2023-01-05 08:53:25 +01:00
445ade8c33 added base file and a hello world with pyglet 2023-01-04 19:47:37 +01:00