button ( 325, 300, easy_roll, easy_norm, easy_roll, set_difficulty(), NULL, NULL);
button ( 325, 350, medium_roll, medium_norm, medium_roll, set_difficulty(), NULL, NULL);
button ( 325, 400, hard_roll, hard_norm, hard_roll, set_difficulty(), NULL, NULL);
button ( 325, 450, impossible_roll, impossible_norm, impossible_roll, set_difficulty(), NULL, NULL);
function set_difficulty ( button_number, panel)
{
start_pan.visible = OFF;
if(button_number == 1)
{
computer_speed = 2;
ball_speed = 1;
}
if(button_number == 2)
{
computer_speed = 4;
ball_speed = 2;
}
if(button_number == 3)
{
computer_speed = 6;
ball_speed = 3;
}
if(button_number == 4)
{
computer_speed = 10;
ball_speed = 5;
}
player_pan.visible = ON;
controls_pan.visible = OFF;
}