Game with shooter-shooter with android (appearance of balls)

I am making a little bubble game on android with OpenGL ES.

So, I want the balls to explode when another ball collides with it! ..

But the problem here is so small, but I can’t find a solution for it,

I want the image to look like figure (1), not like figure (2) ..

Bubbles are appearing right now with a square border around them, but I don't want that. How to remove image borders?

Many thanks, enter image description here

+3
source share
1 answer

? , . , ^ 2 + b ^ 2 = radius1 ^ 2 + radius2 ^ 2. , .

Bubble a,b
if((a.center.x - b.center.x)^2 + (a.center.y - b.center.y)^2 == (a.radius + b.radius)^2)
    //bubbles are touching
+4

All Articles