Android Java rectangle collision detection not working
- by Charlton Santana
I had been hard coding a collision detection system which was buggy. Then I came across using rectangles for collsion detection. So I put it all in and it does not work, I put a log in and it never logged.
Note to Java programmers who are not Android programers: Android uses the word Rect instead of Rectangle.
Code for Block.java:
public Rect…