| Issue 17: | Bugfix for Sprite pixel level collision detection | |
| 1 person starred this issue and may be notified of changes. | Back to list |
There is a bug in Sprite's pixel level collision detection, which causes the getRGB method to sometimes throw an IllegalArgumentException or return the wrong values. The problem only appears on Sprites with multiple frames when the number of columns does not match the number of rows (for example a 1x3 or 3x2 image). The fix is small, just requiring switching the 'rows' variable with 'cols' in two places. |
Labels: Milestone-3.0