示例#1
0
    def __init__(self):
        SceneBase.__init__(self)

        self.economybutton = Button("+5 MoonCrystals Economy", (300, 200),
                                    self.Economy,
                                    size=(240, 60),
                                    font_size=20,
                                    bg=(109, 177, 255))
        self.defensebutton = Button("+500 Mothership HP", (300, 300),
                                    self.Defense,
                                    size=(240, 60),
                                    font_size=20,
                                    bg=(109, 177, 255))

        self.continuebutton = Button("Make the Game Great Again", (900, 500),
                                     self.Continue,
                                     size=(240, 60),
                                     font_size=20,
                                     bg=(109, 177, 255))
        self.damagebutton = Button("Unit Damage +10", (300, 400),
                                   self.Damage,
                                   size=(240, 60),
                                   font_size=20,
                                   bg=(109, 177, 255))

        self.healthbutton = Button("Unit Health +20", (300, 500),
                                   self.Health,
                                   size=(240, 60),
                                   font_size=20,
                                   bg=(109, 177, 255))

        b = Boombox()

        if not b.MusicStatus():
            b.PlayMusic("menumusic")
示例#2
0
    def __init__(self):
        SceneBase.__init__(self)
        self.text = Text(228,
                         600,
                         "Level Select",
                         bold=True,
                         color=(109, 177, 255),
                         fontSize=45)
        self.marsbutton = Button("2. Mars", (690, 325),
                                 self.Mars,
                                 size=(120, 60),
                                 font_size=20,
                                 bg=(109, 177, 255))
        self.moonbutton = Button("1. Moon", (510, 325),
                                 self.Moon,
                                 size=(120, 60),
                                 font_size=20,
                                 bg=(109, 177, 255))
        self.saturnbutton = Button("3. Saturn", (510, 425),
                                   self.Saturn,
                                   size=(120, 60),
                                   font_size=20,
                                   bg=(109, 177, 255))
        self.mercurybutton = Button("4. Mercury", (690, 425),
                                    self.Mercury,
                                    size=(120, 60),
                                    font_size=20,
                                    bg=(109, 177, 255))

        self.uranusbutton = Button("5. Uranus", (510, 525),
                                   self.Uranus,
                                   size=(120, 60),
                                   font_size=20,
                                   bg=(109, 177, 255))
        self.neptunebutton = Button("6. Neptune", (690, 525),
                                    self.Neptune,
                                    size=(120, 60),
                                    font_size=20,
                                    bg=(109, 177, 255))

        self.continuebutton = Button("Back", (50, 625),
                                     self.Continue,
                                     size=(60, 30),
                                     bg=(109, 177, 255))
        # Start music
        b = Boombox()

        if not b.MusicStatus():
            b.PlayMusic("menumusic")
示例#3
0
    def __init__(self):
        SceneBase.__init__(self)
        self.continuebutton = Button("Continue", (900, 525),
                                     self.Continue,
                                     size=(120, 60),
                                     font_size=20,
                                     bg=(109, 177, 255))
        self.backbutton = Button("Back", (900, 605),
                                 self.GoBack,
                                 size=(120, 60),
                                 font_size=20,
                                 bg=(109, 177, 255))

        b = Boombox()
        if not b.MusicStatus():
            b.PlayMusic("loremusic")