99 Commits

Author SHA1 Message Date
Jan Mrna
8a9aa8ee5e Move drawing to separate function 2025-10-10 07:37:34 +02:00
potatopplking
536618d7a7
Merge pull request #26 from potatopplking/feature/pan_zoom
Feature/pan zoom
2025-10-09 06:50:19 +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
582e3e1adc Remove temporary file from VS solution 2025-10-07 12:41:03 +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
8e00c1fed3 Added .aider to gitignore 2025-10-07 10:17:24 +02:00
Jan Mrna
1defbe8a00 Moved TODOs from Readme to GitHub project 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
Mrna
aa52ff9f8e Fixed working dir for windows binary 2025-10-07 10:12:47 +02:00
Jan Mrna
427d3878c3 Updated README 2025-09-29 11:07:04 +02:00
Jan Mrna
0f89ca9020 Added screenshot 2025-09-29 11:04:26 +02:00
Jan Mrna
e25ce9604d Updated README 2025-09-29 11:01:34 +02:00
Jan Mrna
6ce349e976 Updated README 2025-09-29 07:11:29 +02:00
Jan Mrna
1779fde397 Some more terrain painting 2025-09-29 06:24:22 +02:00
Jan Mrna
b6d24da982 Add terrain painting functions 2025-09-28 20:42:07 +02:00
Jan Mrna
c42a6b647e Move pathfinders to dedicated files 2025-09-28 09:39:40 +02:00
Jan Mrna
7eee6a5c54 Implemented GBFS 2025-09-28 08:35:27 +02:00
Jan Mrna
2dd44ab169 Implemented Dijkstra's algorithm 2025-09-27 22:29:33 +02:00
Jan Mrna
5cd3a68e6d BFS 2025-09-27 21:51:59 +02:00
Jan Mrna
86d52edfd7 Set map 2025-09-27 18:45:03 +02:00
Jan Mrna
1b0edb664c Add name to pathfinding classes 2025-09-27 18:36:22 +02:00
Jan Mrna
76f10725ec Add forgotten pathfinder file 2025-09-27 18:23:13 +02:00
Jan Mrna
e6fc4e881c Draw the path 2025-09-27 18:22:53 +02:00
Jan Mrna
ea316ab997 Pathfinder WIP 2025-09-27 17:58:26 +02:00
Jan Mrna
9b08c057e0 New Makefile 2025-09-27 15:09:04 +02:00
Jan Mrna
ec57ce7418 Moved test.cpp 2025-09-27 15:08:21 +02:00
Jan Mrna
c55e76a4ba Move Window implementation to window.cpp 2025-09-27 14:54:04 +02:00
Jan Mrna
1941c4c29a Move UserInput implementation to user_input.cpp 2025-09-27 14:46:13 +02:00
Jan Mrna
e31a45b229 Move tile implementation to tile.cpp 2025-09-27 14:34:52 +02:00
Jan Mrna
33813c135f Move pathfindingdemo implementation to pathfindingdemo.cpp 2025-09-27 14:31:02 +02:00
Jan Mrna
70a9e6a80f Move map implementation to map.cpp 2025-09-27 14:19:16 +02:00
Jan Mrna
4419e9bac9 Move gameloop implementation to gamelopp.cpp 2025-09-27 13:57:15 +02:00