Timeline for pset 4 breakout ball hitting bricks
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 18, 2014 at 6:39 | comment | added | Sean DiSanti | Good deal. I was debating adding my bounce logic based on the quadrant making contact in the detectCollision() function but decided it was a little overkill. | |
Jun 17, 2014 at 17:34 | comment | added | Msholly | Thanks, I finally got it to hit all the bricks; although it did take several bounces on the windows edges (which modified the velocity) to actually hit the last 3 bricks. | |
Jun 17, 2014 at 0:11 | comment | added | Sean DiSanti | There a lot of adjustments that you could make, such as decrementing by .01 on a brick, incrementing by twice that off a paddle, etc. If fixed values aren't working, change them up. | |
Jun 16, 2014 at 18:32 | comment | added | Msholly | Thanks. I'll take a look, but my bounce logic is fine, its just that the ball is not moving in the direction to hit the last remaining bricks. It just hits the same spot on the window where no bricks are left. Maybe add some logic to change the speed if it hits the widows top edge? | |
Jun 16, 2014 at 5:38 | history | answered | Sean DiSanti | CC BY-SA 3.0 |