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

This course teaches learners how to improve their Python and PyGame programming skills by coding a Duck Hunt game. By the end of the course, students will be able to set up PyGame, draw images on the screen, animate enemies, implement game logic such as collision detection, create menus, handle game over conditions, and manage high scores using external text files. The course is suitable for individuals interested in game development, Python programming, and PyGame framework. The teaching method involves hands-on coding sessions guided by the instructor.

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.