From f368aecfd6a8335a491843e3451ce3a6d8d77b20 Mon Sep 17 00:00:00 2001 From: Cameron Reikes Date: Tue, 13 Dec 2022 17:39:48 -0800 Subject: [PATCH] Spawn orbs everywhere --- gamestate.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/gamestate.c b/gamestate.c index d757823..7636f24 100644 --- a/gamestate.c +++ b/gamestate.c @@ -2306,9 +2306,13 @@ void create_initial_world(GameState *gs) create_orb(gs, orb); \ entity_set_pos(orb, pos); \ } - ORB_AT(cpv(-5.0, 0.0)); - ORB_AT(cpv(-50.0, 100.0)); - ORB_AT(cpv(-50.0, -100.0)); + for(int x = -10; x > -1000; x -= 20) + { + for(int i = -20; i < 20; i++) + { + ORB_AT(cpv(x, (double)i * 100.0)); + } + } create_bomb_station(gs, (cpVect){800.0, 800.0}, BoxExplosive); // create_hard_shell_station(gs, (cpVect){800.0, 400.0}, BoxGyroscope); create_bomb_station(gs, (cpVect){800.0, -800.0}, BoxCloaking);