Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Simple Clicker Game! version 0.0.7
- #Code by GameNationRDF Have fun :) ..
- #More achievements to be added in the future updates!
- #GUI is Work In Progress..
- #Download link: https://www.dropbox.com/s/ii87fok3hwcyhb2/Cookie%20Clicker%200.0.7.py
- from tkinter import *
- import time
- master = Tk()
- def uiPrint():
- info()
- print ("")
- print (click)
- blankLine()
- def info():
- print ("Double click purchases need 750 clicks!")
- def blankLine():
- for i in range(20):
- print ("")
- def purchaseDoubleClicksCommand():
- global click
- global mult
- if click < 750:
- print ("Not enough clicks!")
- blankLine()
- elif click >= 750:
- mult = mult*2
- click = click - 750
- print ("Double Clicks Purchased!")
- blankLine()
- def buttonCommand():
- global click
- global mult
- click += 1*(mult)
- uiPrint()
- if click == 100:
- print ('''Achievement Unlocked: Junior Clicker!
- BONUS 100!''')
- click += 100
- elif click == 400:
- print ('''Achievement Unlocked: Little Ninja Clicks!
- BONUS 200!''')
- click += 300
- elif click == 900:
- if cd == 0:
- print ('''Achievement Unlocked: Legit Ninja!
- DOUBLE CLICKS!''')
- mult = mult * 2
- cd = 1
- elif click == 1500:
- if cq == 0:
- print ('''Achievement Unlocked: Click Ninja Master!
- QUAD CLICKS!''')
- mult = mult * 4
- cq = 1
- elif click == 3000:
- if c8 == 0:
- print ('''Achievement Unlocked: Jackie Chan Style!
- 8 TIMES THE CLICKS!''')
- mult = mult * 8
- c8 = 1
- info()
- click = 0
- mult = 1
- cd = 0
- cq = 0
- c8 = 0
- mainClickButton = Button(master, text="Click!", command=buttonCommand)
- mainClickButton.pack()
- purchaseDoubleClickButton = Button(master, text="Purchase Double Clicks", command = purchaseDoubleClicksCommand)
- purchaseDoubleClickButton.pack()
- master.title("Clicker! v0.0.6")
- master.geometry("%sx%s+%s+%s" % (200,70,512,512))
- mainloop()
- #Changelog:
- # -Now you can have click multiplier achievements once in a game.
- # -Download link!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement