Commit Graph

107 Commits

Author SHA1 Message Date
152d210f00 feat: add UIManager interface for external modification 2025-12-28 20:54:36 +08:00
778c17811e fix: improve handling of client connection failures 2025-12-28 17:44:41 +08:00
e366d47790 feat: add JSON support for serverPort and hostPort 2025-12-28 16:56:37 +08:00
19698996cd feat: read network config from JSON 2025-12-28 16:44:54 +08:00
2d43b73e57 feat: add player display label 2025-12-28 16:34:16 +08:00
0b937336c2 feat: add online functionality 2025-12-28 16:24:00 +08:00
ef8011c090 io_context runs in a separate thread 2025-12-28 14:02:28 +08:00
6432e3af8d Added NetworkManager Client and GameServer class 2025-12-27 20:16:57 +08:00
4f058ae768 Added OnlineGameScene and OnlineGameUIManager class 2025-12-27 20:16:06 +08:00
585c18d56a updated ignore directory 2025-12-27 20:12:54 +08:00
06817ccebc updated SDL3 version 2025-12-27 20:12:08 +08:00
2dbecfd9cc Modified changescene strategy:changescene no longer caches scenes. 2025-12-25 21:49:51 +08:00
bb0b230769 Added PopScene event 2025-12-25 21:33:53 +08:00
86d92eaf15 Added QuitButton 2025-12-25 21:32:58 +08:00
91a4f8a9fd Added Boost.Asio 2025-12-25 18:48:54 +08:00
00febb309a Removed rendering of mouse position in the scene 2025-12-25 16:12:14 +08:00
606dbb70e7 Changed StartButton postion 2025-12-25 16:02:09 +08:00
8a78bfef14 Added DebugInfo 2025-12-25 15:58:57 +08:00
ad83a4f70d Added Time class 2025-12-25 15:45:07 +08:00
178da9a277 Added vsync funtion 2025-12-25 14:49:44 +08:00
10d9988f99 Added UI RenderTexture 2025-12-25 13:06:30 +08:00
03cd5d83d1 Load config using JSON 2025-12-24 22:12:25 +08:00
19be826869 Added nlohmann/json 2025-12-24 20:54:53 +08:00
f89c20af6a Fixed the issue with the board display 2025-12-24 14:39:40 +08:00
3e9b69bcc9 Fixed the bug where the previous frame's screen was not properly cleared 2025-12-24 14:29:23 +08:00
18f3976b48 Fixed the overlooked files that needed changes 2025-12-24 14:27:24 +08:00
e8c6cee046 The calculation process has been modified, and now it is performed directly in the gameapplication class 2025-12-24 14:01:25 +08:00
cefe4a37b7 Added Tools to coordinate the postion 2025-12-24 13:59:16 +08:00
054ed22de8 Updated the plan of the game 2025-12-23 16:09:26 +08:00
903fdc37d1 Let UI render on the physical screen rather than the logical screen 2025-12-23 16:05:34 +08:00
e1245997ae Divide render into renderWorld and renderUI 2025-12-23 16:02:47 +08:00
c2fd549f49 Change button color to black 2025-12-23 16:00:18 +08:00
067d35b4e5 Change GameConfig to WindowConfig 2025-12-23 15:59:42 +08:00
473666f95c change logictexture to 640x360 2025-12-22 13:32:55 +08:00
27801278a1 Change Fix the scale bug, and abandon using sfml and still use sdl3 2025-12-21 18:31:32 +08:00
86dce63e74 Added a lots of the file to write the pixel game but due to some problem ,i dicide to change sdl3 to sfml,a more modern lib 2025-12-21 14:58:33 +08:00
96b005e2ef Using WindowManager to begin and end frame 2025-12-19 22:47:18 +08:00
c8ab71738a Added fullscreen funtion 2025-12-19 22:46:21 +08:00
551999c142 Added some infomation about the project 2025-12-15 09:50:59 +08:00
zhenyan121
2c46e2571c Change LICENSE 2025-12-15 09:40:23 +08:00
ad3b8d7732 Added GameOver Scene 2025-12-14 10:33:06 +08:00
27ff62df14 Added drawMovementRange function 2025-12-13 19:53:02 +08:00
98a7b34bfa Rename GameRenderer to BoardRenderer 2025-12-13 18:56:50 +08:00
fccff79a6a Change frame control to the scene 2025-12-13 18:49:55 +08:00
3d73994360 Modified the rule to only allow moves for selected piece 2025-12-13 18:44:27 +08:00
034c1a858e Render the Actiontype 2025-12-13 18:35:49 +08:00
4a71e4f742 Added a overload setText 2025-12-13 18:35:07 +08:00
e697d6f797 Fixed a bug where abnormal display occurred after scene switching when the window was resized 2025-12-13 16:28:39 +08:00
455bcc8a50 Added the future plan 2025-12-13 16:08:27 +08:00
be106e3865 Added button handle event 2025-12-13 16:08:11 +08:00