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
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
Thank you so much!!
Both my English and Programming skills are improving. A better way to improve English rather than watching movies. Thanks a lot, keep uploading.
That's so amazing to hear! Thank you so much!
My 7 year old daughter is very interested to try this...Thanks a lot...clear explanation
I watched 4 tutorials on this and it still didnt work than I came here and bam! Everything works great! Subscribed! 🙏
I love this. I was searching for an easy to understand turtle tutorial and here it is. Thank you.
Thank you so much!!
HAHAHa I love her reaction watching which turtle would win the race. 27:42 , also loved the tutorial !
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
Please make the tutorial on the game that you made. And also you make it really easy to understand
Thank you so much! This was awesome! I would love more turtle tutorials from you!
I was waiting for your Video only 🤩✨. Love Love Ellie ❤🙋♀
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?
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 ☺️
You are best teacher ❤️❤️👍👍
Pla make a tutorial on design automation of any 3D model (Bolt, nut, culinder, wheel).....
You and your videos are amazing by the way!!!
Rather sweet for relatively little code 👍🏽
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 :)
Thanks! Glad it helped! I am just a Python Refresher! I know a lot of basics!
Love your video! Super helpful and tons of fun. Thank you!
thank you for teaching turtle in python
Thank you! Anytime ☺️
Ok
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)
We like your videos. Make a video on a more complex turtle program.
Thank you ,This was amazing Tutorial!!!
Thank you so much!!
Great video! I made mine into a rainbow race with six turtles! Also with a fun exit screen countdown.
Excellent tutorial!!!
loved it:)
Thank you so much!
Many thanks, is so easy to follow what u made. Thank u girl
Thank you for that tutorial I found it really easy to follow! How would you make a game for iOS on Python?
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 .
Thank you so much u just explain so well. Thanks
Amazing guide!!!
i am an indian and i can even understand these concepts thank you soo muchhh
So glad to hear it! Thank you ☺️
Very well explained, thank you. ✌️
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?
Impressive 😀
That was useful
Tnx for explaining
can python/turtle be a good start for ppl who are interesting in learning game development?
Wonderful tutorial🤗 helped me a lot.
I wanted to ask what ide your using ? I think its pycharm. Am i right?
well explained! awesome. thank you.
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
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
😂 giving him all the hard work!
@@CodeoftheFuture Still he manages to win the race most of the time 😅
use turtle.Tracer(0) before drawing the finish line and after drawing the finish line, add turtle.tracer(1)
you will see that the finish line just pops up
Awesome video, thank you. I would love for you to make beginner python tutorials
I do! You can find them on my channel☺️
@@CodeoftheFuture oh awesome, should have had a look before haha
@@kingproductions2331 most people don’t realise! I need to start mentioning it in my videos 😂
cool game was fun
my player doesnt show
Nice and cool. Kisses from Italy
Very nice video! Thank you!
Thank you so much!
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!!!
Please upload
"What is pygame with ultimate course
Nice tutorial video
Great fun and very informative
Hey maam please make a playlist on website devloping course. Appreciate your work😊😊😊
15:15, the finish appears at right, how to make it at left ?
can i replace that time(2) to press enter to move the turtle
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! :)
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.
Hai Ellie much love from India❤️
Which version are you using in this video
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.
great work!
Can you plz give any suggestion to do with the turtle , love from India ♥️✌️
Your accent is beautiful
I try to say but can't actually
I was wondering what 'turtle.Turtle' meant. knowing what it means is quite helpful.
@Sincere Squirrel turtle.Turtle means : from the turtle module, Use the Turtle() class to create a new turtle on the screen. Welcome in advance
@@pradeepkrishnan2004 This was helpful, but I now find pygame better for my programs. Thanks, though.
you could use turtle.speed(0) for faster drawing of the finish line...
I love your videos ❤️❤️
Coding for Making Game. Please encourage us
Thanks a lot, very interesting and fun tutorial!!
what version python did u use????
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
That’s awesome!! Love to see more women in tech!
Thanks a lot Ellie. Can you share the code as usual?
what's is the name of editor please
Best of luck
how do i open pycharm?
nice job
GREAT TUTORIAL!!! OMGGGGGGGGGGGGGGGG SDFSDFSFFF
one school assignment
*TICK*
Hi its not work 😢
I was making a game and I was making wondering how you make a voting system
Awesome question! If you want me to create a video on how to make a voting system, I will do!
@@CodeoftheFuture ok
@@CodeoftheFuture can you send the link as a reply???
😭How can i draw a turtle i have homework
❤️❤️
Coding for Making Game. Please encourage us
🤟🤟🤟
...and in the next tutorial we will create World of Warcraft
I’m not used to how time works:(
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!!
I put player_two.color('red') before you did! OMG!
🇮🇳🇮🇳🇮🇳🇮🇳🇮🇳
You're lovely girl.
It is cool
Many thanks, is so easy to follow what u made. Thank u girl