view gamelib/menu.py @ 793:0e5b80b3128c pyntnclick

Putting the new MenuScreen in the repo might be a good idea. I should totally do that.
author Jeremy Thurgood <firxen@gmail.com>
date Sun, 27 Jan 2013 12:47:54 +0200
parents bdaffaa8b6bf
children 642564a3bedf
line wrap: on
line source

# menu.py
# Copyright Boomslang team, 2010 (see COPYING File)
# Main menu for the game

from pyntnclick.menuscreen import MenuScreen


class SSMenuScreen(MenuScreen):
    BACKGROUND_IMAGE = 'splash/splash.png'

    def make_new_game_button(self):
        return self.make_image_button((16, 523), 'splash/play.png')

    def make_resume_game_button(self):
        return self.make_image_button((256, 523), 'splash/resume.png')

    def make_quit_button(self):
        return self.make_image_button((580, 523), 'splash/quit.png')