Intermediate Python – Virtual Pet with Pygame

Craft a virtual pet game with Python and Pygame!

Virtual pets are a popular stress-relief genre that allow players to engage with risk-free pet care. You’ll work with the Pygame library and create a simple pet game with basic care options and needs system for the pet. These techniques will both enhance your skills with Python and give you new tools to create fun or educational games to play.

Basic skills with Python are needed to take this course. Pygame skills are also helpful, but optional.

You will learn how to:

  • Use project management techniques
  • Create item and pet objects
  • Control mouse click interactions
  • Implement movement and collisions
  • Add “decay” to pet needs
  • Set up end game criteria

… and more!


We start with the absolute basics and go through everything step-by-step – so even if you have zero experience in programming, you’ll be able to easily follow along.

More experienced? Whether you’re wanting to brush up, expand your skills, or learn a new technology, our courses are structured in a way that makes it easy to skip ahead to the lessons that are relevant and interesting to you.


Zenva’s courses feature quick challenges that will speed up your learning.

Access live coding lessons where you can practice coding right in your browser, and instantly see the results of any changes you make to the code:

Reinforce key concepts with in-course quizzes, which appear throughout courses:


Our course instructors aren’t just fun to learn from – they’re also serious gamers, qualified coders, and have been formally certified by Unity Technologies and CompTIA for their excellent programming and teaching skills. That way, you can be confident that you’re developing strong, modern skills that will set you up for success as a game developer.


Learn with project-based courses that are designed to be flexible – access them 24/7, fit them around your schedule, and choose the learning materials that suit you best.

With an online platform optimized for all modern devices, you can even learn on the go!

✅ Watch video lessons

✅ Download course printouts

✅ Explore interactive lessons

✅ Practice with source code

✅ Build real projects

✅ Earn completion certificates


Our community of 1,000,000+ learners and developers have used the skills learned with us to publish their own games and websites, land their dream jobs, and even start their own businesses – and you have the potential to do the same!

Check out what our learners think below:



I love the lectures, concise course objectives, and how they not only teach you enough to get started, but prepare you for the advanced stuff later down the road.



With Zenva, I started learning a more accurate way to approach problems and develop solutions. It’s full of interesting topics that I love to learn in conjunction with my work.



I chose Zenva because of the large selection of topics and the fact that I can choose what courses I want to take whenever I want to take them. That level of freedom is unique to Zenva.



The Unity courses at Zenva helped me achieve a level of comfort with game development that I didn’t think was possible. They give you the confidence to expand your skills, and were so easy to understand.

Course Requirements
Project Defintion
User Stories – Part 1
User Stories – Part 2
Project Design
Project Implementation – Part 1 – Setup
Live Coding – Project Implementation – Part 1
Project Implementation – Part 2a – Pygame Setup
Live Coding – Project Implementation – Part 2a
Project Implementation – Part 2b – Running Pygame
Live Coding – Project Implementation – Part 2b
Project Implementation – Part 3a – Item Class
Live Coding – Project Implementation – Part 3a
Project Implementation – Part 3b – Creating Buttons
Live Coding – Project Implementation – Part 3b
Project Implementation – Part 3c – Challenge Solution
Live Coding – Project Implementation – Part 3c
Project Implementation – Part 4a – Pet Class
Live Coding – Project Implementation – Part 4a
Project Implementation – Part 4b – Drawing the Pet
Live Coding – Project Implementation – Part 4b
Project Implementation – Part 5a – Handling Mouse Click
Live Coding – Project Implementation – Part 5a
Project Implementation – Part 5b – Challenge Solution and Recap
Live Coding – Project Implementation – Part 5b
Project Implementation – Part 6a – Setting Movement Values
Live Coding – Project Implementation – Part 6a
Project Implementation – Part 6b – Moving the Pet
Live Coding – Project Implementation – Part 6b
Project Implementation – Part 7a – Collision Handling
Live Coding – Project Implementation – Part 7a
Project Implementation – Part 7b – Item Consumption
Live Coding – Project Implementation – Part 7b
Project Implementation – Part 8a – Pet Decay
Live Coding – Project Implementation – Part 8a
Project Implementation – Part 8b – End Game
Live Coding – Project Implementation – Part 8b
Quiz – Virtual Pet
Project Evaluation

Basic knowledge of Python. Basic knowledge of Pygame is an asset but not strictly necessary.

Tools and Frameworks

Python 3.10, Pygame 2.1.2

Why should I learn programming?

We’re living in the age of technology. In every industry, demand for developers is high and continues to rise, yet there’s a shortage of skilled developers. As a result, there’s a huge number of exciting opportunities out there for developers who want to take them.

By mastering the skills taught in these courses, you’ll prepare yourself for roles in a wide range of industries. Whether you want to work in a startup or a Fortune 500 company, you’ll learn in-demand knowledge and techniques that will help you to succeed.

What will I achieve by taking these courses?

You’ll not only learn the most in-demand modern languages, frameworks, and tools, but also how to apply them to your own projects and real-world situations.

Additionally, as our courses are primarily project-based, as you learn you’ll develop a rock-solid professional portfolio that can be used to impress potential employers.

Technology changes quickly. What happens if the content becomes outdated?

We’re committed to providing you with the most up-to-date, relevant content. If one of our courses becomes outdated due to modern practices, we’ll update it. Often, we’ll even remake it entirely using the latest versions of the languages, tools and frameworks.

We’re committed to keeping up with cutting-edge developments in the industry, and turn this knowledge into new courses, which we publish every month.

I’m an absolute beginner who’s never coded before. Can I still do these courses?

Yes, you can! We have entry-level courses on all key topics, and each of our curriculums feature guided learning paths that show you what courses are needed to reach your goals.

Additionally, if you need a little extra help, we have expert mentors on hand to answer any course-related questions that you might have.

What time commitment is needed?

We get that you’re busy, and so we’ve designed our courses to be completely flexible, so you can learn at your own pace and fit your courses around your schedule.

While we recommend that you put in at least a few hours a week (the more hours put in, the more you’ll get out!) there are no time limits or deadlines that you need to worry about.

Will these courses help me to change my career?

Many of our students have been able to successfully change their careers, land their dream job, get promoted, and even start their own businesses… and you have the potential to do the same!

You can also combine your existing skills with your new tech skills, and expand your career, rather than changing it completely.

Our courses have been designed to teach you highly transferable skills, and leave you with strong projects that can be added to your professional portfolio – whatever you want to do, we’ll help to get you there! 🙂

Buy Now For $50

OR access ALL Zenva courses with our subscription.

  • Access all 250+ courses
  • New courses added monthly
  • Cancel anytime
  • Certificates of completion


New members: get 7 days of full access for freeClaim Offer
Don't miss out! Offer ends in