()
| 1591 | summoned = 0 |
| 1592 | |
| 1593 | def NextWave(): |
| 1594 | global wave |
| 1595 | global summoned |
| 1596 | global waveTime |
| 1597 | global pace |
| 1598 | global gameover |
| 1599 | if gameover == 0: |
| 1600 | self.after(10,NextWave) |
| 1601 | if summoned == 0: |
| 1602 | summoned = 1 |
| 1603 | waveTime = pace |
| 1604 | if waveTime <= 0: |
| 1605 | Summon() |
| 1606 | if not Enemies and not Enemies2 and not Enemies3 and not Enemies4 and not Enemies5 and not Enemies6: |
| 1607 | Summon() |
| 1608 | waveTime -= 10 |
| 1609 | self.lbScore.config(text="Wave: "+str(wave)+" Next Wave: "+str(waveTime/1000)+"sec Press 'p' to pause") |
| 1610 | |
| 1611 | def GameOver(): |
| 1612 | global gameover |