timer++; image_alpha -= 0.05; image_angle += ((40 - timer) / 10); if (speed < 0) speed = 0;