From: AynRandDuran Date: Sat, 3 Jul 2021 16:38:44 +0000 (-0400) Subject: Got rid of old asteroid spawning model X-Git-Url: http://git.mcshandy.xyz/gitweb.cgi?a=commitdiff_plain;h=c44a55b434abdac4a28846664b4219402b6947fe;p=assteroids Got rid of old asteroid spawning model --- diff --git a/assteroids.h b/assteroids.h index 2b77ed1..88adae6 100644 --- a/assteroids.h +++ b/assteroids.h @@ -22,11 +22,6 @@ Rectangle screenspace = {-200, -200, scrW+200, scrH+200}; Vector4* asteroids; const int MAX_ASTEROIDS = 16; -Vector4 NE = {0, scrH, 0, 90}; -Vector4 NW = {scrW, scrH, 91, 180}; -Vector4 SW = {0, 0, 181, 275}; -Vector4 SE = {scrW, 0, 276, 359}; - Vector4** astr_dirs; #endif //__ass diff --git a/game.cpp b/game.cpp index 774fe22..f403494 100644 --- a/game.cpp +++ b/game.cpp @@ -143,12 +143,6 @@ void update_astrs() { int main(void) { srand(time(NULL)); - astr_dirs = (Vector4**)malloc(sizeof(Vector4*) * 4); - astr_dirs[0] = ≠ - astr_dirs[1] = &NW; - astr_dirs[2] = &SE; - astr_dirs[3] = &SW; - InitWindow(scrW, scrH, "Assteroids Raylib"); SetTargetFPS(50); init_ship();