summaryrefslogtreecommitdiffhomepage
path: root/src/bullet.c
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2023-06-06 07:07:58 -0400
committerrealtradam <[email protected]>2023-06-06 07:07:58 -0400
commite0db1d21b1d0a08e32b5796d170cd6af9b2f5c9f (patch)
tree557d9fa8ee925b8259ec8b785063e898a093c67e /src/bullet.c
parent6c2a5968c27bffe4233be55d13ce01c63ab292ef (diff)
downloadrodeo_sample_game-e0db1d21b1d0a08e32b5796d170cd6af9b2f5c9f.tar.gz
rodeo_sample_game-e0db1d21b1d0a08e32b5796d170cd6af9b2f5c9f.zip
initialize collision vectors with reasonable sizes
Diffstat (limited to 'src/bullet.c')
-rw-r--r--src/bullet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bullet.c b/src/bullet.c
index fdd4b3a..d0c69cd 100644
--- a/src/bullet.c
+++ b/src/bullet.c
@@ -15,8 +15,8 @@ static cvec_bullet_t bullets = {0};
void
init_bullets(void)
{
- player_bullet_collision_world = rodeo_collision_2d_collection_create();
- enemy_bullet_collision_world = rodeo_collision_2d_collection_create();
+ player_bullet_collision_world = rodeo_collision_2d_collection_create(50);
+ enemy_bullet_collision_world = rodeo_collision_2d_collection_create(150);
bullet_texture = rodeo_gfx_texture_2d_create_from_path(cstr_lit("assets/bullet.png"));
pop_sound = rodeo_audio_sound_create_from_path(cstr_lit("assets/pop.wav"));
}