Python Game Programming: Simple Cookie Clicker - androidgamestore.net

Python Game Programming: Simple Cookie Clicker

TokyoEdtech
Views: 12358
Like: 279
In this video I show you how to make a simple Cookie Clicker clone in just 22 lines of code!

Download the Code and Image Here:

NEED HELP?
🆘 Watch this first and then let me know in the comments below:

❤️❤️ SHOW SOME LOVE AND SUPPORT THE CHANNEL ❤️❤️

Click Join and Become a Channel Member Today!
Channel members can get preferential comment replies, early access to new content, members only live streams, and access to my private Discord.
❤️

Amazon Affiliate Links
💻 My Laptop (Asus Zenbook 13):
🎙My New Microphone (Blue Yeti Pro):
🎙My Old Microphone (Blue Snowball):
🎶My USB Interface (Focusrite Scarlett Solo):

Other Affiliate Links
⭐ Kite is a free AI-powered coding assistant that will help you code faster and smarter. The Kite plugin integrates with all the top editors and IDEs to give you smart completions and documentation while you’re typing.

LINKS
🗄️ GITHUB:
💬 Follow me on Twitter:
📜 Subscribe to my Newsletter:
📝 Check out my Blog:
⬇️ Download Geany Editor:

LEARN MORE PYTHON
➡️Space Invaders:
➡️Snake Game:
➡️Pong:
➡️Space War:
➡️Intro to Python (for Java Coders):
➡️Space Arena – The Ultimate Python Turtle Graphics Game Tutorial:

LEARN MORE JAVA
➡️Basic Java for Beginners:

➡️Intro to AP Computer Science A:

#Python #Game #Tutorial

130 Comments

  1. You are so much better than the other tutors around, some I can't even listen to… I hope you make lots more content for beginners like me.

  2. you can by upgrades so you can get more cookies a click, and you can get an auto clicker where it gives you cookies automatically. It costs cookies to buy these upgrades btw

  3. Type less…
    Do more…

    Productivity = Python
    ✅✅✅✅✅✅✅✅

  4. 9th comment, I'm a ultra legend…….😅😅😅

  5. How does a person make an auto clicker app on python.

  6. ive litteraly tried everything but it keeps saying,

    Traceback (most recent call last):
    File "/Users/elliottsherbourne/Documents/Python Practise.py/cookie clicker.py", line 7, in <module>
    wn.register_shape("Cookie.gif")
    File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/turtle.py", line 1134, in register_shape
    shape = Shape("image", self._image(name))
    File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/turtle.py", line 480, in _image
    return TK.PhotoImage(file=filename)
    File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/tkinter/_init__.py", line 4062, in __init_
    Image.__init__(self, 'photo', name, cnf, master, **kw)
    File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/tkinter/_init__.py", line 4007, in __init_
    self.tk.call(('image', 'create', imgtype, name,) + options)
    _tkinter.TclError: couldn't open "Cookie.gif": no such file or directory

    why is this, I'm on mac by the way.

  7. Hey I'm wondering something, is making programs like this for personal use legal? Sorry I'm new

  8. Nice video! 😀
    I was wondering if you have any videos or could do one on making a sprite in python or the basics of a customizing game?

  9. This question is a little off-topic, but how much Japanese do you know?
    You've said that you live in Tokyo, and I find that you often use terms like "yosh/yoshi".

  10. This is very good code. You would be great at making gameboy games. Because they have almost no memory & you need to make a lot of shortcuts! They run a z80 microprocessor (its very similar) there is almost no practical use for learning z80… But you can still have loads of fun!

  11. Does it work with Visual studio code because I am getting a lot of error

  12. this is actually kinda works but the problem is that i use idle python 3.5.1 and when i do the f"Clicks: {clicks}" it showes me an error and if i delete the f neither way the text won't appear

  13. bro you didnt even help us idkev what to do cuz i have windows

  14. I've never seen the 'turtle' module before, I started learning pygame a few weeks ago and I am currently working on trying to make my own clicker game, called 'Caps clicker' where you have to click a button to get bottle caps. You can get a bottle cap boy to go and collect bottle caps for you. 😀

  15. Could you help me? If we could use discord or something and you could help me I can show you what it does.

  16. bro im on windows and im trying to ad the gif pic its in the same folder as the py file and everythinbg but its not working

  17. Thanks I had to make a game for school but i added more stuff like grandma's and cursors thanks to you!

  18. Why do you tend to use turtle rather than pygame?

  19. It dont show me the clicks…

    Is it because of version of python?

    Mine is 3.9.0

  20. Finally… A worthy YouTube tutorial…

    Your day is gonna be lucky if you saw this 😉

  21. The clicks text not showing pls help, thanks

  22. Help Me
    Error Message:
    Traceback (most recent call last):
    File "C:/Users/izyaan/AppData/Local/Programs/Python/Python39/ipuoyi8tuy.py", line 7, in <module>
    wn.register_shape("cookie.gif")
    File "C:UsersizyaanAppDataLocalProgramsPythonPython39libturtle.py", line 1134, in register_shape
    shape = Shape("image", self._image(name))
    File "C:UsersizyaanAppDataLocalProgramsPythonPython39libturtle.py", line 480, in _image
    return TK.PhotoImage(file=filename)
    File "C:UsersizyaanAppDataLocalProgramsPythonPython39libtkinter_init__.py", line 4062, in __init_
    Image.__init__(self, 'photo', name, cnf, master, **kw)
    File "C:UsersizyaanAppDataLocalProgramsPythonPython39libtkinter_init__.py", line 4007, in __init_
    self.tk.call(('image', 'create', imgtype, name,) + options)
    _tkinter.TclError: couldn't open "cookie.gif": no such file or directory

    Paste Bin Link: https://pastebin.pl/view/9cac2bb4
    Pls Reply Fast

  23. Help please when i typed
    “wn.register_shape(“Click.gif”)

    Click = turtle.Turtle()
    Click.shape(“Click.gif”)
    Click.speed(0)”
    It said “couldn’t open “Click.gif”: no such file or directory”

  24. For some reason it doesn't work for me. Getting error message from somewhere.
    Here's the code:

    # Cookie Clicker
    # Simple Cookie Clicker Clone
    # Python 3:x Compatible
    # Windows, MacOS, and Linux Compatible
    # by @TokyoEdTech
    import turtle

    wn = turtle.Screen()
    wn.title("Cookie Clicker by @TokyoEdTech")
    wn.bgcolor("black")

    wn.register_shape("cookie.gif")

    cookie = turtle.Turtle()
    cookie.shape("cookie.gif")
    cookie.speed(0)

    clicks = 0

    pen = turtle.Turtle()
    pen.hideturtle()
    pen.color("white")
    pen.penup()
    pen.goto(0, 400)
    pen.write(f"Clicks: {clicks}", align="center", font=("Courier New", 32, "normal"))

    def clicked(x, y):
    global clicks
    clicks += 1
    pen.clear()
    pen.write(f"Clicks: {clicks}", align="center", font=("Courier New", 32, "normal"))
    cookie.onnclick(clicked)

    wn.mainloop()

  25. what is the point of a cookie clicker again?

  26. "couldn't open "cookie.gif": no such file or directory" that happened when I launched the script, even if my file is on my desktop. here is my script, but i dont think the problem is here :
    import turtle

    wn = turtle.Screen()

    wn.title("Cookie Clicker")

    wn.bgcolor("black")

    wn.register_shape("cookie.gif")

    cookie = turtle.Turtle()

    cookie.shape("cookie.gif")

    cookie.speed(0)

    wn.mainloop()

    thanks for helping me in advance.

  27. I went to github but saw no "Download ZIP" Button

  28. Hello, I did everything and almost everything works, but I don't see the clicks?

Leave a Reply

Your email address will not be published.