161 Commits

Author SHA1 Message Date
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
b3f3d269ee Add compile warning 2023-11-14 06:27:14 +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
7513ecc7eb Convert rlImGui to C 2023-11-11 05:49:43 +01:00
2f358ef5f7 Remove nuklear from engine 2023-11-10 10:13:49 +01:00
3468e6caf4 Remove nuklear in favor of ImGui 2023-11-10 09:51:41 +01:00
5c9b80a598 Add cimgui 2023-11-10 09:48:29 +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
f32c19dc3d Overhaul tilemap, add building ownership layer 2023-11-09 15:46:35 +01:00
dd96b23d32 Rename world directory to map 2023-11-09 12:22:56 +01:00
8edcf9305c Properly link flecs library 2023-11-09 11:38:29 +01:00
dc585396c3 Set freed pointers to NULL in tilemap creation 2023-11-09 11:16:26 +01:00
5e3fe618e3 Fix memory leak when disposing tilemap 2023-11-09 11:14:25 +01:00
af3a911f88 Add object layer rendering 2023-11-09 11:11:47 +01:00
185c9ded6e Fix collision checking when building 2023-11-09 10:48:33 +01:00
6cc3ce9750 Make collider retrieving more permissive 2023-11-09 09:49:14 +01:00
ced7aa2ea5 Tweak colliders depth and collider rendering 2023-11-09 09:41:27 +01:00
913a365a21 Add collider map 2023-11-09 09:32:02 +01:00
fa79af2a17 Separate object layers, asign layers to proper slots 2023-11-09 08:38:57 +01:00
4458a26c4f Fix nuklear input processing 2023-11-09 06:21:29 +01:00
aa9fe8fa9a Add some colliders 2023-11-08 17:02:03 +01:00
50241f9c26 Support for colliders 2023-11-08 16:41:00 +01:00
e56c2a067e Update cute_tiled.h 2023-11-08 16:40:20 +01:00
efada40908 Integrate nuklear into engine 2023-11-08 10:04:47 +01:00
16972e4f9a Add nuklear ui library 2023-11-08 09:34:44 +01:00
be711f2fa1 Add raygui library 2023-11-08 08:44:59 +01:00
ca1cd4b1f9 Proper layer rendering 2023-11-08 08:37:09 +01:00
120cb7503b Move world files to engine 2023-11-08 06:07:22 +01:00