Closed GoogleCodeExporter closed 8 years ago
Any expansion on 'specific values'?
Can you test to see which ones?
Original comment by rtaylor205@gmail.com
on 10 Jul 2010 at 6:59
Well, the ones in my example above are representative for the issue.
Original comment by necrotic...@gmail.com
on 11 Jul 2010 at 6:56
OK, I think I found the problem: line 182 in MathHelper.jave contains a silly
mistake:
return rectOverlap(sprite1.getX(), sprite1.getY(), sprite1.getX() +
sprite1.getWidth(), sprite1.getX() + sprite1.getHeight(), sprite2.getX(),
sprite2.getY(), sprite2.getX() + sprite2.getWidth(), sprite2.getY() +
sprite2.getHeight());
note the sprite1.getX() + sprite1.getHeight()
this should be
return rectOverlap(sprite1.getX(), sprite1.getY(), sprite1.getX() +
sprite1.getWidth(), sprite1.getY() + sprite1.getHeight(), sprite2.getX(),
sprite2.getY(), sprite2.getX() + sprite2.getWidth(), sprite2.getY() +
sprite2.getHeight());
Original comment by necrotic...@gmail.com
on 13 Jul 2010 at 7:46
necroticist was right.
lack of unit tests.
Original comment by wuas...@gmail.com
on 22 Jul 2010 at 7:21
Thanks, dumb mistake
Original comment by rtaylor205@gmail.com
on 25 Jul 2010 at 8:38
Original issue reported on code.google.com by
necrotic...@gmail.com
on 9 Jul 2010 at 11:20