A simple breakout game prob
hello peps
i am writing a simple breakout prog where there is a row of bricks at the top of the page and there is a bat at the bottom and a ball wizzing aroud the screen i can't quite get the code right dor when the ball is hitting the bat. when it hits the bat it bounces off but when it comes down the page the ball bounces off the same level of the top of the bat reguardless of the bat being there
If shpBall.Top + shpBall.Height > shpBat.Top Then '_
'And shpBall.Top + shpBall.Height < shpBat.Left _
'And shpBall.Top + shpBall.Height > shpBat.Left + shpBat.Width Then
yDirection = -1
End If:confused:
this is close but not quite right any help much appriciated
[email protected]