Python Turtle Tutorial - Code Your First Game!

Поділитися
Вставка
  • Опубліковано 10 вер 2024
  • Create a basic game with the python package 'turtle' with me!
    🔔NEW videos, tutorials and projects EVERY week so subscribe and hit the bell button so you don't miss an update!
    🖥Code:
    github.com/cod...
    ▶️Text Your Friend the Entire Script of Shrek - SPAM Bot - Tutorial:
    • How to make a Spam Bot...
    ▶️TikTok Liker Bot - Tutorial:
    • How to make a TikTok b...
    ▶️Watch my full Python tutorial course here:
    • Python Tutorial for Be...
    ▶️Watch my full NumPy tutorial course here:
    • Python NumPy Tutorial ...
    🔗 Social Media Links 🔗
    ▶️UA-cam: / @codeofthefuture
    📸 Instagram: / codeofthefuture
    📱TikTok: / codeofthefuture
    📘Facebook: / codeofthefuture
    🦜Twitter: / code_ot_future
    📝LinkedIn: / code-of-the-future
    🌎Website - Features Articles: www.codeofthefuture.com/articles
    📂GitHub: github.com/cod...
    💸 Donations 💸
    ⬇️Any donations are gratefully received & all donations go straight back into this channel!⬇️
    ko-fi.com/code...
    ⭐️ Hashtags ⭐️
    #CodeOfTheFuture #WomenWhoCode #Python #Coding #Programming #Tutorials
    Subscribers - 5361

КОМЕНТАРІ • 110

  • @kamjiyoon
    @kamjiyoon 2 роки тому +12

    Whenever I don't understand something while studying, I come to your channel and you just explain so easily that I understand perfectly! Thank you so much Ellie! And honestly these turtles are so cute :D

  • @anupamkasturia3821
    @anupamkasturia3821 3 роки тому +2

    Both my English and Programming skills are improving. A better way to improve English rather than watching movies. Thanks a lot, keep uploading.

    • @CodeoftheFuture
      @CodeoftheFuture  3 роки тому +1

      That's so amazing to hear! Thank you so much!

  • @angelalovely1416
    @angelalovely1416 2 роки тому +2

    My 7 year old daughter is very interested to try this...Thanks a lot...clear explanation

  • @nezaglonar
    @nezaglonar 2 роки тому +1

    I watched 4 tutorials on this and it still didnt work than I came here and bam! Everything works great! Subscribed! 🙏

  • @JonathonIsTheMan
    @JonathonIsTheMan 3 роки тому +5

    I love this. I was searching for an easy to understand turtle tutorial and here it is. Thank you.

  • @MookieHeresy
    @MookieHeresy 3 роки тому +3

    HAHAHa I love her reaction watching which turtle would win the race. 27:42 , also loved the tutorial !

  • @user-yf5li2kc4c
    @user-yf5li2kc4c 2 роки тому

    Okay so guys instead of switching the turtle's colour you can write player_one.pencolor("black") this is what I did and it worked fine for me

  • @deepanshudixit5648
    @deepanshudixit5648 3 роки тому +4

    Please make the tutorial on the game that you made. And also you make it really easy to understand

  • @aishanisuri8599
    @aishanisuri8599 3 роки тому +3

    Thank you so much! This was awesome! I would love more turtle tutorials from you!

  • @ArtisticaAnju
    @ArtisticaAnju 3 роки тому +2

    I was waiting for your Video only 🤩✨. Love Love Ellie ❤🙋‍♀

  • @AnnikaWithAk
    @AnnikaWithAk 2 роки тому +1

    I am a coding beginner (career change) and I am always happy for simple tutorials which are explained well. Your video is definitely one of those. I understood everything you said well and hopefully I will be able to built my own small game without any videos soon. How do you know which libraries can be imported? Like where can I see which library can be included like the time thing here or the turtle itself?

    • @CodeoftheFuture
      @CodeoftheFuture  2 роки тому +1

      Thank you so much! If you’re on Pycharm, you go to Preferences (for a Mac) and click on project interpreter. There’s a little ‘+’ icon and if you click on it it’ll give you the libraries that can be imported into your project ☺️

  • @Rohit_hacker
    @Rohit_hacker 2 роки тому +1

    You are best teacher ❤️❤️👍👍

  • @niranjana7786
    @niranjana7786 Рік тому

    Pla make a tutorial on design automation of any 3D model (Bolt, nut, culinder, wheel).....
    You and your videos are amazing by the way!!!

  • @williambailey3480
    @williambailey3480 4 місяці тому

    Rather sweet for relatively little code 👍🏽

  • @alexdemeter1558
    @alexdemeter1558 2 місяці тому

    Yk I think a pit of a better improvement would be to also make it random to which player gose first so then not even the developer would know which gose first and this also adds the possibility that one player dose not move at all :)

  • @sphinxz_gaming
    @sphinxz_gaming 2 роки тому

    Thanks! Glad it helped! I am just a Python Refresher! I know a lot of basics!

  • @bunthulhu4379
    @bunthulhu4379 6 місяців тому

    Love your video! Super helpful and tons of fun. Thank you!

  • @kelvinkleden4817
    @kelvinkleden4817 3 роки тому +1

    thank you for teaching turtle in python

  • @jamesmoon5632
    @jamesmoon5632 2 роки тому +1

    Im having an error saying partial initialised module (circular import) its all typed in correct like yours. Help please!!! (Found it i saved the file under turtle)

  • @symnshah
    @symnshah 6 місяців тому

    We like your videos. Make a video on a more complex turtle program.

  • @techdude2006
    @techdude2006 3 роки тому +1

    Thank you ,This was amazing Tutorial!!!

  • @liamor9971
    @liamor9971 Рік тому

    Great video! I made mine into a rainbow race with six turtles! Also with a fun exit screen countdown.

  • @shortError404
    @shortError404 2 роки тому

    Excellent tutorial!!!
    loved it:)
    Thank you so much!

  • @andressosa7624
    @andressosa7624 2 роки тому

    Many thanks, is so easy to follow what u made. Thank u girl

  • @tylerclacey
    @tylerclacey 3 роки тому +3

    Thank you for that tutorial I found it really easy to follow! How would you make a game for iOS on Python?

  • @gigachad9336
    @gigachad9336 3 роки тому

    ok soo i done it thank you :D but i thought we have to like "click" any button to roll the dice then i realise that this is turtle lol .

  • @dimplemalik3385
    @dimplemalik3385 2 роки тому

    Thank you so much u just explain so well. Thanks

  • @_y4020
    @_y4020 Місяць тому

    Amazing guide!!!

  • @nirmalasharma2072
    @nirmalasharma2072 2 роки тому

    i am an indian and i can even understand these concepts thank you soo muchhh

  • @TuyaTheNasty
    @TuyaTheNasty 2 роки тому

    Very well explained, thank you. ✌️

  • @zbmadon
    @zbmadon 3 роки тому

    Hi Ellie, is it possible to make multiple turtle drawings simultaneously without waiting on each one to finish synchronously? Let's say I have 2 turtles and two functions making 2 different shapes.
    def tim1_job():
    for _ in range(50):
    for i in range(4):
    tim1.forward(100)
    tim1.right(90)
    tim1.right(20)
    def tim2_job():
    for _ in range(50):
    for i in range(4):
    tim2.forward(100)
    tim2.left(90)
    tim2.left(20)
    Any idea how to run them async? How do I make 10 complicated shapes on my canvas without having to wait on each turtle?

  • @dastandark7194
    @dastandark7194 2 роки тому

    Impressive 😀
    That was useful
    Tnx for explaining

  • @MrGZM90
    @MrGZM90 2 роки тому

    can python/turtle be a good start for ppl who are interesting in learning game development?

  • @RandomJeevanYT
    @RandomJeevanYT 2 роки тому

    Wonderful tutorial🤗 helped me a lot.
    I wanted to ask what ide your using ? I think its pycharm. Am i right?

  • @MrLoop-wz2sb
    @MrLoop-wz2sb 2 роки тому

    well explained! awesome. thank you.

  • @IronMan-hc6bh
    @IronMan-hc6bh 3 роки тому

    Can I create this in 3.4.3 python version
    And one more in 3.4.3 python in windows if I type a line and enter the next line I cud not edit the previous line pls help me

  • @anupamkasturia3821
    @anupamkasturia3821 3 роки тому +1

    Great video, but why didn't you create a separate variable for finish line why giving problems to our first turtle before his race. xd, keep uploading

    • @CodeoftheFuture
      @CodeoftheFuture  3 роки тому

      😂 giving him all the hard work!

    • @anupamkasturia3821
      @anupamkasturia3821 3 роки тому

      @@CodeoftheFuture Still he manages to win the race most of the time 😅

    • @pradeepkrishnan2004
      @pradeepkrishnan2004 3 роки тому

      use turtle.Tracer(0) before drawing the finish line and after drawing the finish line, add turtle.tracer(1)

    • @pradeepkrishnan2004
      @pradeepkrishnan2004 3 роки тому

      you will see that the finish line just pops up

  • @kingproductions2331
    @kingproductions2331 3 роки тому +1

    Awesome video, thank you. I would love for you to make beginner python tutorials

    • @CodeoftheFuture
      @CodeoftheFuture  3 роки тому +1

      I do! You can find them on my channel☺️

    • @kingproductions2331
      @kingproductions2331 3 роки тому

      @@CodeoftheFuture oh awesome, should have had a look before haha

    • @CodeoftheFuture
      @CodeoftheFuture  3 роки тому +1

      @@kingproductions2331 most people don’t realise! I need to start mentioning it in my videos 😂

  • @robertadams5092
    @robertadams5092 2 роки тому +1

    cool game was fun

  • @hmdude
    @hmdude 2 роки тому +1

    my player doesnt show

  • @andreamattei5991
    @andreamattei5991 2 роки тому

    Nice and cool. Kisses from Italy

  • @lnissim
    @lnissim 3 роки тому

    Very nice video! Thank you!

  • @noon1054
    @noon1054 2 роки тому

    Just tried this! Out of curiosity, how would you make the turtle race repeat itself? I'm trying to make it repeat and put a scoreboard to keep track of how many wins each turtle has.
    Great tutorial!!!

  • @stylosuf1394
    @stylosuf1394 Рік тому

    Please upload
    "What is pygame with ultimate course

  • @benedictlim3344
    @benedictlim3344 Рік тому

    Nice tutorial video

  • @eamonmolloy8308
    @eamonmolloy8308 Рік тому

    Great fun and very informative

  • @mythchallenger3848
    @mythchallenger3848 3 роки тому

    Hey maam please make a playlist on website devloping course. Appreciate your work😊😊😊

  • @rockrock5711
    @rockrock5711 2 роки тому

    15:15, the finish appears at right, how to make it at left ?

  • @eloisacute111
    @eloisacute111 2 роки тому

    can i replace that time(2) to press enter to move the turtle

  • @tecnociclista5342
    @tecnociclista5342 2 роки тому

    Hey! Thanks for the great video! Did you ever make the one about Space Invaders in Python/Turtle? I was trying that for myself and miserably failed getting the laser to work...so would be interested to see how you have done it! :)

    • @cursedpellets44
      @cursedpellets44 2 роки тому

      I just did this game the other day. One of the ways you can do this is create an empty list. Using your laser fire function do something like myList.append(Turtle()) and you will dynamically create an instance of turtle, or the turtle class if you have made one. Then make a move laser function. Using something like for laser in myList: and then for each iteration of your list you can change the attributes of each instance of turtle in the current iteration by using laser.goto(laser.xcor(), laser.ycor()+steps) and then check for collision with the invaders in the same iteration I like to use something like if laser.xcor() in range(invader.xcor()- radius) and laser.ycor() in range(invader.ycor()-radius, invader.ycor()+radius) where radius is some buffer around each invader so your aim doesn't have to be an exact x,y of the center of the object
      If you use an inherited class to create each turtle you will save a -lot- of extra code by assigning attributes at default as soon as each turtle is instantiated. That way you don't have to loop though every turtle to change it's color, penup, etc. Etc.

  • @Chandu27-M
    @Chandu27-M 3 роки тому

    Hai Ellie much love from India❤️

  • @minuagarwal4353
    @minuagarwal4353 2 роки тому

    Which version are you using in this video

  • @SincereSquirrel
    @SincereSquirrel 3 роки тому

    this was helpful, although it didn't show me how to import/load a custom sprite for a player/image on the screen, which is what I was looking for.

  • @faxmux8923
    @faxmux8923 2 роки тому

    great work!

  • @bharath9424
    @bharath9424 3 роки тому

    Can you plz give any suggestion to do with the turtle , love from India ♥️✌️

  • @KidsKnowDoYouOfficial
    @KidsKnowDoYouOfficial 2 роки тому

    Your accent is beautiful
    I try to say but can't actually

  • @SincereSquirrel
    @SincereSquirrel 3 роки тому

    I was wondering what 'turtle.Turtle' meant. knowing what it means is quite helpful.

    • @pradeepkrishnan2004
      @pradeepkrishnan2004 3 роки тому

      @Sincere Squirrel turtle.Turtle means : from the turtle module, Use the Turtle() class to create a new turtle on the screen. Welcome in advance

    • @SincereSquirrel
      @SincereSquirrel 3 роки тому

      @@pradeepkrishnan2004 This was helpful, but I now find pygame better for my programs. Thanks, though.

  • @lightyagami4530
    @lightyagami4530 Рік тому

    you could use turtle.speed(0) for faster drawing of the finish line...

  • @Causal_Games
    @Causal_Games 3 роки тому

    I love your videos ❤️❤️

    • @canicode7955
      @canicode7955 3 роки тому +1

      Coding for Making Game. Please encourage us

  • @jorgesanchez2118
    @jorgesanchez2118 2 роки тому

    Thanks a lot, very interesting and fun tutorial!!

  • @CSAMAROK
    @CSAMAROK 3 роки тому

    what version python did u use????

  • @ratanlama386
    @ratanlama386 3 роки тому

    Wow my daughter loves it to make her very onw first game but she started in 2020 but its now 2021 she made some more games

    • @CodeoftheFuture
      @CodeoftheFuture  3 роки тому

      That’s awesome!! Love to see more women in tech!

  • @KhalilYasser
    @KhalilYasser 3 роки тому

    Thanks a lot Ellie. Can you share the code as usual?

  • @mohammadrajha5181
    @mohammadrajha5181 2 роки тому

    what's is the name of editor please

  • @riazafridi1441
    @riazafridi1441 3 роки тому

    Best of luck

  • @egcit4708
    @egcit4708 Рік тому

    how do i open pycharm?

  • @Mr123fairlane
    @Mr123fairlane 3 роки тому

    nice job

  • @therealmaxflyman
    @therealmaxflyman 2 роки тому +2

    GREAT TUTORIAL!!! OMGGGGGGGGGGGGGGGG SDFSDFSFFF

  • @ugyentandin1815
    @ugyentandin1815 3 роки тому

    one school assignment
    *TICK*

  • @abuloly2690
    @abuloly2690 2 роки тому

    Hi its not work 😢

  • @mobilegamingarena9473
    @mobilegamingarena9473 3 роки тому

    I was making a game and I was making wondering how you make a voting system

  • @دالياعمران-ض5س
    @دالياعمران-ض5س Рік тому

    😭How can i draw a turtle i have homework

  • @kanishkagupta4536
    @kanishkagupta4536 3 роки тому

    ❤️❤️

    • @canicode7955
      @canicode7955 3 роки тому

      Coding for Making Game. Please encourage us

  • @thoratrishikesh1661
    @thoratrishikesh1661 3 роки тому

    🤟🤟🤟

  • @NiklasAndersson7
    @NiklasAndersson7 19 днів тому

    ...and in the next tutorial we will create World of Warcraft

  • @boomslang2642
    @boomslang2642 3 роки тому

    I’m not used to how time works:(

    • @CodeoftheFuture
      @CodeoftheFuture  3 роки тому

      It's really simple! Essentially, the time module in python, specifically time.sleep() allows you to pause your python code for as many seconds as you want. This allows the game you make or any commands you want to be done after a set number of seconds. It essentially pauses the python file. It's an awesome feature!!

  • @partyboylxarchive
    @partyboylxarchive 2 роки тому

    I put player_two.color('red') before you did! OMG!

  • @avinashtechnicalpcm8908
    @avinashtechnicalpcm8908 Рік тому

    🇮🇳🇮🇳🇮🇳🇮🇳🇮🇳

  • @lilpar
    @lilpar 2 роки тому

    You're lovely girl.

  • @saurabhsinha1979
    @saurabhsinha1979 Рік тому

    It is cool

  • @andressosa7624
    @andressosa7624 2 роки тому

    Many thanks, is so easy to follow what u made. Thank u girl