Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- from tkinter import *
- import threading
- import time as t
- master = Tk()
- global click ## GLOBAL VARS
- global elso ## ELSO - MASODIK - HARMADIK - NEGYEDIK FOR THE ACHIVEMENT
- elso = True
- global masodik
- masodik = True
- global harmadik
- harmadik = True
- global negyedik
- negyedik= True
- def uiPrint(): ## dont need these anymore
- info()
- print("")
- print(click)
- blankLine()
- def info(): ##useless
- print("Double click purchases need 50 clicks!")
- print("Auto clicker purchases need 75 clicks!")
- info()
- click = 0
- mult = 1
- dcp1 = 0
- def blankLine():
- for i in range(5): ##useless
- print("")
- def purchaseDoubleClicksCommand():
- global click
- global mult
- if click < 5:
- print("Not enough clicks!")
- blankLine()
- elif click >= 5:
- mult = mult*2
- click = click - 5
- print("Double Clicks Purchased!")
- blankLine()
- def purchaseAutoClickerCommand():
- global click
- if click < 7:
- print("Not enough clicks!")
- blankLine()
- elif click >= 7:
- click = click - 7
- print("Auto clicker purchased!")
- threading.Thread(target=clickek, daemon=True).start()
- def clickek():
- global click
- while True:
- t.sleep(1)
- click+= 1
- uiPrint()
- PointLabel["text"] = f"Points: {click}"
- def buttonCommand():
- global elso
- global masodik
- global harmadik
- global negyedik
- global click
- global mult
- click += 1*(mult)
- uiPrint()
- PointLabel["text"] = f"Points: {click}"
- if click >= 5 and elso == True:
- achivement = Tk()
- achivementLabel = Label(achivement,text="Achievement Unlocked: Junior Clicker! BONUS 100 clicks!")
- achivementLabel.pack()
- #print('''Achievement Unlocked: Junior Clicker!
- #BONUS 100 clicks!''')
- click += 100
- elso = False
- elif click >= 400 and masodik == True:
- achivement = Tk()
- achivementLabel = Label(achivement,text="Achievement Unlocked: Little Ninja Clicks! BONUS 200!")
- achivementLabel.pack()
- click += 300
- masodik = False
- elif click >= 1500 and harmadik == True:
- achivement = Tk()
- achivementLabel = Label(achivement,text="Achievement Unlocked: Click Ninja Master! QUAD CLICKS!")
- achivementLabel.pack()
- mult = mult * 4
- harmadik = False
- elif click >= 3000 and negyedik == True:
- achivement = Tk()
- achivementLabel = Label(achivement,text="Achievement Unlocked: Jackie Chan Style! 8 TIMES THE CLICKS!")
- achivementLabel.pack()
- mult = mult * 8
- negyedik = False
- def kilep():
- sys.exit()
- PointLabel = Label(master, text=f"points: {click}")
- PointLabel.pack(pady=5)
- mainClickButton = Button(master, text="Click!", command = buttonCommand)
- mainClickButton.pack(pady=20)
- purchaseDoubleClickButton = Button(master, text="Purchase Double Clicks", command = purchaseDoubleClicksCommand)
- purchaseDoubleClickButton.pack(pady=20)
- purchaseAutoClickerButton = Button(master, text="Purchase Auto Clicker", command = purchaseAutoClickerCommand)
- purchaseAutoClickerButton.pack(pady=20)
- Quit_App_Button = Button(master, text="Quit", command=kilep)
- Quit_App_Button.pack(pady=20)
- master.title("0.0.0.1")
- #master.geometry("%sx%s+%s+%s" % (200,70,512,512))
- master.geometry('300x560')
- mainloop()
Advertisement
Add Comment
Please, Sign In to add comment