melonpan0130 / Come_back_home

This is game that girl going home. (seems to survival game)
0 stars 0 forks source link

Traps are made at random. #5

Closed melonpan0130 closed 5 years ago

melonpan0130 commented 5 years ago

But the random value is over than 350

melonpan0130 commented 5 years ago

I have to create a collision method before this...

melonpan0130 commented 5 years ago

I made trap appear at random by using float array. float m_TrapTimerGap[5] = { 800.f, 1200.f,1600.f, 2000.f, 2400.f }; // this is global member..

melonpan0130 commented 5 years ago

m_TrapGap = m_TrapTimerGap[rand() % 5]; // float m_TrapGap;