From 90e42581e1360da1d422d40545fc5fd24f531813 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 26 Mar 2021 23:25:54 -0400 Subject: ball: Move straight balls --- diff --git a/src/ball.c b/src/ball.c index 2a2c721..3230628 100644 --- a/src/ball.c +++ b/src/ball.c @@ -80,6 +80,8 @@ void db_balls_move(struct db_ball *ball) { if (ball->sr == 0) { + ball->x += cos(ball->a * (M_PI / 180)); + ball->y -= sin(ball->a * (M_PI / 180)); } else { ball->a += ball->d * ball->s; ball->x = ball->cx + cos(ball->a * (M_PI / 180)) * ball->sr; -- cgit v0.9.1