2021-07-07 23:43:05 -07:00
|
|
|
var spawn = choose("spinners","meteors","bees")
|
2021-06-28 18:44:09 -07:00
|
|
|
|
|
|
|
sound_play(snd_newwave)
|
|
|
|
|
|
|
|
switch spawn
|
|
|
|
{
|
|
|
|
case "spinners":
|
2021-07-07 23:43:05 -07:00
|
|
|
var make = 6
|
2021-06-28 18:44:09 -07:00
|
|
|
if rank <= 5
|
|
|
|
make = 4
|
|
|
|
if rank <= 3
|
|
|
|
make = 2
|
|
|
|
repeat(make)
|
|
|
|
{
|
|
|
|
instance_create(room_width/2 + random(900) * cos(35+random(20)),room_height/2 + random(900) * sin(35+random(20)),obj_spinner)
|
|
|
|
instance_create(room_width/2 + random(900) * cos(125+random(20)),room_height/2 + random(900) * sin(125+random(20)),obj_spinner)
|
|
|
|
instance_create(room_width/2 + random(900) * cos(215+random(20)),room_height/2 + random(900) * sin(215+random(20)),obj_spinner)
|
|
|
|
instance_create(room_width/2 + random(900) * cos(305+random(20)),room_height/2 + random(900) * sin(305+random(20)),obj_spinner)
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case "meteors":
|
2021-07-07 23:43:05 -07:00
|
|
|
var make = 1
|
2021-06-28 18:44:09 -07:00
|
|
|
if rank <= 5
|
|
|
|
make = 1
|
|
|
|
if rank <= 3
|
|
|
|
make = 1
|
|
|
|
repeat (make)
|
|
|
|
{
|
|
|
|
instance_create(room_width/2 + random(900) * cos(35+random(20)),room_height/2 + random(900) * sin(35+random(20)),obj_meteorlarge)
|
|
|
|
instance_create(room_width/2 + random(900) * cos(125+random(20)),room_height/2 + random(900) * sin(125+random(20)),obj_meteorlarge)
|
|
|
|
instance_create(room_width/2 + random(900) * cos(215+random(20)),room_height/2 + random(900) * sin(215+random(20)),obj_meteorlarge)
|
|
|
|
instance_create(room_width/2 + random(900) * cos(305+random(20)),room_height/2 + random(900) * sin(305+random(20)),obj_meteorlarge)
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case "bees":
|
2021-07-07 23:43:05 -07:00
|
|
|
var make = 10
|
2021-06-28 18:44:09 -07:00
|
|
|
if rank <= 5
|
|
|
|
make = 5
|
|
|
|
if rank <= 3
|
|
|
|
make = 3
|
|
|
|
repeat (make)
|
|
|
|
{
|
|
|
|
instance_create(room_width/2 + random(900) * cos(35+random(20)),room_height/2 + random(900) * sin(35+random(20)),obj_bees)
|
|
|
|
instance_create(room_width/2 + random(900) * cos(125+random(20)),room_height/2 + random(900) * sin(125+random(20)),obj_bees)
|
|
|
|
instance_create(room_width/2 + random(900) * cos(215+random(20)),room_height/2 + random(900) * sin(215+random(20)),obj_bees)
|
|
|
|
instance_create(room_width/2 + random(900) * cos(305+random(20)),room_height/2 + random(900) * sin(305+random(20)),obj_bees)
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
alarm[2] = 150 - (5*rank)
|
|
|
|
if alarm[2] < 45
|
|
|
|
{
|
|
|
|
alarm[2] = 30
|
|
|
|
}
|
2021-07-07 23:43:05 -07:00
|
|
|
|