From 002e5efb33105d7f2e827659f59be8c13c405618 Mon Sep 17 00:00:00 2001 From: Mat Sz Date: Thu, 2 Jan 2020 20:58:24 +0100 Subject: [PATCH] fixed the ball clipping into walls issue --- pong.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pong.S b/pong.S index 7d58a85..7390261 100644 --- a/pong.S +++ b/pong.S @@ -177,7 +177,7 @@ ballPhysicsTop: ballPhysicsBottom: # bounce from the bottom - sub $2, %ax + add $4, %ax cmp $SCREEN_HEIGHT, %ax jl moveBall