Increase min distance asteroids spawn at

This commit is contained in:
2025-10-18 17:43:22 +01:00
parent e9cb65534c
commit 4ce86ec405

6
game.c
View File

@@ -25,7 +25,7 @@
#define ASTEROID_MEDIUM 0.1
#define ASTEROID_LARGE 0.15
#define ASTEROID_R_JITTER 0.02
#define ASTEROID_MIN_DIST 0.5
#define ASTEROID_MIN_DIST 0.8
#define LIN_PWR 0.0001
#define ROT_PWR 0.002
@@ -171,7 +171,7 @@ static entity_t *gen_asteroid(float r_mean)
return e;
}
static void add_asteroid()
static void spawn_asteroid()
{
float r;
const float rnd = rng_canon();
@@ -341,7 +341,7 @@ void game_init(float _aspect)
memcpy(fire->verts, fire_verts, sizeof(fire_verts));
for (unsigned i = 0; i < INIT_ASTEROIDS; ++i)
add_asteroid();
spawn_asteroid();
}
void game_update()