1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00
This commit is contained in:
Steffo 2015-09-20 20:28:39 +02:00
parent 08e83d85c4
commit 3e3134624f

View file

@ -85,8 +85,8 @@ def treScelte(puno, pdue, ptre):
'keyboard': [[puno, pdue, ptre]],
'one_time_keyboard': True,
}
print("Cosa vuoi fare?\n1: " + puno + "\n2: " + pdue + "\n3: " + ptre)
sendMessage(chr(10067) + "Cosa vuoi fare?\n1: " + puno + "\n2: " + pdue + "\n3: " + ptre, json.dumps(tastiera))
print("Cosa volete fare?\n1: " + puno + "\n2: " + pdue + "\n3: " + ptre)
sendMessage(chr(10067) + "Cosa volete fare?\n1: " + puno + "\n2: " + pdue + "\n3: " + ptre, json.dumps(tastiera))
#Aspetta una risposta...
waiting = True
while(waiting):
@ -104,6 +104,7 @@ def vita(var):
hp = hp + var
sendMessage(chr(10084) + ' ' + str(var) + "\n" + "Ora avete " + str(hp) + " punti vita.")
if(hp <= 0):
print("Game over...")
sendMessage("Hai finito la vita! Game over!")
sys.exit()