bouncing balls java

preview_player
Показать описание
Recording at 30 fps using BB FlashBack Express. some frame loss due to recording.

if two small red and blue balls collide: make 1 new small red ball
if two medium red and blue balls collide: make 2 new small red balls
if two large red and blue balls collide: make 2 new small red balls, 1 new small blue ball.

multithreading for ball movements and collision detection.

TIPS:
for nice clean circles use,
Graphics2D g2d = (Graphics2D)g;

for 2-dimensional collision physics, read:
Рекомендации по теме
Комментарии
Автор

Please show us a glimpe of the source code or take us through it...

feysalimran
Автор

Hi man, how do you do it ? the code please.

Автор

hello please can you spend your programming

mechalztec