Python Weather App in 8 Minutes
8:29
HOW TO PLAY VIDEOS IN PYGAME/PYTHON!
8:07
HOW TO MAKE A MENU SCREEN IN PYGAME!
5:09
HOW TO MAKE A LOADING BAR IN PYGAME!
13:23
Пікірлер
@granpajestaz292
@granpajestaz292 5 күн бұрын
Nice try lol
@Vyom_06
@Vyom_06 6 күн бұрын
Hello, I have a question if you reply with ur email I could forward you my code and the issue is that I’m having trouble implementing this games menu into my existing game
@brunopauletti1961
@brunopauletti1961 8 күн бұрын
in "def get_font(size):" what you put in?
@el_mapache4486
@el_mapache4486 13 күн бұрын
Very usefull thank you very much, I edit the code a little bit because I made the buttons transparent because I already made in paint the menu backgrounds with the buttons lol, so I only situated empty png images over the "buttons" to seems like that you're pressing a button xd
@marcinbaryka1490
@marcinbaryka1490 16 күн бұрын
I think you forgot about mixer initialization. Without this it would not gonna work: "pygame.error: mixer not initialized".
@dgofficial-r5f
@dgofficial-r5f 22 күн бұрын
I need help. When I finish creating the paddles, the game screen shows nothing but a black screen. Is there anyway to fix it?
@TheDefilerAzog
@TheDefilerAzog 23 күн бұрын
u need more subs this is actually so good.
@TheDefilerAzog
@TheDefilerAzog 23 күн бұрын
thank you
@tbinaryg
@tbinaryg 26 күн бұрын
thanks, this was really useful
@ludvig7749
@ludvig7749 29 күн бұрын
btw if you want the ai a bit faster just chance the value to 2 it moves faster :)
@gordonmctague1723
@gordonmctague1723 Ай бұрын
I'm haveing trouble importing the gui
@UsernameaBad
@UsernameaBad Ай бұрын
thanks
@tasmiatasnim-pw7gm
@tasmiatasnim-pw7gm Ай бұрын
I don't understand one thing, y_pos = y_pos - jumpvel(10) wouldn't it go way up the screen then vel would become 9,8... to 0 won't this be beyond our screen. i get it how it goes up and then down but i didn't understand this part. Upward movement: 10 + 9 + 8 + 7 + 6 + 5 + 4 + 3 + 2 + 1 = 55 units Downward movement: 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 = 55 units why it doesn't look like it jumped 55 units
@Darkmatter321
@Darkmatter321 Ай бұрын
Can I have the goat?
@popomasher
@popomasher Ай бұрын
I found a work around for this gettging the FONT errors and put in LargeText but now am putting the elif event.key, and I am getting no module for key? pygame.event.event' object has no attribute 'key' anyone else get that or know a work around??
@sanaaaaa666
@sanaaaaa666 2 ай бұрын
if i want to use multiple files how do i call the functions as the mouse is pressed?
@yarin8350
@yarin8350 2 ай бұрын
Amazing tip on how to use multiple screens! I had a big issue with having different resolutions for my main menu and gameplay and this really helped. Thanks a lot!
@N3id1
@N3id1 2 ай бұрын
how do i get the font?
@amraam8723
@amraam8723 2 ай бұрын
Whats the song? :)
@MowiWowi
@MowiWowi 2 ай бұрын
So satisfying seeing code work so perfectly
@abdulrahmanabusharbain7507
@abdulrahmanabusharbain7507 2 ай бұрын
for 19:15 couldn't you just do self.__init__()?
@gamalielgerona2391
@gamalielgerona2391 3 ай бұрын
Nice. Now I can enable jumping for my PyGame Slime Destroyer project. You got a subscriber.
@gamalielgerona2391
@gamalielgerona2391 3 ай бұрын
Thanks for this tutorial! Now I can add that to my game
@krzysztofuczkowski6274
@krzysztofuczkowski6274 3 ай бұрын
Simple and quick to the point. This is exactly what we need in the education system. I never expected that at the age of 21 I would be learning from a 14-year-old (I mean, if you're 16 now, you'll be 14 then, hah), but you have to learn from everyone, regardless of age. There's a sub and a symbolic amount. I hope, that you will have a wonderful day and that I will see more of you at such a high level as the mountains in Nepal!Simple and quick to the point. This is exactly what we need in the education system. I never expected that at the age of 21 I would be learning from a 14-year-old (I mean, if you're 16 now, you'll be 14 then, hah), but you have to learn from everyone, regardless of age. There's a sub and a symbolic amount. I hope, that you will have a wonderful day and that I will see more of you at such a high level as the mountains in Nepal!
@sanjeevmonica
@sanjeevmonica 3 ай бұрын
How do I attach the background?
@user-gq4iv5qi5t
@user-gq4iv5qi5t 3 ай бұрын
can you also show the get_font() class?
@MSTSLive
@MSTSLive 3 ай бұрын
Bro After I run the programme it is saying that FFMPEG is not added to $PATH. What is the solution to this
@georgestavlas9249
@georgestavlas9249 3 ай бұрын
my program does not recognise the pymediainfo and ffpyplayer.player, does anyone know whats wrong ?
@loriingram4175
@loriingram4175 3 ай бұрын
Thanks. I'm not sure exactly what you did because I'm in the learning process and don't know all the terms to Google some of the help I need yet for more efficient research, but that was it, whatever it was, and I finally got my sound effects code to respond as I intended after user input. I think also having the GitHub link to have another look at the formatting and change the file names to match my own sounds for something that responded to input the same way I needed it to also helped it sink in better than either just a code document or just a video.
@baraltech
@baraltech 3 ай бұрын
No problem! Glad to help
@WhatsInYourHead_
@WhatsInYourHead_ 3 ай бұрын
I added all the image files to my game folder and the screen is still black. Explanation? Also I am using an IDE called replit.
@GodbornNoven
@GodbornNoven 3 ай бұрын
How do i calculate the probability??
@gamalielgerona2391
@gamalielgerona2391 3 ай бұрын
Great tutorial!
@baraltech
@baraltech 3 ай бұрын
Thank you!
@BardockSuperZ
@BardockSuperZ 4 ай бұрын
Nice tutorial , i copied the logic of your tuto for apply in the ursina engine
@baraltech
@baraltech 3 ай бұрын
No problem! :)
@stregone
@stregone 4 ай бұрын
you forgot to add: pygame.mixer.init()
@gracechan3039
@gracechan3039 4 ай бұрын
Just found your channel. Really love your tutorial style. It's no fluff, to the point and well illustrated. It's wild that you dont have more subscribers. I've no idea about python but I want to make a super simple language learning game to learn German vocabularly. Your videos are giving me the crash course in exactly what I need to know. Thank you!!
@baraltech
@baraltech 3 ай бұрын
Thank you so much, that means a lot!
@02pigoso
@02pigoso 4 ай бұрын
que tutorial buenardo, gracias mano
@baraltech
@baraltech 3 ай бұрын
¡No hay problema!
@shauryagupta3644
@shauryagupta3644 5 ай бұрын
Hey man, great video! Btw, just a suggestion, instead of using "if pygame.key.get_pressed()[pygame.K_SPACE]", you can directly use "if event.key == pygame.K_SPACE" in the same spot, and it would work just the same.. (space was just an example, works with all keys) Just improves the readability (and maybe the performance, but not sure about that)
@iamfox8289
@iamfox8289 5 ай бұрын
How do you make your game start after pressing play though???????
@sanjeevmonica
@sanjeevmonica 3 ай бұрын
Yes I also had the same question
@AndrasBalintBoroczky
@AndrasBalintBoroczky 5 ай бұрын
I don't know which is better, but I don't have several functions for scenes but I use a "scene" string variable which I use in if statements so that the game doesn't render everything
@TFRKAI
@TFRKAI 5 ай бұрын
When I used this it gave me an error saying lable name shouldn't be capital and it was talking about the start_button stop_button and exit_button part on def main menu But when I lowercased them it gave me another error saying lable shouldn't be lowercase, I'm very confused 😅 please help!
@harkmiguelcarandang759
@harkmiguelcarandang759 5 ай бұрын
The menu works but putting it with the game code works but the menu screens stays while the game is working properly it means 2 screens pop out
@maboo575
@maboo575 5 ай бұрын
while i'm lost in the perfect strom, thee show me the light, the beacon of heaven, spawn from the black sea. You show mw that it's not a perfect strom, it's just a programming class. I shall give you my own heart and soul to you as a cost to this life saving hack as the strom approching me name'computor programming class' .But now, now, my dear, you save me. so thank you <3333
@baraltech
@baraltech 3 ай бұрын
This really touched my heart!
@sherwinpaulsheltonedison852
@sherwinpaulsheltonedison852 5 ай бұрын
Is there any way of programming it so that as the user enters it its hides it with asterisk?
@python_decoded
@python_decoded 5 ай бұрын
Nice foundation to scale application, have concearns related to calling_main_menu from play or from option, smells like recursion, where you go deeper and deeper, into stack though it can be easily fixed by return keyword
@sniperlord4243
@sniperlord4243 5 ай бұрын
is there a way to change the colour of the rectangle box you type in
@RedEndGamers
@RedEndGamers 5 ай бұрын
I seriously like the way you give the warning for headphone users and your amazing man 😂😊😊 Love you just subscribed 🌟🫵🏻
@juliansolanobotina7983
@juliansolanobotina7983 5 ай бұрын
hey, i've got a problem, in the minute 10:49 when the ball must come back to the center after a point, i can't use ball.CENTER, it says "Cannot assign member "center" for type "Rect" "float" is incompatible with "int" "float" is incompatible with "int"
@aatmanshah3073
@aatmanshah3073 Ай бұрын
its supposed to lowercase
@aatmanshah3073
@aatmanshah3073 Ай бұрын
the center
@RobertoSantana61
@RobertoSantana61 5 ай бұрын
The 100 door analogy does not help at all, it's a totally different situation.
@mercury2053
@mercury2053 3 ай бұрын
how does it differ?
@RobertoSantana61
@RobertoSantana61 3 ай бұрын
@@mercury2053 - More choices
@aylazer23
@aylazer23 6 ай бұрын
Isn't it more efficient to draw lines for making the grid
@psy8428
@psy8428 6 ай бұрын
While this video provides interesting content, don't make your game this way. Each menu switch is added to the call stack. This keeps all of the function's context and variables in memory, leading to excessive memory consumption and potentially stack recursion limit (which is 1000 in python by default). It probably doesn't matter much for very simple games, but it's not a good programming pattern.