Commit Graph

22 Commits

Author SHA1 Message Date
7d8dec5ef7 Fix pathfinding when target is slightly inside collider 2024-02-13 13:09:52 +01:00
8692d89479 Add 8 layers to collisions 2024-01-13 08:09:34 +01:00
c08fca9670 Buildings as entities instead of map layer 2024-01-08 14:41:26 +01:00
11832ec1cc Basic wood chopping 2023-12-10 11:08:40 +01:00
e7e4d1e4ce Fix bug with follow path system 2023-12-07 11:35:35 +01:00
9800b5576e Remove memory allocation in pathfinding 2023-12-07 10:42:53 +01:00
6fe4449adf Cleanup smoothPath function 2023-11-25 11:30:28 +01:00
6240eeea1c Implement DDA raycasting, fix bug in path smoothing 2023-11-25 10:56:26 +01:00
2c3ee8afd6 Ensure pathfinding always finds the shortest path 2023-11-25 08:27:20 +01:00
b77e939c52 Overhaul pathfinding algorithm 2023-11-24 20:25:21 +01:00
6e977b7433 Fix memory leak when iterating path 2023-11-23 19:35:59 +01:00
a17450dd81 Fix path smoothing bug 2023-11-23 19:23:06 +01:00
3885e911a3 Add path smoothing 2023-11-23 19:01:28 +01:00
0dc8046d8f Rework pathfinding to use Vector2, form formations 2023-11-23 12:01:42 +01:00
2fc0d7196a Rename variables in pathfinding.c to be more clear 2023-11-18 18:07:22 +01:00
2d50a43a73 Change collisionMap to boolean value 2023-11-18 12:53:34 +01:00
021df6d77a Remove multiple colliders, add spatial index component 2023-11-17 15:13:30 +01:00
c232fc9afd Fix bug where allocated paths were never returned 2023-11-16 09:00:27 +01:00
af99504370 Allocate path with object pool for pathfinding 2023-11-16 07:23:56 +01:00
9e6c836207 Rename ...New/...Free to ...Create/...Destroy 2023-11-16 06:26:24 +01:00
4c37622240 Add entity map 2023-11-15 18:32:43 +01:00
e9bdc623fc Restructure files 2023-11-15 08:23:58 +01:00