Commit Graph

62 Commits

Author SHA1 Message Date
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
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
be106e3865 Added button handle event 2025-12-13 16:08:11 +08:00
6f5c378cb0 Added SceneEvent callback 2025-12-13 16:07:22 +08:00
18953d8124 Added pass m_window to SceneManager 2025-12-13 16:06:28 +08:00
e4e40afe05 Added MainMenuScene 2025-12-13 16:05:24 +08:00
a62b73027b Add automatic update Button rect function 2025-12-13 16:04:30 +08:00
9715e23215 Update Textrender logic 2025-12-13 16:02:51 +08:00
1d1f71af19 Add label component 2025-12-13 16:02:14 +08:00
1e2555a35b Improved fontmanager and textrenderer class with automatic cache cleanup 2025-12-13 09:56:03 +08:00
6637d0f850 Added UI class and UI rendering class 2025-12-11 16:46:54 +08:00
7b098e0542 Improved font rendering interface 2025-12-11 16:44:53 +08:00
f6268951b7 Add the textrender function 2025-12-09 22:46:37 +08:00
7067214c34 Add TTF support 2025-12-08 21:16:20 +08:00
f8f397af50 Remove UIType.h 2025-12-08 21:15:53 +08:00
ecd317e020 Add mouse motion 2025-12-07 15:53:59 +08:00
4e99e4030b use CoordinateTools 2025-12-07 15:53:34 +08:00
864048a733 change the location of initSDL 2025-12-07 15:53:05 +08:00
55dc845613 add CoordinateTools 2025-12-07 15:52:23 +08:00
a66c70f0b7 Fix after disconnect the change of parentID bug 2025-12-07 12:06:40 +08:00
a6403953ef Add draw piece function 2025-12-06 23:01:43 +08:00
1a1e783e94 Use GameApplication to cnotrol game 2025-12-06 18:40:16 +08:00
32eb465f39 Use GameScene to control render 2025-12-06 18:39:40 +08:00
995c01bd8c Remove the game logic from InputManager 2025-12-06 18:38:36 +08:00
ecbf7dad90 Add CoordinateConverter to get logical postion 2025-12-06 18:37:53 +08:00
dfa2fddd9d change BoardRenderer name to GameRenderer 2025-12-06 14:11:51 +08:00
b1e4c81731 try to change input code 2025-12-06 10:36:43 +08:00
f4131698b0 use gameapp to control game 2025-12-06 10:36:03 +08:00
392fde06e9 Separation of rendering and scene logic 2025-12-06 10:35:21 +08:00
f76a30af6b Add config.h 2025-12-06 10:25:34 +08:00
c0d67926c4 Add Scene Base Class 2025-12-06 10:25:14 +08:00
db87a54e8b Add WindowManager Class 2025-12-06 10:24:54 +08:00
eaf7ea27f7 change render structure 2025-12-06 10:24:26 +08:00
3171e87f7e change app to core 2025-12-06 10:15:23 +08:00
6d44c61db8 change core to game 2025-12-06 10:12:07 +08:00
797c32fd12 Change Game class name to GameSession 2025-12-04 13:57:36 +08:00
d8e6fef6bd Fix a bug about the switch component problem 2025-12-02 15:13:09 +08:00