Pygame Tutorial 12 - Create a Health Bar

Subscribers:
53,800
Published on ● Video Link: https://www.youtube.com/watch?v=VVlgVZia9PM



Duration: 0:00
283 views
15


pygame tutorial. In the previous video, we went over how to create the classic enemy in megaman games, called a metall, have it collide and land on the tiles, detect collision between metall and megaman, and make megaman invincibile for 1 second to give him enough time to move out of the enemy's range. In this video, we go over how to create a health bar to display the player's current health. A health bar is simply 2 rectangles, one overlapping the other. The top level health bar represents the player's current health whereas the one underneath represents the player's maximum health.

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:    • Pygame Python Game Programming Tutorial  

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/