What should i learn in Python before learning pygame?
And is it possible to use pygame in android?
Hello Pygame is basically a set of functions in a class which do different stuff. If you understand Python well, all you have to do is call those functions depending on what you want to draw. I would suggest going through the pygame documentation to understand what every function does. You don't need to memorize them - no one can. Just know that those are set of labels which tell us what each stuff does. Also, watch some tutorials to get a better idea. Again, you need to be good at Python otherwise you are going to have trouble using pygame. I really highly recommend it. Took it this past summer, and it was a blast. You start off with a very basic text game, rock-paper-scissors-lizard-spock, and then get introduced to a custom simple GUI package to build visual games. 8 week course, and all the weekly assignments are games. You work up through building a stopwatch, a memory game, Blackjack, a very basic Pong type game, and then culminate in a simple space shooter game where you work with sprites and sound effects. You also learn OOP along the way, which is cool. The level is also "just right." At the end, they point you toward other resources for further development, including the Pygame package others mentioned. I hope this will help to you
Learn the Python basics first. E.g. Python tutorial on Sololearn.
Akbar thanks 😄
Çrèàtìvè Sàt what is turtle? Is it some kind of library
Çrèàtìvè Sàt as you mentioned turtle now i remembered that someone on GitHub posted a code in which some "automatic" drawings were made. Maybe that's what turtle is.
And that code seems very simple if i understand the functions of turtle
🐢 See some tutorials on YouTube for clarification You can edit this Example for turtle . This the simple program in and it is very easy to understand https://code.sololearn.com/c7SiWM11ID5R/?ref=app 🐢
Martin Taylor i have almost covered the basics now i wants to learn something different. Like pygame or Django
I would suggest "turtle" 🐢
Yes, “Turtle” is a python module which is like a drawing board, which lets you command a turtle to draw all over it! You can use functions like turtle. forward(...) and turtle. left(...) which can move the turtle around. Before you can use turtle, you have to import it.
Turtle is used for graphics
And it is very beginner friendly
Use repl.it a online editor for turtle
When you run the code it will draw something in a white board (a screen)
Yes, paste the lines of code in repl.it in browser to see the effect . Its simple
Ishan Shah thanks bhai But which course are you talking about?