示例#1
0
 def spawnBar(self):
     h = random.randrange(100, 450, 25)
     color = (random.randrange(1, 256), random.randrange(1, 256), random.randrange(1, 256))
     bar = Bar(550, 0, 50, h, color)
     bar.accelerate(20)
     self.mBars.append(bar)
     color2 = (random.randrange(1, 256), random.randrange(1, 256), random.randrange(1, 256))
     randy = h + 100
     botbar = Bar(550, randy, 50, 500-randy, color)
     botbar.accelerate(20)
     self.mbotBars.append(botbar)
     return