filmov
tv
07-Pygame, Love2D and Monogame Comparison - Pygame - Shields and Controlling Sound effects

Показать описание
This is the seventh part in the comparison series, using Python and Pygame. It is based on this video by KidsCanCode:
A coloured rectangle graphic shows how much shield is left, as Mobs hit the player.
The player has a new boolean state which helps to control how the explosion sound is used, so the game does not quit until the death explosion has finished.
This requires knowing when a sound effect has completed playing, with different methods used in each game library.
A coloured rectangle graphic shows how much shield is left, as Mobs hit the player.
The player has a new boolean state which helps to control how the explosion sound is used, so the game does not quit until the death explosion has finished.
This requires knowing when a sound effect has completed playing, with different methods used in each game library.