Make a Space Shooter Game in Python (Pygame Zero Tutorial Part 8: End the Game on Enemy Collision)
💀 Game Over, Commander.In Part 8 of our Python + Pygame Zero Space Shooter series, we give the game some real consequences — when an enemy ship crashes into your player, it’s all over. Let’s do it!
🧠 What You’ll Learn:
- How to detect collisions between the player and enemies
- Ending the game when a collision occurs
- Creating a game over screen
🧪 Techniques Covered:
- Player–enemy detection
- Using a game_state variable
- Showing a “Game Over” message on the screen
- Play a sound and animation when hit
🏆 Challenge Ideas:
- Create a “Try Again” or restart button
📺 Full Series Playlist:
• 🧑🚀 Part 1 – Player Movement https://youtu.be/_c1nPzcqkZA
• 🔫 Part 2 – Shooting Lasers https://youtu.be/d9oBgTowars
• 🌌 Part 3 – Scrolling Background https://youtu.be/SM8E__ITB_Y
• 👾 Part 4 – Enemy Movement https://youtu.be/DC0RtMB0z2g
• 💥 Part 5 – Destroy Enemies https://youtu.be/5zIgep4LYZg
• 🧮 Part 6 – Score System https://youtu.be/qTT56V3KeFs
• 🔊 Part 7 – Music & Sound FX https://youtu.be/vjsZNd6XUqA
• 💀 Part 8 – Enemy Collisions & Game Over https://youtu.be/JriQ8rFKnnU
❤️ Help This Channel Blast Off:
👍 Like | 🔔 Subscribe | 🎮 Share the series Receive SMS online on sms24.me
TubeReader video aggregator is a website that collects and organizes online videos from the YouTube source. Video aggregation is done for different purposes, and TubeReader take different approaches to achieve their purpose.
Our try to collect videos of high quality or interest for visitors to view; the collection may be made by editors or may be based on community votes.
Another method is to base the collection on those videos most viewed, either at the aggregator site or at various popular video hosting sites.
TubeReader site exists to allow users to collect their own sets of videos, for personal use as well as for browsing and viewing by others; TubeReader can develop online communities around video sharing.
Our site allow users to create a personalized video playlist, for personal use as well as for browsing and viewing by others.
@YouTubeReaderBot allows you to subscribe to Youtube channels.
By using @YouTubeReaderBot Bot you agree with YouTube Terms of Service.
Use the @YouTubeReaderBot telegram bot to be the first to be notified when new videos are released on your favorite channels.
Look for new videos or channels and share them with your friends.
You can start using our bot from this video, subscribe now to Make a Space Shooter Game in Python (Pygame Zero Tutorial Part 8: End the Game on Enemy Collision)
What is YouTube?
YouTube is a free video sharing website that makes it easy to watch online videos. You can even create and upload your own videos to share with others. Originally created in 2005, YouTube is now one of the most popular sites on the Web, with visitors watching around 6 billion hours of video every month.