Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

freeCodeCamp

Python & PyGame Tutorial – Code a Duck Hunt Game

via freeCodeCamp

Overview

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This beginner course guides learners through building a Duck Hunt–style game with Python and Pygame. It covers graphics, mouse controls, moving enemies, menus, scoring, high-score files, music, and sound effects.

Syllabus

⌨️ Intro and Project Showcase
⌨️ Setting Up Pygame And Importing Images
⌨️ Drawing the Gun and Rotating With Mouse Position
⌨️ Drawing Enemies Onto the Screen
⌨️ Procedurally Generate Enemy Starting Coordinates
⌨️ Make Enemies Move With Speed Based on Tiers
⌨️ Check for Mouse Collision with Targets on Shots
⌨️ Display Score, Mode Status, Time Elapsed and Total Shots!
⌨️ Menu Control and Setup
⌨️ Pause Menu and Restarting from the Game Screens
⌨️ Re-Initializing Enemy Coordinates on Restart
⌨️ Game Over Conditions!
⌨️ Reading and Writing to a .txt Text file for high scores!
⌨️ Adding Background Music and Sound Effects!
⌨️ Outro and Thank you!!

Taught by

freeCodeCamp.org

Reviews

Start your review of Python & PyGame Tutorial – Code a Duck Hunt Game

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.