@Override
    public void onUpdate(World apples) {
       if (!apples.inBounds((int)X, (int)Y)||apples.checkCollision((int)X, (int)Y))
       {
           
           alive = false;
           //apples.explode(X, Y, 32, 8, 16);
       }
       for (Player p:apples.playerList)
       {
           if (apples.pointDis(X, Y, p.x, p.y)<radius&&maker!=p.ID)
           {
               alive = false;
           }
       }
       if (gravity++>3)
       {
         yspeed+=1;
         gravity = 0;
       }
       
       /*if (yspeed<12)
       {
           yspeed++;
       }*/
    }