button ( 325, 300, easy_roll, easy_norm, easy_roll, difficulty(1), NULL, NULL);
button ( 325, 350, medium_roll, medium_norm, medium_roll, difficulty(2), NULL, NULL);
button ( 325, 400, hard_roll, hard_norm, hard_roll, difficulty(3), NULL, NULL);
button ( 325, 450, impossible_roll, impossible_norm, impossible_roll, difficulty(4), NULL, NULL);
function difficulty(var diff)
{
start_pan.visible = OFF;
if ( diff == 1)
{
computer_speed = 2;
ball_speed = 1;
}
if ( diff == 2)
{
computer_speed = 4;
ball_speed = 2;
}
if ( diff == 3)
{
computer_speed = 6;
ball_speed = 3;
}
if ( diff == 4)
{
computer_speed = 10;
ball_speed = 5;
}
players_func();
}