def evt_tilt_ball_ending(self):
    self.game.log("Bonus Mode awakened (TILT)!")

    self.game.sound.play('ball_drain')
    fs = HDFontStyle()
    fs.line_color=(232,32,32)
    fs.line_width=2

    self.game.displayText('End of Ball',opaque=True)
    return 2
Example #2
0
    def evt_tilt_ball_ending(self):
        self.game.log("Bonus Mode awakened (TILT)!")

        self.game.sound.play('ball_drain')
        fs = HDFontStyle()
        fs.line_color = (232, 32, 32)
        fs.line_width = 2

        self.game.displayText('End of Ball', opaque=True)
        return 2
 def getBonusFrame(self, bonusName, bonusCount):
   lyrTop = HDTextLayer(self.game.dmd.width/2, self.game.dmd.height*1/3, self.game.fonts['med'], justify="center", vert_justify=None, opaque=False, width=self.game.dmd.width, height=40, line_color=None, line_width=0, interior_color=(255, 255, 255), fill_color=None)
   lyrBottom = HDTextLayer(self.game.dmd.width/2, self.game.dmd.height*2/3, self.game.fonts['med'], justify="center", vert_justify=None, opaque=False, width=self.game.dmd.width, height=40, line_color=None, line_width=0, interior_color=(255, 255, 255), fill_color=None)
   fs = HDFontStyle()
   fs.line_color=(232,32,32)
   fs.line_width=1
   fs.interior_color=(32,32,32)    
   lyrTop.set_text(bonusName,style=fs)
   lyrBottom.set_text(str(bonusCount),style=fs)
   gl = GroupedLayer(self.game.dmd.width, self.game.dmd.height, layers=[lyrBottom, lyrTop])
   gl.opaque=True
   return gl
Example #4
0
 def getBonusFrame(self, bonusName, bonusCount):
     lyrTop = HDTextLayer(self.game.dmd.width / 2,
                          self.game.dmd.height * 1 / 3,
                          self.game.fonts['med'],
                          justify="center",
                          vert_justify=None,
                          opaque=False,
                          width=self.game.dmd.width,
                          height=40,
                          line_color=None,
                          line_width=0,
                          interior_color=(255, 255, 255),
                          fill_color=None)
     lyrBottom = HDTextLayer(self.game.dmd.width / 2,
                             self.game.dmd.height * 2 / 3,
                             self.game.fonts['med'],
                             justify="center",
                             vert_justify=None,
                             opaque=False,
                             width=self.game.dmd.width,
                             height=40,
                             line_color=None,
                             line_width=0,
                             interior_color=(255, 255, 255),
                             fill_color=None)
     fs = HDFontStyle()
     fs.line_color = (232, 32, 32)
     fs.line_width = 1
     fs.interior_color = (32, 32, 32)
     lyrTop.set_text(bonusName, style=fs)
     lyrBottom.set_text(str(bonusCount), style=fs)
     gl = GroupedLayer(self.game.dmd.width,
                       self.game.dmd.height,
                       layers=[lyrBottom, lyrTop])
     gl.opaque = True
     return gl