From 8cb785f791ed4e9a655e80c4668544143a7c59a4 Mon Sep 17 00:00:00 2001 From: davidovski Date: Sat, 24 Apr 2021 15:46:35 +0100 Subject: removed monitor line --- asteroids.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/asteroids.c b/asteroids.c index 33876f0..ca6828b 100644 --- a/asteroids.c +++ b/asteroids.c @@ -142,7 +142,7 @@ int breakAsteroid(int i) { asteroids[i].size -= 1; if (asteroids[i].size > 0) { // split the velocity in 2, adding a bit extra from the lazer - double m = (magnitude(&asteroids[i].vel) + 0.3d*S_SPEED)*0.5d; + double m = (magnitude(&asteroids[i].vel) + 0.3*S_SPEED)*0.5; randVec(&asteroids[i].vel, m); int s = pow(2, asteroids[i].size + 1); addAsteroid( @@ -310,8 +310,6 @@ int main() { reset(); InitWindow(width, height, "game"); - Vector2 m = GetMonitorPosition(1); - SetWindowPosition(m.x, m.y); SetTargetFPS(60); while (!WindowShouldClose()) { -- cgit v1.2.1