]> git.mcshandy.xyz Git - assteroids/commitdiff
Got rid of old asteroid spawning model
authorAynRandDuran <lpj1496@gmail.com>
Sat, 3 Jul 2021 16:38:44 +0000 (12:38 -0400)
committerAynRandDuran <lpj1496@gmail.com>
Sat, 3 Jul 2021 16:38:44 +0000 (12:38 -0400)
assteroids.h
game.cpp

index 2b77ed13473cf2cc4990d2e06f492bc479e64992..88adae635b58985f745acf5b6adf83eb29bcf128 100644 (file)
@@ -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
 
index 774fe22d8d364357cc195fec32bb132a8258dd2c..f403494b51bb540482297f5dc06a08a55db1902c 100644 (file)
--- 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] = &NE;
-    astr_dirs[1] = &NW;
-    astr_dirs[2] = &SE;
-    astr_dirs[3] = &SW;
-
     InitWindow(scrW, scrH, "Assteroids Raylib");
     SetTargetFPS(50);
     init_ship();