vineetjc / pygame-Coin-Fall-

Collect as many coins from the coin fall in 30 seconds. Avoid the bombs! Made using pygame.
MIT License
6 stars 15 forks source link

Improvement: Improve Spawn #58

Closed amrit-choudhary closed 5 years ago

amrit-choudhary commented 5 years ago

Improve the spawn algorithm. It will depend on the difficulty and the game mode. Currently working on the idea below, please give you ideas or suggestions

get_random_entity function is very bad right now, please change it to something good it's called every frame make it more predictable for example: 75% of the time, nothing will drop 15% of the time, silver coin drops 5% of the time, gold coin drops 5% of the time, bomb drops

and have these values 75, 15, 5 and 5 as variables that are set through difficulty

for example in hard it's 55, 15, 5, 25

amrit-choudhary commented 5 years ago

First iteration in #57 , please try and give feedback.

amrit-choudhary commented 5 years ago

added in #57