Loading and destroying maps.
This commit is contained in:
parent
40ca8cb777
commit
73a3133547
|
|
@ -1 +1 @@
|
|||
Subproject commit 405ed84cae9b83eba540d7ee319f5ff025a314a1
|
||||
Subproject commit 4995e0757b6b8fc494b37b9d0ad669eff7f776df
|
||||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue