KodingKid

Text-Based Life-Tycoon Game in Python - Version 2

Aug 11th, 2021 (edited)
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 4.10 KB | None | 0 0
  1. import time
  2. money = 0
  3. cars = 0
  4. mileage = 0
  5. day = 0
  6. job_pay
  7. money = False
  8. miles = False
  9. car = False
  10. job = False
  11. print("Hello, this is car simulator, the game where you work, get money, get cars, or even make cars, and drive")
  12. print("Here's your first job")
  13. print("Do you want to be a janitor, dog-walker, or programmer (or freelance)")
  14. print("Janitor = 5 hours work for £100")
  15. print("Dog-walker = 7 hours work £140")
  16. print("Programmer = 3 hours work for £75")
  17. day_night = 24
  18. job1 = input()
  19. if job1 == "Janitor" or "janitor":
  20.     job = True
  21.     money = True
  22.     while job == True:
  23.         time.sleep(1200)
  24.         print("You are now going to work")
  25.         day_night - 5
  26.         money + 100
  27. if job1 == "Dog-Walker" or "Dog-walker" or "dog-walker" or "dog-Walker":
  28.     job = True
  29.     money = True
  30.     while job == True:
  31.         time.sleep(1500)
  32.         print("You are now going to work")
  33.         day_night - 7
  34.         money + 140
  35. if job1 == "Programmer" or "programmer":
  36.     job = True
  37.     money = True
  38.     while job == True:
  39.         time.sleep(900)
  40.         print("You are now going to work")
  41.         day_night - 3
  42.         money + 75
  43. if job1 == "Free-Lance" or "Freelance" or "freelance" or "free-lance" or "Free-lance":
  44.     job = True
  45.     money = True
  46.     while job == True:
  47.         random_work1 = random.randint(600,1800)
  48.         time.sleep(random_work1)
  49.         print("You are now going to work")
  50.         random_work2 = random.randint(1,9)
  51.         day_night - random_work2
  52.         random_work3 = random.randint(50,200)
  53.         money + random_work3
  54. else:
  55.     print("Try again")
  56. if day_night == 0:
  57.     day + 1
  58. if day_night == 10:
  59.     money + 10
  60.     print("10-Day Bonus")
  61. if day_night == 100:
  62.     money + 100
  63.     print("100-Day Bonus")
  64. if day_night == 365:
  65.     money + 1000
  66.     print("1-Year Bonus")
  67. print("Great, you have a job now! Now you need your first car.")
  68. print("Do you want a Suzuki RM-Z450 (just enter the second part please), a Yamaha 660 Rhino, or a Toyota Corolla")
  69. top_speed = 0
  70. car1 = input()
  71. if car1 == "RM-Z450" or "rm-z450":
  72.     car = True
  73.     miles = True
  74.     while car == True:
  75.         time.sleep(150)
  76.         top_speed = 100
  77.         mileage + top_speed
  78.         money - 2
  79. if car1 == "660 Rhino" or "660 rhino":
  80.     car = True
  81.     miles = True
  82.     while car == True:
  83.         time.sleep(150)
  84.         top_speed = 60
  85.         mileage + top_speed
  86.         money - 4
  87. if car1 == "Toyota Corolla" or "Toyota corolla" or "toyota corolla" or "corolla" or "Corolla":
  88.     car = True
  89.     miles = True
  90.     while car == True:
  91.         time.sleep(150)
  92.         top_speed = 120
  93.         mileage + top_speed
  94.         money - 7
  95. while (True):
  96.     time.sleep(3600)
  97.     day + 1
  98. time.sleep(1500)
  99. print("Wow, you're doing well for yourself!")
  100. print("Would you like another job?")
  101. changejob1 = input()
  102. if changejob1 == "Yes" or "yes":
  103.     print("Would you like to be a vlogger, car-maker, racing-driver, or shop-assistant")
  104.     changejob2 = input()
  105.     if changejob2 == "Vlogger" or "vlogger":
  106.         random_work1 = random.randint(1200, 2700)
  107.         time.sleep(random_work1)
  108.         print("You are now going to work")
  109.         random_work2 = random.randint(1, 10)
  110.         day_night - random_work2
  111.         random_work3 = random.randint(5, 2000)
  112.         money + random_work3
  113.     if changejob2 == "car-maker" or "Car-maker" or "Car-Maker":
  114.         time.sleep(1500)
  115.         print("You are now going to work")
  116.         day_night - 3
  117.         money + 150
  118.     if changejob2 == "racing-driver" or "Racing-driver" or "Racing-Driver":
  119.         random_work1 = random.randint(2000, 3000)
  120.         time.sleep(random_work1)
  121.         print("You are now going to work")
  122.         random_work2 = random.randint(2, 5)
  123.         day_night - random_work2
  124.         random_work3 = random.randint(0, 10000)
  125.         money + random_work3
  126.     if changejob2 == "shop-assistant" or "Shop-assistant" or "Shop-Assistant":
  127.         time.sleep(500)
  128.         print("You are now going to work")
  129.         day_night - 1
  130.         money + 50
  131.     else:
  132.         print("Sorry, I didn't get that...")
  133. else:
  134.     print("ok cool")
Add Comment
Please, Sign In to add comment