Commit Graph

75 Commits

Author SHA1 Message Date
582074256c Add animations to terrain layer 2023-12-13 16:23:38 +01:00
a2c19cf65d Add page support to object pool 2023-12-13 09:31:08 +01:00
72b32b1a26 Merge tilesets into one 2023-12-12 17:02:23 +01:00
d3485303c9 Add exit game function 2023-12-07 11:46:53 +01:00
7bada9f4e8 Add stackAllocReset method 2023-12-07 10:47:41 +01:00
9800b5576e Remove memory allocation in pathfinding 2023-12-07 10:42:53 +01:00
0d156f515e Add stack allocator 2023-12-07 10:31:12 +01:00
0d137ffb25 Add idle animation 2023-12-05 11:25:56 +01:00
6240eeea1c Implement DDA raycasting, fix bug in path smoothing 2023-11-25 10:56:26 +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
1dd764e28b Ensure each entity is iterated only once 2023-11-23 15:38:32 +01:00
0dc8046d8f Rework pathfinding to use Vector2, form formations 2023-11-23 12:01:42 +01:00
36690f8066 Fix invalid read in heap 2023-11-23 11:04:40 +01:00
8e37479980 Update CMakeLists.txt to reflect rename utils to util 2023-11-23 10:40:52 +01:00
ffb058b1e8 Add bzArrayFor helper macro 2023-11-23 10:34:29 +01:00
adaada9a22 Rename utils to util 2023-11-23 10:31:51 +01:00
433b012715 Fix iteration 2023-11-22 08:47:29 +01:00
38544221af Add buffer for logger 2023-11-21 10:45:12 +01:00
133a9740c8 Add web support 2023-11-21 06:09:37 +01:00
dc90286195 Remove heap tmp index (insert at back of heap instead) 2023-11-18 19:01:04 +01:00
2d50a43a73 Change collisionMap to boolean value 2023-11-18 12:53:34 +01:00
03b5959eae Kinematic movement + path following 2023-11-18 08:12:58 +01:00
5cbb7b6c94 Move flecs out of engine, reorganize systems 2023-11-17 20:29:51 +01:00
66dba151ed Add optimal update and fix invalid write bugs 2023-11-17 19:35:20 +01:00
066014cb44 Fix bug where entity was not removed 2023-11-17 19:02:20 +01:00
021df6d77a Remove multiple colliders, add spatial index component 2023-11-17 15:13:30 +01:00
208cdc6b6f Fix spatial grid not calculating position correctly 2023-11-17 15:06:59 +01:00
90bef40e70 Change output to stdout 2023-11-16 17:06:36 +01:00
3ec6e9ad47 Remove entity map in favor of spatial grid 2023-11-16 16:31:19 +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
581da2b990 Add object pool 2023-11-15 20:15:59 +01:00
4c37622240 Add entity map 2023-11-15 18:32:43 +01:00
79adcad8de Fix invalid read 2023-11-15 16:26:02 +01:00
a02cce0966 Add dynamic arrays 2023-11-15 16:13:26 +01:00
5a1401e9b8 Rename BzHeap to BzHeapHead 2023-11-15 14:33:35 +01:00
c23bf3a48f Rename referenced macro to _bzHeapClear 2023-11-15 14:30:31 +01:00
f8ed5f4664 Rename bzHeapReset to bzHeapClear 2023-11-15 14:29:35 +01:00
ab817ee03d Basic pathfinding 2023-11-14 08:25:55 +01:00
6c88531f68 Add heap data structure 2023-11-13 16:58:32 +01:00
526d292fb5 Very basic animations 2023-11-12 18:03:55 +01:00
8edb7b7ea9 Restructure/refactor of main.c 2023-11-12 16:14:30 +01:00
10e47a6ad4 Fixed tile objects rendering 2023-11-11 09:35:05 +01:00
3c8254c6f6 Add support for objects with tiles 2023-11-11 09:21:59 +01:00
1908150635 Place buildings 2023-11-11 07:01:49 +01:00
2f358ef5f7 Remove nuklear from engine 2023-11-10 10:13:49 +01:00
c8c857bdb9 Overhaul how building and ownership layers are handled at init 2023-11-10 06:38:16 +01:00
60e66bbd67 Proper building detection 2023-11-10 05:54:40 +01:00
fed67a61e6 Convert buildings to entities (partially) 2023-11-09 18:11:46 +01:00