diff --git a/SDL3_Core b/SDL3_Core index 405ed84..4995e07 160000 --- a/SDL3_Core +++ b/SDL3_Core @@ -1 +1 @@ -Subproject commit 405ed84cae9b83eba540d7ee319f5ff025a314a1 +Subproject commit 4995e0757b6b8fc494b37b9d0ad669eff7f776df diff --git a/assets/maps/dungeon_room_1.map b/assets/maps/dungeon_room_1.map index 466b7ed..81fcca7 100644 --- a/assets/maps/dungeon_room_1.map +++ b/assets/maps/dungeon_room_1.map @@ -99,10 +99,10 @@ { "Type": "TRANSFORM_COMPONENT", "Attributes": [ - 96, - 0, - 32, - 48 + 96.0, + 0.0, + 32.0, + 48.0 ] }, { @@ -116,7 +116,7 @@ "Attributes": [ 8, 0, - 30, + 30.0, false, false, false @@ -125,9 +125,9 @@ { "Type": "HITBOX_COMPONENT", "Attributes": [ - 0, + 0.0, 0.8333333333333334, - 1, + 1.0, 0.16666666666666666 ] }, @@ -146,10 +146,10 @@ { "Type": "TRANSFORM_COMPONENT", "Attributes": [ - 88, - 112, - 48, - 32 + 88.0, + 112.0, + 48.0, + 32.0 ] }, { @@ -163,7 +163,7 @@ "Attributes": [ 3, 0, - 100, + 100.0, false, false, false diff --git a/src/Makefile b/src/Makefile index 2da5858..ff19da6 100644 --- a/src/Makefile +++ b/src/Makefile @@ -18,7 +18,7 @@ SRC_CFLAGS = --std=c17 --pedantic -O3 # RELEASE SRC_LDFLAGS = -O3 else -SRC_CFLAGS = --std=c17 --pedantic -O1 -g -DDEBUG=2 \ +SRC_CFLAGS = --std=c17 --pedantic -O0 -g -DDEBUG=2 \ -Wall -Wno-missing-braces -Wextra -Wno-missing-field-initializers \ -Wformat=2 -Wswitch-default -Wswitch -Wcast-align \ -Wpointer-arith -Wbad-function-cast -Wstrict-overflow=5 \ @@ -27,7 +27,7 @@ SRC_CFLAGS = --std=c17 --pedantic -O1 -g -DDEBUG=2 \ -Wfloat-equal -Wstrict-aliasing=2 -Wredundant-decls \ -Wold-style-definition # DEVELOPEMENT -SRC_LDFLAGS = -O1 +SRC_LDFLAGS = -O0 endif SRC_INCLUDE_DIRS = $(SOURCE_DIR)/components/headers $(CORE_DIR)/headers diff --git a/src/game.c b/src/game.c index fde13bb..1b691dd 100644 --- a/src/game.c +++ b/src/game.c @@ -20,6 +20,8 @@ int game_init(void) if(!asset_manager_load_asset("tileset", ASSET_TEXTURE)) return_failure_int; + if(!asset_manager_load_asset("dungeon_room_1", ASSET_MAP)) return_failure_int; + /* ======== Player ======== */ { entity_t *player_entity = entity_manager_new_entity(0);