Commit Graph

  • b4fcd56f10 Added CMake build for Linux feature/collisions Jan Mrna 2025-10-12 19:53:24 +02:00
  • 2f346c11c3 Deselect all entities on re-selection Jan Mrna 2025-10-12 16:44:59 +02:00
  • df6d323e42 Fix collision radius size when zooming Jan Mrna 2025-10-12 16:19:38 +02:00
  • 1ce793c6e8 Fixed selection rectangle glitch Jan Mrna 2025-10-12 16:09:12 +02:00
  • d3af793092 Show rectangle when selecting entities Jan Mrna 2025-10-12 16:04:40 +02:00
  • 4b3a4c53e8 Fix entity selection when zoomed in/out Jan Mrna 2025-10-12 15:46:40 +02:00
  • 370df129a8 ChangeTag for vec and construct from std::array Jan Mrna 2025-10-12 15:44:56 +02:00
  • 08b4b10113 Selection rectangle Jan Mrna 2025-10-10 19:32:58 +02:00
  • 250f0963c8 Basic collisions Jan Mrna 2025-10-10 19:00:08 +02:00
  • 3d34b68133 Multiple entities + pathfinding Jan Mrna 2025-10-10 10:45:27 +02:00
  • 2f80129dce Name refactor Jan Mrna 2025-10-10 07:49:30 +02:00
  • 8a9aa8ee5e Move drawing to separate function master Jan Mrna 2025-10-10 07:37:34 +02:00
  • 536618d7a7
    Merge pull request #26 from potatopplking/feature/pan_zoom potatopplking 2025-10-09 06:50:19 +02:00
  • 038ea4f9c2 Fixed generated tests feature/pan_zoom Jan Mrna 2025-10-09 06:47:57 +02:00
  • e1fa58e11a Added GHCP generated tests for Matrix class (NOT TESTED) Mrna 2025-10-08 14:32:51 +02:00
  • 69e319a730 Fixed sprite size on zoom Mrna 2025-10-07 14:03:00 +02:00
  • 783200733a Fixed tile size and mouse pan when zoom != 1 Mrna 2025-10-07 13:46:34 +02:00
  • 582e3e1adc Remove temporary file from VS solution Mrna 2025-10-07 12:41:03 +02:00
  • 81f7de05fb Windows fix for M_PI Mrna 2025-10-07 12:40:42 +02:00
  • 4e950c15a5 Added Matrix class Mrna 2025-10-07 09:35:52 +02:00
  • 11fbcbbb10 Added missing header (win compiler complained) Mrna 2025-10-06 14:07:15 +02:00
  • 71e6bdb904 Basic zoom implemented Jan Mrna 2025-10-05 21:20:30 +02:00
  • f5304d045d Refactor user input Jan Mrna 2025-10-05 20:45:09 +02:00
  • d924e7dbca Refactor mouse and keyboard events Jan Mrna 2025-10-05 20:17:24 +02:00
  • 4a9498a520 Add mouse button type Jan Mrna 2025-10-05 12:16:53 +02:00
  • f458468644 Add map pan Jan Mrna 2025-10-05 12:11:06 +02:00
  • 75eeac06df Removed unused coded, fix compiler warnings Jan Mrna 2025-10-04 17:10:40 +02:00
  • 326094caf3 Adde camera class Jan Mrna 2025-10-04 17:10:20 +02:00
  • 8a49c12909 Refactor WorldPos, WindowsPos done Jan Mrna 2025-10-04 16:54:29 +02:00
  • 47977d9979 Refactor vec, add domain-specific types (world, window, tile) Jan Mrna 2025-10-02 21:42:44 +02:00
  • 92b36a8943 Added DistanceTo to vec class Jan Mrna 2025-10-02 20:48:05 +02:00
  • 0e17c84eb9 WIP new vec class and tests Jan Mrna 2025-10-02 19:29:08 +02:00
  • a022c3321e Add test target Jan Mrna 2025-10-02 17:56:37 +02:00
  • 8e00c1fed3 Added .aider to gitignore Jan Mrna 2025-09-30 14:23:00 +02:00
  • 1defbe8a00 Moved TODOs from Readme to GitHub project Jan Mrna 2025-09-30 14:00:08 +02:00
  • 02a2ba2818 Window member variables set as private Jan Mrna 2025-09-29 14:15:08 +02:00
  • ec64c05bf0 Merge branch 'win_build' Mrna 2025-10-07 10:16:39 +02:00
  • aa52ff9f8e Fixed working dir for windows binary win_build Mrna 2025-10-07 10:12:47 +02:00
  • 427d3878c3 Updated README Jan Mrna 2025-09-29 11:07:04 +02:00
  • 0f89ca9020 Added screenshot Jan Mrna 2025-09-29 11:04:26 +02:00
  • e25ce9604d Updated README Jan Mrna 2025-09-29 11:01:34 +02:00
  • 6ce349e976 Updated README Jan Mrna 2025-09-29 07:11:29 +02:00
  • 1779fde397 Some more terrain painting Jan Mrna 2025-09-29 06:24:22 +02:00
  • b6d24da982 Add terrain painting functions Jan Mrna 2025-09-28 20:42:07 +02:00
  • c42a6b647e Move pathfinders to dedicated files Jan Mrna 2025-09-28 09:39:40 +02:00
  • 7eee6a5c54 Implemented GBFS Jan Mrna 2025-09-28 08:35:27 +02:00
  • 2dd44ab169 Implemented Dijkstra's algorithm Jan Mrna 2025-09-27 22:29:33 +02:00
  • 5cd3a68e6d BFS Jan Mrna 2025-09-27 21:51:59 +02:00
  • 86d52edfd7 Set map Jan Mrna 2025-09-27 18:45:03 +02:00
  • 1b0edb664c Add name to pathfinding classes Jan Mrna 2025-09-27 18:36:22 +02:00
  • 76f10725ec Add forgotten pathfinder file Jan Mrna 2025-09-27 18:23:13 +02:00
  • e6fc4e881c Draw the path Jan Mrna 2025-09-27 18:22:53 +02:00
  • ea316ab997 Pathfinder WIP Jan Mrna 2025-09-27 17:58:26 +02:00
  • 9b08c057e0 New Makefile Jan Mrna 2025-09-27 15:09:04 +02:00
  • ec57ce7418 Moved test.cpp Jan Mrna 2025-09-27 15:08:21 +02:00
  • c55e76a4ba Move Window implementation to window.cpp Jan Mrna 2025-09-27 14:54:04 +02:00
  • 1941c4c29a Move UserInput implementation to user_input.cpp Jan Mrna 2025-09-27 14:46:13 +02:00
  • e31a45b229 Move tile implementation to tile.cpp Jan Mrna 2025-09-27 14:34:52 +02:00
  • 33813c135f Move pathfindingdemo implementation to pathfindingdemo.cpp Jan Mrna 2025-09-27 14:31:02 +02:00
  • 70a9e6a80f Move map implementation to map.cpp Jan Mrna 2025-09-27 14:19:16 +02:00
  • 4419e9bac9 Move gameloop implementation to gamelopp.cpp Jan Mrna 2025-09-27 13:57:15 +02:00
  • 82eb2e2539 Move entities implementation to entity.cpp Jan Mrna 2025-09-27 13:49:17 +02:00
  • f9b76687b3 Move sprite implementation to sprite.cpp Jan Mrna 2025-09-27 13:18:01 +02:00
  • 1aebe47acf Split main.cpp to different files Jan Mrna 2025-09-27 09:55:32 +02:00
  • bf7c1ab2a7 Added pathfinder src file Jan Mrna 2025-09-26 17:50:28 +02:00
  • 9913d5b938 Remove unused stuff from 2D game engine (sound) Jan Mrna 2025-09-26 17:50:13 +02:00
  • 83d18443c3 Add mouse movement and remove unused game engine stuff Jan Mrna 2025-09-26 17:24:32 +02:00
  • bdac14c6cb Tile cost affects speed Jan Mrna 2025-09-26 15:54:55 +02:00
  • 3180fc026d Added windows VS solution Mrna 2025-09-24 09:40:08 +02:00
  • f57d52c670 M_PI fix for windows Mrna 2025-09-24 09:36:34 +02:00
  • 7ef37e180a Provide MSVC alternative for __PRETTY_FUNCTION__ Mrna 2025-09-23 15:31:39 +02:00
  • 8008f55cb9 Added SDL image submodule Mrna 2025-09-23 15:30:31 +02:00
  • 118c6260b4 Added glew submodule Mrna 2025-09-23 14:54:58 +02:00
  • 1240d21ef8 Added SDL submodule Mrna 2025-09-23 14:52:22 +02:00
  • 822cca1865 Fixed incorrect comment section Jan Mrna 2025-09-22 10:15:02 +02:00
  • adec4d9694 Update README Jan Mrna 2025-09-22 10:13:06 +02:00
  • b19a6c5157 Updated README Jan Mrna 2025-09-22 10:08:42 +02:00
  • bfb8b28bf1 Updated README Jan Mrna 2025-09-22 10:05:23 +02:00
  • 0b8ce2813c Updated jupyter notebook Jan Mrna 2025-09-22 10:05:17 +02:00
  • a780c833e2 Updated jupyter notebook Jan Mrna 2025-09-22 09:29:57 +02:00
  • 3091194b2c Add mouse click user action Jan Mrna 2025-09-22 07:51:32 +02:00
  • 61efa711c9 Draw terrain tiles Jan Mrna 2025-09-21 20:35:14 +02:00
  • fdfee95426 Remove unnecessary stuff from the game engine Jan Mrna 2025-09-21 17:56:47 +02:00
  • 7c848cd09f Removed DFS, because it sucks Jan Mrna 2025-09-21 16:34:31 +02:00
  • 5f517c6707 Fixed swapped start/stop points Jan Mrna 2025-09-21 16:33:29 +02:00
  • 2145ac50a0 Update README with TODOs Jan Mrna 2025-09-20 17:37:01 +02:00
  • d3cc6e960e Modified makefile Jan Mrna 2025-09-20 17:35:49 +02:00
  • 84c790ef99 Updated gitignore Jan Mrna 2025-09-20 17:35:40 +02:00
  • 6c828dfba7 Copy source files from the 2D "game engine" Jan Mrna 2025-09-20 17:33:02 +02:00
  • 7cd1b06550 Add CreateMaze method for Map Jan Mrna 2025-09-20 17:28:20 +02:00
  • 8656736ea4 Increase map size, add labels Jan Mrna 2025-09-20 17:19:10 +02:00
  • 24c6ff2d06 Implemented A* Jan Mrna 2025-09-20 16:58:04 +02:00
  • 8981857ee7 Implemented GBFS Jan Mrna 2025-09-20 16:23:31 +02:00
  • c7ddabd613 Update README with TODOs Jan Mrna 2025-09-20 15:46:23 +02:00
  • 09b5d5ba75 Implemented Dijkstra's algorithm Jan Mrna 2025-09-20 15:42:04 +02:00
  • 0cd01ece0c Added early exit to BFS, added Dijkstra class Jan Mrna 2025-09-20 14:54:29 +02:00
  • b7ccb7c2cc Fixed (most) mypy warnings Jan Mrna 2025-09-20 14:23:27 +02:00
  • ea5f283c32 Implemented BFS Jan Mrna 2025-09-20 14:09:43 +02:00
  • 05e76fc0a4 Update notebook Jan Mrna 2025-09-20 14:09:33 +02:00
  • 2932d95c66 Added base class for PathFinder, fixed typing errors Jan Mrna 2025-09-20 12:16:42 +02:00