def showIntro(self): myintro = Intro() mytextlist = ['Welcome to PyDF', 'd + mouse for digging', 'h + mouse for channeling', 'i + mouse to designate item dump', 'o + mouse selects items for dumping', 'k + arrows to inspect tile content', 's to save or l to load map from disk', 'arrow keys to move the viewport around', 'shift + < or > goes UP and DOWN Z levels', 'shift + arrow keys to move 10 tiles at a time', 'spacebar unpauses the game or pauses', 'Esc quits', '', 'Press any key to continue'] hoffset = self.tw voffset = self.tw * 2 for item in mytextlist: myintro.drawText(item, self.screen, hoffset, voffset) voffset += self.tw * 2 pygame.display.update() myintro.waitForKey() self.intro = False
def showIntro(self): intro = Intro() text_list = [ "Welcome to PyDF", "d + mouse for digging", "h + mouse for channeling", "i + mouse to designate item dump", "o + mouse selects items for dumping", "k + arrows to inspect tile content", "s to save or l to load map from disk", "arrow keys to move the viewport around", "shift + < or > goes UP and DOWN Z levels", "shift + arrow keys to move 10 tiles at a time", "spacebar unpauses the game or pauses", "Esc quits", "", "Press any key to continue", ] hoffset = self.tw voffset = self.tw * 2 for item in text_list: intro.drawText(item, self.screen, hoffset, voffset) voffset += self.tw * 2 pygame.display.update() intro.waitForKey() self.intro = False