CoilBrew / sidescroller

0 stars 0 forks source link

Make obstacle appearance a bit more nuanced #6

Closed chrisgrounds closed 6 years ago

chrisgrounds commented 6 years ago
while True:
# ...
    player.move()                                                                                                                             
    floor.draw()                                                                                                                              
    obstacle.draw()   

The method draw on the obstacle object is called every game loop.

Want to add some logic that makes it get called only (a) randomly or (b) when a certain condition is met (timer?)