Open Cash120 opened 6 years ago
`@@ -0,0 +1,37 @@
isBallHit = true; brickBottom top brickLeft brickRight Ballx Bally Balldx Balldy
if(Ballx <= brickRight && Ballx >= brickLeft): { isBallHit = true }
else: { isBallHit = false }
for step in range (): testx = Ballx - step(Balldx) 0.005 testy = Bally - step(Balldy) 0.005
if(testx > brickRight): side = right break elif(testx< brickLeft): side = left break
if (sideHit == up || sideHit == down): { ball dy = ball dy }`
`@@ -0,0 +1,37 @@
variables
isBallHit = true; brickBottom top brickLeft brickRight Ballx Bally Balldx Balldy
if(Ballx <= brickRight && Ballx >= brickLeft): { isBallHit = true }
else: { isBallHit = false }
for step in range (): testx = Ballx - step(Balldx) 0.005 testy = Bally - step(Balldy) 0.005
if(testx > brickRight): side = right break elif(testx< brickLeft): side = left break
if (sideHit == up || sideHit == down): { ball dy = ball dy }`