@MichaelFaulkner/

Click for Cash

Python

Clicker game for game jam!

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import replit
import random
random_tips = ["Gnarly dude!", "Keep it up!", "Don't mess up now!", "Press slash and then enter to go to the shop!"]
money = 0
game_over = 0
mpc_up_cost = 50
mpc = 1
dads_mood = [
    "Amused","Blissful","Calm","Cheerful","Content","Dreamy","Ecstatic","Energetic","Excited","Flirty","Giddy","Good","Happy","Joyful","Loving","Mellow","Optimistic","Peaceful","Silly","Sympathetic","Angry","Annoyed","Apathetic","Bad","Cranky","Depressed","Envious","Frustrated","Gloomy","Grumpy","Guilty","Indifferent","Irritated","Melancholy","Pessimistic","Rejected","Restless","Sad","Stressed","Weird"
]
input(
    "Welcome to click for Cash. The game where you click... for cash [Press enter to continue] "
)

input(
    "The clicker button used in this game is the enter button on your keyboard. Try it out now!"
)
while game_over == 0:
    times = 0
    tip = random.choice(random_tips)
    mood = random.choice(dads_mood)
    print("------------------------------------------------------")
    while times < 25:
        print("Money: $" + str(money) + " | " + tip + " | Your dads mood: " +
              mood + " | MPC: $" + str(mpc))
        print("------------------------------------------------------")
        var1 = input("")
        if var1 == "/":
          print("Welcome to the shop! The current available upgrades are:")
          print("1. Money per click (mpc) + 1 | Cost: " + str(mpc_up_cost))
          var2 = input("What would you like to upgrade? (If you do not wish to upgrade, just press enter) ")
          if var2 == "1":
            if money > mpc_up_cost:
              print("**Money - " +  str(mpc_up_cost) + "**")
              money = money - mpc_up_cost
              print("**MPC + 1**")
              mpc = mpc + 1
              print("**Cost for upgrade + 100**")
              mpc_up_cost = mpc_up_cost + 100
              input("[Press enter to exit the shop}")
            elif money <= mpc_up_cost:
              print("You don't have enough money! [Enter to continue]")
          else:
            print("")
        else:
          print("")
        money = money + mpc
        replit.clear()
        times = times + 1