PyGame Platformer Game Beginner Tutorial in Python - PART 7 | Add Buttons and Reset Game

preview_player
Показать описание
In this Python tutorial I code a Platformer Game using the PyGame module. I'm going to add buttons into the game and include the option to restart once the player has died

Note, sprites and sounds are open source:

Check out my other PyGame tutorials:
Рекомендации по теме
Комментарии
Автор

Really loving these tutorials! Super clear and every step is well explained, thanks so much for making these :)

karolinahes
Автор

In time of Corona your Pygame Platformer is for me a highlight. I have also made Platforme-Game in Godot, but I love Pygame. Thank you

thomaspfaff
Автор

Ha Ha I was wondering when you were going to mention the constant jumping I thought you were going to forget.

trailsanddales
Автор

You could just move the 'self.jumped = fasle' to the vertical collision detection part.

GorankPanwar
Автор

At 15:50 how would you reset the coins? The position, and the score. I came back to watch again but idk I might have missed it (I only want one lvl to just keep restarting). And my player can move when they get to the door even tho they shouldn’t. Hopefully you see this

little_red
Автор

i was wondering why you had spam jump and i didn't and i realized it was because i had already gone on a whole little side quest to make my platforms have collision on the top and not the bottom without the player character just glitching through them and id already had to add the inair variable

Pinkiepieisawsome
Автор

Bruh! The game is actually hard now (to play) lol. I'm not sure if I can jump over those blobs without double jumping. THis is fun!

Palmtreeshinobi
Автор

Hey Russ. When clicked it's printing Clicked multiple times even after button pressed is checked...

raindropcomsen
Автор

Maybe I'm missing something obvious, but it seems like occasionally in this code we're using an if function for something that only exists IN the if function? I'm not wording this very well, but in the while loop we use "if restart_button.draw()", but restart_button.draw() is only being called on within that if function, so I'm not sure at what point that draw function was actually activated. am I making sense? These tutorials are great and I'm learning a lot, I'm just a little confused about this specific thing

cptnbara
Автор

I'm watching these tutorials but I have 1 question. When you import image in code (like sun.png or self.image.ger_rect) where are you saving these images in pc

star_t
join shbcf.ru