diff --git a/SDL3_Core b/SDL3_Core index 60b5803..bc3f9b4 160000 --- a/SDL3_Core +++ b/SDL3_Core @@ -1 +1 @@ -Subproject commit 60b58036a98698ddf63bb2b2baa384d780c1b3d3 +Subproject commit bc3f9b4726b7a5cb9522bc959f6086095d5f4301 diff --git a/TODO.md b/TODO.md index 6cd3f91..48601e9 100644 --- a/TODO.md +++ b/TODO.md @@ -1,57 +1,59 @@ -# What to do for the 2D Engine - -### Todo - -###### Features - -- [ ] Change linked list for each implementation to a macro (iykyk) - -- [ ] Add compression into asset builder and asset manager - -- [ ] Make functionnal hitboxes between entities and map - -- [ ] Make triggers - - [ ] Add triggers into map loading - -- [ ] Make physics component use acceleration - -- [ ] Make camera use acceleration - -###### Bugs - -- [ ] Fix transparency issues - - [ ] Rethink export properties and platforms ? - -- [ ] Fix door component and other components (?) loading from map - -### In progress - -### Done - -- [x] Make camera center on map - -- [x] Create camera - -- [x] Optimize asset builder file analize - -- [x] Create tilemap management and display - - [x] Find tilemap building format - - [x] Add building support for tilemaps in asset builder - - [x] Add loading support in asset manager - - [x] Display tilemaps - - [ ] Work on optimizations ! - -- [x] Work on entities draw order - -- [x] Make entities react to events - -- [x] Work on events (publish / subscribe) - -- [x] Work on asset corruption - -- [x] Make functionnal hitboxes between entities - -- [x] Change the way default values are defined across components and systems - - [x] Remove the need of a dummy texture - -- [x] Work on linked lists optimizations +# What to do for the 2D Engine + +### Todo + +###### Features + +- [ ] Change linked list for each implementation to a macro (iykyk) + +- [ ] Add compression into asset builder and asset manager + +- [ ] Make functionnal hitboxes between entities and map + +- [ ] Make triggers + - [ ] Add triggers into map loading + +- [ ] Make physics component use acceleration + +- [ ] Make camera use acceleration + +###### Bugs + +- [ ] Fix transparency issues + - [ ] Rethink export properties and platforms ? + +- [ ] Fix door component and other components (?) loading from map + +### In progress + +- [ ] Create lua component + +### Done + +- [x] Make camera center on map + +- [x] Create camera + +- [x] Optimize asset builder file analize + +- [x] Create tilemap management and display + - [x] Find tilemap building format + - [x] Add building support for tilemaps in asset builder + - [x] Add loading support in asset manager + - [x] Display tilemaps + - [ ] Work on optimizations ! + +- [x] Work on entities draw order + +- [x] Make entities react to events + +- [x] Work on events (publish / subscribe) + +- [x] Work on asset corruption + +- [x] Make functionnal hitboxes between entities + +- [x] Change the way default values are defined across components and systems + - [x] Remove the need of a dummy texture + +- [x] Work on linked lists optimizations diff --git a/src/Makefile b/src/Makefile index 2da5858..920c46b 100644 --- a/src/Makefile +++ b/src/Makefile @@ -9,7 +9,8 @@ SOURCES := \ components/animation_system.c \ components/player_system.c \ components/lever_component.c \ - components/door_component.c + components/door_component.c \ + components/lua_component.c # Compiler and flags SRC_CC = gcc diff --git a/src/components/headers/components.def b/src/components/headers/components.def index 8b2c3ab..0b59658 100644 --- a/src/components/headers/components.def +++ b/src/components/headers/components.def @@ -18,6 +18,7 @@ COMPONENT(ANIMATION_SYSTEM, animation_system, NO_DRAW) COMPONENT(PLAYER_SYSTEM, player_system, NO_DRAW) COMPONENT(LEVER_COMPONENT, lever_component, NO_DRAW) COMPONENT(DOOR_COMPONENT, door_component, NO_DRAW) +COMPONENT(LUA_COMPONENT, lua_component, NO_DRAW) // Add new components definition here #undef COMPONENT diff --git a/src/components/headers/components.h b/src/components/headers/components.h index 4546275..0082d1c 100644 --- a/src/components/headers/components.h +++ b/src/components/headers/components.h @@ -10,6 +10,7 @@ #include "player_system.h" #include "lever_component.h" #include "door_component.h" +#include "lua_component.h" // Add new components header file here #endif // COMPONENTS_H \ No newline at end of file diff --git a/src/components/headers/lua_component.h b/src/components/headers/lua_component.h new file mode 100644 index 0000000..e69de29 diff --git a/src/components/lua_component.c b/src/components/lua_component.c new file mode 100644 index 0000000..367d4e5 --- /dev/null +++ b/src/components/lua_component.c @@ -0,0 +1,6 @@ +#ifndef LUA_COMPONENT_H +#define LUA_COMPONENT_H + + + +#endif // LUA_COMPONENT_H \ No newline at end of file