@Override
    public void onUpdate(World apples) {
       if (!apples.inBounds(X, Y))
       {
           alive = false;
           //apples.explode(X, Y, 32, 8, 16);
       }
       if (!apples.isSolid(X, Y-10))
       {
           Y-=10;
       }
       for (int i = 1; i < 10; i++)
       {
            if (!apples.isSolid(X, Y+i))
            {
                Y+=i;
                //life-=i/2;
            }
       }
       near = false;
       if (Math.abs(apples.x-X)<64)
       {
        if (Math.abs(apples.y-Y)<64)
        {
            near = true;
            if (apples.keys[KeyEvent.VK_C])
            {
                alive = false;
                APPLET.unlocks.set(0, 1, true);
                APPLET.CTD.postRSSfeed(APPLET.username + " found a rare item!","A Viking Helmet!");
            }
        }
       }
       /*if (yspeed<12)
       {
           yspeed++;
       }*/
    }