Advertisement
GameNationRDF

Cookie Clicker Clone with Python version 0.0.2

Sep 15th, 2013
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.93 KB | None | 0 0
  1. #Simple Clicker Game! version 0.0.2
  2. #Code by GameNationRDF Have fun :) ..
  3. #More achievements to be added in the future updates!
  4.  
  5. from tkinter import *
  6. import time
  7.  
  8. master = Tk()
  9.  
  10. click=0
  11.  
  12. def buttonCommand():
  13.     global click
  14.     click += 1
  15.     print (click)
  16.     for i in range(23):
  17.         print ("")
  18.    
  19.     #Acihevements and Bonus clicks
  20.    
  21.     if click == 100:
  22.         print ('''Achievement Unlocked: Junior Clicker!
  23. BONUS 100!''')
  24.         click += 100
  25.        
  26.     elif click == 500:
  27.         print ('''Achievement Unlocked: Little Ninja Clicks!
  28. BONUS 200!''')
  29.         click += 200
  30.  
  31.     elif click == 750:
  32.         print ('''Achievement Unlocked: Legit Ninja!
  33. BONUS 400!''')
  34.         click += 400
  35.  
  36.  
  37. button = Button(master, text="Click!", command=buttonCommand)
  38. button.pack()
  39. master.title("Clicker!")
  40. master.geometry("%sx%s+%s+%s" % (256,32,512,512))
  41. mainloop()
  42.  
  43. #Changelog:
  44.  
  45.         # -New achievement added.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement