DropManager
|
Today I reworked the drop system and added a DropManager which will manage the drop spawning. bigger_pad 1000 and then I added everything up and that is 1000 + 1000 + 200 + 500 = 2700. then its like 500 / 2700 = shield barrier When I spawn a drop I randomize a float value between 0.0 and 100.0. I loop the vector which has the barrier property as a member and Im checking if the barrier is higher or equal to the randomized value. if it is,I grab the current key and send it away to createDrop method. |