Skip to content

Commit

Permalink
fixed the ball clipping into walls issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mat-sz committed Jan 2, 2020
1 parent 3029386 commit 002e5ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pong.S
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ ballPhysicsTop:

ballPhysicsBottom:
# bounce from the bottom
sub $2, %ax
add $4, %ax
cmp $SCREEN_HEIGHT, %ax

jl moveBall
Expand Down

0 comments on commit 002e5ef

Please sign in to comment.