diff options
| author | r4tss <[email protected]> | 2022-01-25 18:44:43 +0100 |
|---|---|---|
| committer | r4tss <[email protected]> | 2022-01-25 18:44:43 +0100 |
| commit | 99c3f90ac87f760888b05f8725ea976de83e5fc3 (patch) | |
| tree | 96930213e10d9b9b88ea4f0b5347aceb02e617bd /pong.c | |
| parent | a4facba41620914a4febe446786624eacd2fec73 (diff) | |
Added new projects
Diffstat (limited to 'pong.c')
| -rw-r--r-- | pong.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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){ |
