Pygame Tutorial 25 - Game Over and Reset Game

Subscribers:
56,700
Published on ● Video Link: https://www.youtube.com/watch?v=kmO5UAb6Vgw



Duration: 0:00
219 views
9


pygame tutorial. In this previous video, we went over how to draw text and keep a running score for the player. In this video, we will go over how to handle game over. The game is over when the player's health bar becomes 0 due to damage taken by enemies or colliding when hazards. In this game, megaman can take damage from metalls and bladers by touching them, and by bullets fired by metalls. If megaman touches a spike, his health bar immediately drops to 0. Aside from health, megaman can also fall through holes between platforms, which will trigger game over. When the game is over, the player will be able to press the enter key to reset the game and play again.

How to install Python for VS Code:    • How to set up Python on Visual Studio Code  

How to install Pygame:    • How to Install Pygame  

Pygame Tutorial Playlist:    • Create a Platformer Game in Python with Py...  

Click on the link below to access the images used in the tutorial!
Github for Pygame Tutorial Code: https://github.com/ImKennyYip/pygame

Python Object Oriented Programming Playlist:    • Python Object Oriented Programming  

Python Game Projects Tutorial Playlist:    • Python Game Programming Tutorials  

Pygame Website: https://www.pygame.org/

⭐ If you enjoyed the tutorial and would like to support the channel, you can do so here 💖 :https://buymeacoffee.com/kennyyipcodingg