summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavidovski <david@sendula.com>2021-04-24 15:46:35 +0100
committerdavidovski <david@sendula.com>2021-04-24 15:46:35 +0100
commit8cb785f791ed4e9a655e80c4668544143a7c59a4 (patch)
tree62d97e6308a7f08ffc8a51f3869a55045cacd374
parentf292188965e3444cf84d25a13693bc863787f4a1 (diff)
removed monitor line
-rw-r--r--asteroids.c4
1 files changed, 1 insertions, 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()) {