Beispiel #1
0
 def tick(self,frametime):
     self.enemycounter -= frametime
     if self.enemycounter<=0:
         Enemy(self.wavedictlist[self.enemiesgone],len(self.wavedictlist))
         self.enemiesgone+=1
         if self.enemiesgone<len(self.wavedictlist):
             self.enemycounter += self.wavedictlist[self.enemiesgone]["timer"]
         else:
             senderlist.remove(self)
 def tick(self,frametime):
     self.enemycounter -= frametime
     if self.enemycounter<=0:
         if self.enemiesgone<mapvar.mapdict['wave'+str(self.wavenum)+self.letter][0]:
             Enemy(self.wavenum,self.letter)
             self.enemiesgone+=1
         else:
             senderlist.remove(self)
         self.enemycounter = 1.0