Python Turtle Tutorial - Code Your First Game!

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ธ.ค. 2024

ความคิดเห็น • 111

  • @kamjiyoon
    @kamjiyoon 3 ปีที่แล้ว +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!

  • @entity_dragons2013
    @entity_dragons2013 หลายเดือนก่อน

    Im 47 just started with python, thanks for the upload

  • @MookieHeresy
    @MookieHeresy 3 ปีที่แล้ว +3

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

  • @angelalovely1416
    @angelalovely1416 3 ปีที่แล้ว +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.

  • @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 ❤🙋‍♀

  • @deepanshudixit5648
    @deepanshudixit5648 3 ปีที่แล้ว +4

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

  • @Μάνος05
    @Μάνος05 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

  • @azureauurora
    @azureauurora 2 ปีที่แล้ว

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

  • @minuagarwal4353
    @minuagarwal4353 2 ปีที่แล้ว

    Which version are you using in this video

  • @bunthulhu4379
    @bunthulhu4379 9 หลายเดือนก่อน

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

  • @MrGZM90
    @MrGZM90 2 ปีที่แล้ว

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

  • @eloisacute111
    @eloisacute111 2 ปีที่แล้ว

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

  • @jamesmoon5632
    @jamesmoon5632 3 ปีที่แล้ว +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)

  • @rockrock5711
    @rockrock5711 2 ปีที่แล้ว

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

  • @Rohit_hacker
    @Rohit_hacker 2 ปีที่แล้ว +1

    You are best teacher ❤️❤️👍👍

  • @stylosuf1394
    @stylosuf1394 ปีที่แล้ว

    Please upload
    "What is pygame with ultimate course

  • @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 ☺️

  • @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?

  • @andressosa7624
    @andressosa7624 2 ปีที่แล้ว

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

  • @kelvinkleden4817
    @kelvinkleden4817 3 ปีที่แล้ว +1

    thank you for teaching turtle in python

  • @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

  • @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 7 หลายเดือนก่อน

    Rather sweet for relatively little code 👍🏽

  • @liamor9971
    @liamor9971 ปีที่แล้ว

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

  • @CSAMAROK
    @CSAMAROK 3 ปีที่แล้ว

    what version python did u use????

  • @hmdude
    @hmdude 2 ปีที่แล้ว +1

    my player doesnt show

  • @shortError404
    @shortError404 2 ปีที่แล้ว

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

  • @mohammadrajha5181
    @mohammadrajha5181 3 ปีที่แล้ว

    what's is the name of editor please

  • @techdude2006
    @techdude2006 3 ปีที่แล้ว +1

    Thank you ,This was amazing Tutorial!!!

  • @symnshah
    @symnshah 9 หลายเดือนก่อน

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

  • @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 .

  • @egcit4708
    @egcit4708 ปีที่แล้ว

    how do i open pycharm?

  • @dastandark7194
    @dastandark7194 2 ปีที่แล้ว

    Impressive 😀
    That was useful
    Tnx for explaining

  • @dimplemalik3385
    @dimplemalik3385 2 ปีที่แล้ว

    Thank you so much u just explain so well. Thanks

  • @RandomJeevanYT
    @RandomJeevanYT 2 ปีที่แล้ว

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

  • @TuyaTheNasty
    @TuyaTheNasty 2 ปีที่แล้ว

    Very well explained, 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!!!

  • @_y4020
    @_y4020 4 หลายเดือนก่อน

    Amazing guide!!!

  • @mobilegamingarena9473
    @mobilegamingarena9473 3 ปีที่แล้ว

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

    • @CodeoftheFuture
      @CodeoftheFuture  3 ปีที่แล้ว

      Awesome question! If you want me to create a video on how to make a voting system, I will do!

    • @mobilegamingarena9473
      @mobilegamingarena9473 3 ปีที่แล้ว

      @@CodeoftheFuture ok

    • @pradeepkrishnan2004
      @pradeepkrishnan2004 3 ปีที่แล้ว

      @@CodeoftheFuture can you send the link as a reply???

  • @nirmalasharma2072
    @nirmalasharma2072 3 ปีที่แล้ว

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

    • @CodeoftheFuture
      @CodeoftheFuture  3 ปีที่แล้ว

      So glad to hear it! Thank you ☺️

  • @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.

  • @alexdemeter1558
    @alexdemeter1558 5 หลายเดือนก่อน

    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 :)

  • @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 😂

  • @MrLoop-wz2sb
    @MrLoop-wz2sb 2 ปีที่แล้ว

    well explained! awesome. thank you.

  • @benedictlim3344
    @benedictlim3344 ปีที่แล้ว

    Nice tutorial video

  • @eamonmolloy8308
    @eamonmolloy8308 2 ปีที่แล้ว

    Great fun and very informative

  • @andreamattei5991
    @andreamattei5991 3 ปีที่แล้ว

    Nice and cool. Kisses from Italy

  • @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

  • @lnissim
    @lnissim 3 ปีที่แล้ว

    Very nice video! Thank you!

  • @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.

  • @Chandu27-M
    @Chandu27-M 3 ปีที่แล้ว

    Hai Ellie much love from India❤️

  • @BharathTrades
    @BharathTrades 3 ปีที่แล้ว

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

  • @mythchallenger3848
    @mythchallenger3848 3 ปีที่แล้ว

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

  • @KhalilYasser
    @KhalilYasser 3 ปีที่แล้ว

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

  • @jorgesanchez2118
    @jorgesanchez2118 2 ปีที่แล้ว

    Thanks a lot, very interesting and fun tutorial!!

  • @faxmux8923
    @faxmux8923 3 ปีที่แล้ว

    great work!

  • @Causal_Games
    @Causal_Games 3 ปีที่แล้ว

    I love your videos ❤️❤️

    • @canicode7955
      @canicode7955 3 ปีที่แล้ว +1

      Coding for Making Game. Please encourage us

  • @robertadams5092
    @robertadams5092 3 ปีที่แล้ว +1

    cool game was fun

  • @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.

  • @abuloly2690
    @abuloly2690 2 ปีที่แล้ว

    Hi its not work 😢

  • @KidsKnowDoYouOfficial
    @KidsKnowDoYouOfficial 3 ปีที่แล้ว

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

  • @lightyagami4530
    @lightyagami4530 2 ปีที่แล้ว

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

  • @دالياعمران-ض5س
    @دالياعمران-ض5س 2 ปีที่แล้ว

    😭How can i draw a turtle i have homework

  • @riazafridi1441
    @riazafridi1441 3 ปีที่แล้ว

    Best of luck

  • @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!

  • @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!!

  • @Mr123fairlane
    @Mr123fairlane 3 ปีที่แล้ว

    nice job

  • @ugyentandin1815
    @ugyentandin1815 3 ปีที่แล้ว

    one school assignment
    *TICK*

  • @therealmaxflyman
    @therealmaxflyman 3 ปีที่แล้ว +2

    GREAT TUTORIAL!!! OMGGGGGGGGGGGGGGGG SDFSDFSFFF

  • @NiklasAndersson7
    @NiklasAndersson7 4 หลายเดือนก่อน

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

  • @kanishkagupta4536
    @kanishkagupta4536 3 ปีที่แล้ว

    ❤️❤️

    • @canicode7955
      @canicode7955 3 ปีที่แล้ว

      Coding for Making Game. Please encourage us

  • @thoratrishikesh1661
    @thoratrishikesh1661 3 ปีที่แล้ว

    🤟🤟🤟

  • @avinashtechnicalpcm8908
    @avinashtechnicalpcm8908 ปีที่แล้ว

    🇮🇳🇮🇳🇮🇳🇮🇳🇮🇳

  • @lilpar
    @lilpar 2 ปีที่แล้ว

    You're lovely girl.

  • @cpgvr
    @cpgvr 2 ปีที่แล้ว

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

  • @saurabhsinha1979
    @saurabhsinha1979 2 ปีที่แล้ว

    It is cool

  • @andressosa7624
    @andressosa7624 2 ปีที่แล้ว

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