summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorarngo <[email protected]>2023-05-30 20:00:20 -0400
committerarngo <[email protected]>2023-05-30 20:00:20 -0400
commit5d1931537edb60b48538b714944eca7ce5db2739 (patch)
tree792a12f113ed456f33fc6cb5766898935d047fbf
parent3c6a193ccdbadaf3f512a2770d3b35970c39980f (diff)
downloadTOJam2023-5d1931537edb60b48538b714944eca7ce5db2739.tar.gz
TOJam2023-5d1931537edb60b48538b714944eca7ce5db2739.zip
complete deinit functions
-rw-r--r--src/bullet.c3
-rw-r--r--src/wall.c4
2 files changed, 7 insertions, 0 deletions
diff --git a/src/bullet.c b/src/bullet.c
index 4da1429..64b4a9c 100644
--- a/src/bullet.c
+++ b/src/bullet.c
@@ -24,6 +24,9 @@ deinit_bullets(void)
{
rodeo_texture_2d_destroy(&bullet_texture);
rodeo_audio_sound_destroy(pop_sound);
+ rodeo_collision_2d_world_destroy(&player_bullet_collision_world);
+ rodeo_collision_2d_world_destroy(&enemy_bullet_collision_world);
+ cvec_bullet_t_drop(&bullets);
}
bullet_t *
diff --git a/src/wall.c b/src/wall.c
index 26849ba..91d2e65 100644
--- a/src/wall.c
+++ b/src/wall.c
@@ -47,6 +47,10 @@ void
deinit_wall(void)
{
rodeo_collision_2d_world_destroy(&collision_wall_world);
+ rodeo_texture_2d_destroy(&wall_texture);
+ rodeo_texture_2d_destroy(&floor_texture);
+ rodeo_texture_2d_destroy(&goat_texture);
+ rodeo_texture_2d_destroy(&logo_texture);
}
rodeo_collision_2d_world_t *