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