Beispiel #1
0
	def deadCondition(self):
		if(Player.getHunger()[0]<=0):
			self.log.add_event("Creo que no me siento bien... *cae*",250)
			#self.log.add_event("Presiona enter para continuar")
			self.info.gameOver()
			return True
		return False
Beispiel #2
0
	def resetHungerFlags(self):
		percentage = Player.getHunger()[0]
		if percentage>=6 and self.hunger_flag_0:
			self.hunger_flag_0 = False
		if percentage>=26 and self.hunger_flag_2:
			self.hunger_flag_2 = False
		if percentage>=50 and self.hunger_flag_3:
			self.hunger_flag_3 = False
Beispiel #3
0
	def showHungerMessages(self):
		percentage = Player.getHunger()[0]
		if percentage <= 0 and not self.hunger_flag_1:
			self.hunger_flag_1 = True
			#time.sleep(3)
		if percentage ==5 and not self.hunger_flag_0:
			self.hunger_flag_0 = True
			self.log.add_event("No se cuanto mas me pueda mover... necesito comer algo", 197)

		elif percentage == 25 and not self.hunger_flag_2:
			self.hunger_flag_2 = True
			self.log.add_event("Me esta empezando a doler el estomago", 167)

		elif percentage == 49 and not self.hunger_flag_3:
			self.hunger_flag_3 = True
			self.log.add_event("Tengo un poco de hambre, deberia comer algo", 167)