MCPcopy Create free account
hub / github.com/ActiveState/code / NextWave

Function NextWave

recipes/Python/580636_Space_Assault/recipe-580636.py:1593–1609  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 11

LeftKeyFunction · 0.85
RightKeyFunction · 0.85
UpKeyFunction · 0.85
DownKeyFunction · 0.85
ShootFunction · 0.85
PauseFunction · 0.85
AKeyFunction · 0.85
DKeyFunction · 0.85
WKeyFunction · 0.85
SKeyFunction · 0.85
Shoot2Function · 0.85

Calls 3

SummonFunction · 0.85
strFunction · 0.85
afterMethod · 0.45

Tested by

no test coverage detected