



A demo I wrote to figure out how collision detection works in Java. This demo shows 2 rectangles, one that is controlled by the mouse (white) and one that moves diagonally (green). if the white rectangle hits the green one the “hit” counter will go up by one. In this demo you must try to avoid the green rectangle and hit the upper left and lower right to gain points.
For more info, downloads and the sourcecode visit the topic on our forums here


More Options ...
Categories
Tag Cloud
Blog RSS
Comments RSS

Void « Default
Life
Earth
Wind
Water
Fire
Light 
[...] one that moves diagonally (green). i Demo video en sourecode can be downloaded on my site here Engineeringserver.com | Java 2d Collision detection demo __________________ Java open source software created by me or by our members [...]