Spawn
Last updated
Last updated
This spawning algorithm is triggered every time a terrain chunk is spawned.
A simple chance percentage.
Weighted random between all purchased Super Power
Each Super Power have different weight value
Only Super Power that is at least Level 1 included in the weighted random calculation
Spawned just at the right side of the screen
Spawned at the exact same Y position as Mr. Boulder
Have minimum Y position
Out of screen (left side of screen)
When hitting wall