예제 #1
0
 def move(self):
     if self.mSpeedCount % self.mSpeedCountMax == 0:
         newspeed = random.randrange(self.mMinSpeed, self.mMaxSpeed, 1)
         self.setSpeed(newspeed)
     self.mSpeedCount += 1
     Dodgeable.move(self)
     return
예제 #2
0
 def move(self):
     if self.mSpeedCount % self.mSpeedCountMax == 0:
         self.setSpeed(random.randint(self.mMinSpeed, self.mMaxSpeed))
     self.mSpeedCount += 1
     Dodgeable.move(self)
     return