Commit Graph

83 Commits

Author SHA1 Message Date
Jan Mrna
30eecc366e Fixed clang-tidy warnings 2025-10-31 07:22:26 +01:00
Jan Mrna
9c1ec01ce0 Re-formatted files 2025-10-30 15:10:00 +01:00
Jan Mrna
a2c77966b8 Positional container: performance tests 2025-10-30 14:19:59 +01:00
Mrna
d1cb6dbac7 TODO comment 2025-10-21 07:51:46 +02:00
Jan Mrna
3c2b636ea8 Positional container: add Get overload 2025-10-17 10:21:45 +02:00
Jan Mrna
cfe48661d8 vec: Added no-overhead constructor for tag change 2025-10-17 10:11:15 +02:00
Jan Mrna
b94b18993d Positional container: implemented Update 2025-10-17 09:43:12 +02:00
Jan Mrna
b2e9c1b55e Positional container: tests for Update method 2025-10-17 08:10:53 +02:00
Jan Mrna
057842ca7b Fixed warnings 2025-10-17 07:54:51 +02:00
Jan Mrna
370fc98588 Positional container: basic implementation, added tests 2025-10-17 07:47:12 +02:00
Jan Mrna
6d040cb61f Positional container WIP 2025-10-16 20:56:55 +02:00
Jan Mrna
f979005208 vec: add operator+ and - for scalars 2025-10-16 20:37:45 +02:00
Jan Mrna
836731b971 Tests for positional containers 2025-10-16 18:02:47 +02:00
Jan Mrna
5209e054e5 Positional container WIP 2025-10-16 18:02:31 +02:00
Jan Mrna
5d35a3e92d vec class: structured binding support 2025-10-16 18:01:29 +02:00
Jan Mrna
3a8dce8996 Tests: add performance tests 2025-10-16 12:31:40 +02:00
Jan Mrna
43f7432cb0 Print error details on IMG_Load 2025-10-16 09:49:05 +02:00
Jan Mrna
2f346c11c3 Deselect all entities on re-selection 2025-10-12 16:44:59 +02:00
Jan Mrna
df6d323e42 Fix collision radius size when zooming 2025-10-12 16:19:38 +02:00
Jan Mrna
1ce793c6e8 Fixed selection rectangle glitch 2025-10-12 16:09:12 +02:00
Jan Mrna
d3af793092 Show rectangle when selecting entities 2025-10-12 16:04:40 +02:00
Jan Mrna
4b3a4c53e8 Fix entity selection when zoomed in/out 2025-10-12 15:46:40 +02:00
Jan Mrna
370df129a8 ChangeTag for vec and construct from std::array 2025-10-12 15:44:56 +02:00
Jan Mrna
08b4b10113 Selection rectangle 2025-10-10 19:32:58 +02:00
Jan Mrna
250f0963c8 Basic collisions 2025-10-10 19:00:08 +02:00
Jan Mrna
3d34b68133 Multiple entities + pathfinding 2025-10-10 10:45:27 +02:00
Jan Mrna
2f80129dce Name refactor 2025-10-10 07:49:30 +02:00
Jan Mrna
8a9aa8ee5e Move drawing to separate function 2025-10-10 07:37:34 +02:00
Jan Mrna
038ea4f9c2 Fixed generated tests 2025-10-09 06:47:57 +02:00
Mrna
e1fa58e11a Added GHCP generated tests for Matrix class (NOT TESTED) 2025-10-08 14:32:51 +02:00
Mrna
69e319a730 Fixed sprite size on zoom 2025-10-07 14:03:00 +02:00
Mrna
783200733a Fixed tile size and mouse pan when zoom != 1 2025-10-07 13:46:34 +02:00
Mrna
81f7de05fb Windows fix for M_PI 2025-10-07 12:40:42 +02:00
Mrna
4e950c15a5 Added Matrix class 2025-10-07 10:20:13 +02:00
Mrna
11fbcbbb10 Added missing header (win compiler complained) 2025-10-07 10:20:13 +02:00
Jan Mrna
71e6bdb904 Basic zoom implemented 2025-10-07 10:20:13 +02:00
Jan Mrna
f5304d045d Refactor user input 2025-10-07 10:20:13 +02:00
Jan Mrna
d924e7dbca Refactor mouse and keyboard events 2025-10-07 10:20:13 +02:00
Jan Mrna
4a9498a520 Add mouse button type 2025-10-07 10:20:13 +02:00
Jan Mrna
f458468644 Add map pan 2025-10-07 10:20:12 +02:00
Jan Mrna
75eeac06df Removed unused coded, fix compiler warnings 2025-10-07 10:20:12 +02:00
Jan Mrna
326094caf3 Adde camera class 2025-10-07 10:20:12 +02:00
Jan Mrna
8a49c12909 Refactor WorldPos, WindowsPos done 2025-10-07 10:20:12 +02:00
Jan Mrna
47977d9979 Refactor vec, add domain-specific types (world, window, tile) 2025-10-07 10:20:10 +02:00
Jan Mrna
92b36a8943 Added DistanceTo to vec class 2025-10-07 10:19:06 +02:00
Jan Mrna
0e17c84eb9 WIP new vec class and tests 2025-10-07 10:19:03 +02:00
Jan Mrna
a022c3321e Add test target 2025-10-07 10:17:24 +02:00
Jan Mrna
02a2ba2818 Window member variables set as private 2025-10-07 10:17:24 +02:00
Mrna
ec64c05bf0 Merge branch 'win_build' 2025-10-07 10:16:39 +02:00
Jan Mrna
6ce349e976 Updated README 2025-09-29 07:11:29 +02:00