← Back to ratslair.com
aboutsummaryrefslogtreecommitdiff
path: root/pong.c
diff options
context:
space:
mode:
authorr4tss <[email protected]>2022-01-25 18:44:43 +0100
committerr4tss <[email protected]>2022-01-25 18:44:43 +0100
commit99c3f90ac87f760888b05f8725ea976de83e5fc3 (patch)
tree96930213e10d9b9b88ea4f0b5347aceb02e617bd /pong.c
parenta4facba41620914a4febe446786624eacd2fec73 (diff)
Added new projects
Diffstat (limited to 'pong.c')
-rw-r--r--pong.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pong.c b/pong.c
index fe4e897..9c5ff54 100644
--- a/pong.c
+++ b/pong.c
@@ -150,11 +150,11 @@ int main(int argc, char ** argv) {
SDL_Delay(1);
if(checkCollision(ball, p1) == true || checkCollision(ball, p2) == true){
- ballvelx = -ballvelx * 1.1;
+ ballvelx = -ballvelx * 1.5;
}
if(ball.y <= 0 || ball.y >= 740){
- ballvely = -ballvely * 1.1;
+ ballvely = -ballvely * 1.5;
}
if(ball.x <= 0){