moving some variables into the pet_variables file
This commit is contained in:
parent
60c723522c
commit
a72fe6c275
|
@ -1,7 +1,6 @@
|
||||||
# tamagotchi
|
# tamagotchi
|
||||||
|
|
||||||
## Todo
|
## Todo
|
||||||
* make the aging work parallel the main programme
|
|
||||||
* adding a function to decrease the health
|
* adding a function to decrease the health
|
||||||
|
|
||||||
## Possible things to add
|
## Possible things to add
|
||||||
|
@ -28,6 +27,7 @@ tamagotchi programme which shouldn't be too hard:
|
||||||
* safe the stats in a text file
|
* safe the stats in a text file
|
||||||
* make a seperate function for each age because it makes the aging
|
* make a seperate function for each age because it makes the aging
|
||||||
funciton more readable
|
funciton more readable
|
||||||
|
* add a function which lets the tamagotchi age (one week as a youngling, three weeks as an adult and two weeks as an elderly)
|
||||||
|
|
||||||
## 30.6.2015
|
## 30.6.2015
|
||||||
Time function has to be implemented otherwise the decrease.* functions
|
Time function has to be implemented otherwise the decrease.* functions
|
||||||
|
|
Binary file not shown.
|
@ -3,11 +3,6 @@ import time
|
||||||
from random import randint
|
from random import randint
|
||||||
import os
|
import os
|
||||||
|
|
||||||
# Pictures and symboles used ingame
|
|
||||||
cat = "(=^o.o^=)__"
|
|
||||||
mouse = "<:3 )~~~~"
|
|
||||||
fish = "<`)))><"
|
|
||||||
owl = "(^0M0^)"
|
|
||||||
# variables needed for the guessing game
|
# variables needed for the guessing game
|
||||||
secret = randint(1, 10)
|
secret = randint(1, 10)
|
||||||
|
|
||||||
|
@ -37,13 +32,13 @@ def beginning():
|
||||||
print("1: Cat, 2: Mouse, 3: Fish, 4: Owl")
|
print("1: Cat, 2: Mouse, 3: Fish, 4: Owl")
|
||||||
chosen_pet = int(input("Choose your pet:"))
|
chosen_pet = int(input("Choose your pet:"))
|
||||||
if chosen_pet == 1:
|
if chosen_pet == 1:
|
||||||
pet_variables.pet_photo = cat
|
pet_variables.pet_photo = pet_variables.cat
|
||||||
elif chosen_pet == 2:
|
elif chosen_pet == 2:
|
||||||
pet_variables.pet_photo = mouse
|
pet_variables.pet_photo = pet_variables.mouse
|
||||||
elif chosen_pet == 3:
|
elif chosen_pet == 3:
|
||||||
pet_variables.pet_photo = fish
|
pet_variables.pet_photo = pet_variables.fish
|
||||||
elif chosen_pet == 4:
|
elif chosen_pet == 4:
|
||||||
pet_variables.pet_photo = owl
|
pet_variables.pet_photo = pet_variables.owl
|
||||||
pet_variables.pet_name = input("How do you want to call your pet?")
|
pet_variables.pet_name = input("How do you want to call your pet?")
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in New Issue