Exemple #1
0
 def __init__(self, text, choices, title=None):
     GameState.__init__(self)
     self.text = text
     self.state = 0
     self.counter = 0
     self.title = title
     self.choices = choices
Exemple #2
0
 def __init__(self, text, choices, title=None):
     GameState.__init__(self)
     self.text = text
     self.state = 0
     self.counter = 0
     self.title = title
     self.choices = choices
Exemple #3
0
    def activate(self):
        GameState.activate(self)

        # this is hack, for sure, but ensure our music will start
        # playing if we are being transition'd from another state

        if self.dialogs[-1][:6] == "#music":
            text = self.dialogs.pop()
            tag, path = text.split(":")
            #res.playMusic(path, loops=-1)

        self.cleared = False
Exemple #4
0
    def activate(self):
        GameState.activate(self)

        # this is hack, for sure, but ensure our music will start
        # playing if we are being transition'd from another state

        if self.dialogs[-1][:6] == "#music":
            text = self.dialogs.pop()
            tag, path = text.split(":")
            #res.playMusic(path, loops=-1)
        
        self.cleared = False
Exemple #5
0
    def __init__(self, path):
        GameState.__init__(self)

        self.dialogs = []

        with open(path) as fh:
            for line in fh:
                line = line.strip()
                if line != "":
                    self.dialogs.append(line)

        self.dialogs.reverse()

        self.queue_image = None
        self.queue_music = None
        self.queue_dialog = None
Exemple #6
0
    def __init__(self, path):
        GameState.__init__(self)

        self.dialogs = []

        with open(path) as fh:
            for line in fh:
                line = line.strip()
                if line != "":
                    self.dialogs.append(line)

        self.dialogs.reverse()

        self.queue_image = None
        self.queue_music = None
        self.queue_dialog = None
Exemple #7
0
 def reactivate(self):
     GameState.reactivate(self)
     self.cleared = False
Exemple #8
0
 def deactivate(self):
     GameState.deactivate(self)
     res.fadeoutMusic()
Exemple #9
0
 def __init__(self, text, title=None):
     GameState.__init__(self)
     self.font = "dpcomic.ttf"
     self.text = text
     self.title = title
     self.blank = True
Exemple #10
0
 def __init__(self, area, startPosition=None):
     GameState.__init__(self)
     self.area = area
Exemple #11
0
 def reactivate(self):
     GameState.reactivate(self)
     self.cleared = False
Exemple #12
0
 def deactivate(self):
     GameState.deactivate(self)
     res.fadeoutMusic()
Exemple #13
0
 def __init__(self, area, startPosition=None):
     GameState.__init__(self)
     self.area = area
Exemple #14
0
 def __init__(self, text, title=None):
     GameState.__init__(self)
     self.font = "dpcomic.ttf"
     self.text = text
     self.title = title
     self.blank = True