# class Pellet(FallingItem): # surf = pelletSurfaceObj # def giveBonus(self,p): # p.addScore(7) # p.pellets += 1 # #soundPickup.play() # # class FlowerItem(FallingItem): # surf = flowerSurfaceObj # def giveBonus(self,p): # p.addScore(50) # #soundPickup.play() # # class FlowerStalkItem(FallingItem): # surf = flowerstalkSurfaceObj # def giveBonus(self,p): # p.addScore(25) # #soundPickup.play() # while True: g = Game() gs = GameScreen(g, windowSurfaceObj) gs.showTitleScreen() while not g.isGameOver: g.update(fpsClock.tick_busy_loop()) gs.render() pygame.display.flip() gs.showGameOverScreen()
# #class FlowerItem(FallingItem): # surf = flowerSurfaceObj # def giveBonus(self,p): # p.addScore(50) # #soundPickup.play() # #class FlowerStalkItem(FallingItem): # surf = flowerstalkSurfaceObj # def giveBonus(self,p): # p.addScore(25) # #soundPickup.play() # while True: g = Game() gs = GameScreen(g, windowSurfaceObj) gs.showTitleScreen() while (not g.isGameOver): g.update(fpsClock.tick_busy_loop()) gs.render() pygame.display.flip() gs.showGameOverScreen()