|
|
|
@ -52,23 +52,46 @@ bool Crawler::OnUserCreate(){ |
|
|
|
|
player.UpdateAnimation(AnimationState::IDLE_S); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SPAWNER_LIST.push_back(MonsterSpawner({336,96},4*24,{{{MonsterName::SLIME_BLUE,{-32,-40}},{MonsterName::SLIME_GREEN,{64,20}}}})); |
|
|
|
|
std::vector<std::pair<MonsterName,vf2d>>circleSpawn; |
|
|
|
|
for(int i=0;i<12;i++){ |
|
|
|
|
float angle=(2*PI)*(i/12.f); |
|
|
|
|
switch(i%3){ |
|
|
|
|
case 0:{ |
|
|
|
|
circleSpawn.push_back({MonsterName::SLIME_BLUE,{cos(angle)*32,sin(angle)*32}}); |
|
|
|
|
}break; |
|
|
|
|
case 1:{ |
|
|
|
|
circleSpawn.push_back({MonsterName::SLIME_GREEN,{cos(angle)*32,sin(angle)*32}}); |
|
|
|
|
}break; |
|
|
|
|
case 2:{ |
|
|
|
|
circleSpawn.push_back({MonsterName::SLIME_RED,{cos(angle)*32,sin(angle)*32}}); |
|
|
|
|
}break; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
SPAWNER_LIST.push_back(MonsterSpawner({540,96},4*24,circleSpawn)); |
|
|
|
|
SPAWNER_LIST.push_back(MonsterSpawner({360*1,96},4*24,{{ |
|
|
|
|
{MonsterName::SLIME_GREEN,{(rand()%20/2.f-5)*24,(rand()%20/2.f-5)*24}} |
|
|
|
|
,{MonsterName::SLIME_GREEN,{(rand()%20/2.f-5)*24,(rand()%20/2.f-5)*24}} |
|
|
|
|
}})); |
|
|
|
|
SPAWNER_LIST.push_back(MonsterSpawner({360*2,96},4*24,{{ |
|
|
|
|
{MonsterName::SLIME_GREEN,{(rand()%20/2.f-5)*24,(rand()%20/2.f-5)*24}} |
|
|
|
|
,{MonsterName::SLIME_GREEN,{(rand()%20/2.f-5)*24,(rand()%20/2.f-5)*24}} |
|
|
|
|
,{MonsterName::SLIME_RED,{(rand()%20/2.f-5)*24,(rand()%20/2.f-5)*24}} |
|
|
|
|
}})); |
|
|
|
|
SPAWNER_LIST.push_back(MonsterSpawner({360*3,96},4*24,{{ |
|
|
|
|
{MonsterName::SLIME_BLUE,{(rand()%20/2.f-5)*24,(rand()%20/2.f-5)*24}} |
|
|
|
|
,{MonsterName::SLIME_BLUE,{(rand()%20/2.f-5)*24,(rand()%20/2.f-5)*24}} |
|
|
|
|
}})); |
|
|
|
|
SPAWNER_LIST.push_back(MonsterSpawner({360*4,96},4*24,{{ |
|
|
|
|
{MonsterName::SLIME_BLUE,{(rand()%20/2.f-5)*24,(rand()%20/2.f-5)*24}} |
|
|
|
|
,{MonsterName::SLIME_BLUE,{(rand()%20/2.f-5)*24,(rand()%20/2.f-5)*24}} |
|
|
|
|
,{MonsterName::SLIME_GREEN,{(rand()%20/2.f-5)*24,(rand()%20/2.f-5)*24}} |
|
|
|
|
,{MonsterName::SLIME_GREEN,{(rand()%20/2.f-5)*24,(rand()%20/2.f-5)*24}} |
|
|
|
|
,{MonsterName::SLIME_GREEN,{(rand()%20/2.f-5)*24,(rand()%20/2.f-5)*24}} |
|
|
|
|
}})); |
|
|
|
|
SPAWNER_LIST.push_back(MonsterSpawner({360*5,96},4*24,{{ |
|
|
|
|
{MonsterName::SLIME_BLUE,{(rand()%20/2.f-5)*24,(rand()%20/2.f-5)*24}} |
|
|
|
|
,{MonsterName::SLIME_BLUE,{(rand()%20/2.f-5)*24,(rand()%20/2.f-5)*24}} |
|
|
|
|
,{MonsterName::SLIME_RED,{(rand()%20/2.f-5)*24,(rand()%20/2.f-5)*24}} |
|
|
|
|
,{MonsterName::SLIME_RED,{(rand()%20/2.f-5)*24,(rand()%20/2.f-5)*24}} |
|
|
|
|
}})); |
|
|
|
|
SPAWNER_LIST.push_back(MonsterSpawner({360*6,96},4*24,{{ |
|
|
|
|
{MonsterName::SLIME_RED,{(rand()%20/2.f-5)*24,(rand()%20/2.f-5)*24}} |
|
|
|
|
,{MonsterName::SLIME_RED,{(rand()%20/2.f-5)*24,(rand()%20/2.f-5)*24}} |
|
|
|
|
,{MonsterName::SLIME_RED,{(rand()%20/2.f-5)*24,(rand()%20/2.f-5)*24}} |
|
|
|
|
,{MonsterName::SLIME_RED,{(rand()%20/2.f-5)*24,(rand()%20/2.f-5)*24}} |
|
|
|
|
,{MonsterName::SLIME_RED,{(rand()%20/2.f-5)*24,(rand()%20/2.f-5)*24}} |
|
|
|
|
}})); |
|
|
|
|
SPAWNER_LIST.push_back(MonsterSpawner({360*7,96},4*24,{{ |
|
|
|
|
{MonsterName::SLIME_BLUE,{(rand()%20/2.f-5)*24,(rand()%20/2.f-5)*24}} |
|
|
|
|
,{MonsterName::SLIME_BLUE,{(rand()%20/2.f-5)*24,(rand()%20/2.f-5)*24}} |
|
|
|
|
,{MonsterName::SLIME_BLUE,{(rand()%20/2.f-5)*24,(rand()%20/2.f-5)*24}} |
|
|
|
|
,{MonsterName::SLIME_BLUE,{(rand()%20/2.f-5)*24,(rand()%20/2.f-5)*24}} |
|
|
|
|
,{MonsterName::SLIME_BLUE,{(rand()%20/2.f-5)*24,(rand()%20/2.f-5)*24}} |
|
|
|
|
}})); |
|
|
|
|
|
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|