|
-
Dec 14th, 2001, 08:25 PM
#1
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
this is close but not quite right any help much appriciated
[email protected]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|