Esempio n. 1
0
    def __init__(self, main):
        self.main = main
        self.data = base.DATA
        self.data['level'] = base.getSaveGameVar(self.data, 'level', 1)
        base.gameDifficulty = base.getSaveGameVar(
            self.data, 'difficulty', base.saveGameKeys['difficulty'])
        base.num_bibles = base.getSaveGameVar(self.data, 'bibles', 0)
        self.data['chapter'] = base.getSaveGameVar(self.data, 'chapter', 1)
        base.numBananas = base.getSaveGameVar(self.data, 'bananas', 0)
        base.NEED_MORE_BIBLES = self.data['need_more_bibles']

        self.orig_num_bibles = base.num_bibles
        self.orig_num_bananas = base.numBananas

        if base.gameDifficulty == 1:
            base.NEEDED_BIBLES = 65
        if base.gameDifficulty == 2:
            base.NEEDED_BIBLES = 85
        elif base.gameDifficulty == 3:
            base.NEEDED_BIBLES = 115

        if not 'fallLesson' in self.main.gameVariables:
            print "loading the fallLesson variable"
            self.main.gameVariables['fallLesson'] = base.getSaveGameVar(
                self.data, 'fallLesson', False)
            self.main.gameVariables['firstbanana'] = base.getSaveGameVar(
                self.data, 'firstbanana', False)

        self.playing = None
Esempio n. 2
0
	def __init__(self, main):
		self.main = main
		self.data = base.DATA
		self.data['level'] = base.getSaveGameVar(self.data,'level',1)
		base.gameDifficulty = base.getSaveGameVar(self.data,'difficulty',base.saveGameKeys['difficulty'])
		base.num_bibles = base.getSaveGameVar(self.data,'bibles',0)
		self.data['chapter'] = base.getSaveGameVar(self.data,'chapter',1)
		base.numBananas = base.getSaveGameVar(self.data,'bananas',0)
		base.NEED_MORE_BIBLES = self.data['need_more_bibles']
		
		self.orig_num_bibles = base.num_bibles
		self.orig_num_bananas = base.numBananas
		
		if base.gameDifficulty == 1:
			base.NEEDED_BIBLES = 65
		if base.gameDifficulty == 2:
			base.NEEDED_BIBLES = 85
		elif base.gameDifficulty == 3:
			base.NEEDED_BIBLES = 115
		
		if not 'fallLesson' in self.main.gameVariables:
			print "loading the fallLesson variable"
			self.main.gameVariables['fallLesson'] = base.getSaveGameVar(self.data,'fallLesson',False)
			self.main.gameVariables['firstbanana'] = base.getSaveGameVar(self.data,'firstbanana',False)
			
		self.playing = None