GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - StudyTrigger/pygame-tutorial: Python Pygame tutorial code for beginners. Includes all chapters from my video series: Screens, Objects, Bouncing Balls, and Gravity logic. Practice and build your own games!

BranchesTags
Open more actions menu

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
Chapter1_CreatingScreen.py
Chapter1_CreatingScreen.py
 
 
Chapter2_CreatingObject.py
Chapter2_CreatingObject.py
 
 
Chapter3_ChangingColor.py
Chapter3_ChangingColor.py
 
 
Chapter4_BouningBall.py
Chapter4_BouningBall.py
 
 
Chapter5_FallingObjects.py
Chapter5_FallingObjects.py
 
 
README.md
README.md
 
 
requirements.txt
requirements.txt
 
 
test.py
test.py
 
 

Repository files navigation

🎮 Pygame Tutorial Series - Study Trigger

Welcome! This repository contains the source code for my Pygame for Beginners video series. Whether you are a student from my institute or a fellow coder from YouTube/LinkedIn, feel free to use this code to learn and build your own games.

I have structured these files chapter-wise so you can follow the transition from a blank screen to moving objects.


📂 What's Inside?

File Name What you will learn
Chapter1_CreatingScreen.py Setting up the display window and game loop.
Chapter2_CreatingObject.py Drawing basic shapes (Rectangles/Circles) on the screen.
Chapter3_ChangingColor.py Handling RGB values and background updates.
Chapter4_BouncingBall.py Basic physics: Making an object move and bounce off edges.
Chapter5_FallingObjects.py Implementing gravity and reset logic for objects.

🚀 How to Run the Code

  1. Clone or Download: Click the green Code button and select Download ZIP. Extract it on your PC.
  2. Open in VS Code: Open the folder in VS Code.
  3. Install Pygame: You don't need my venv folder. Just open your terminal and type:
    pip install pygame
  4. Run: Open any chapter and press F5 to see the magic!

If you want to understand the logic behind every line of code, watch the step-by-step tutorials here:

Happy Coding! Don't forget to Star ⭐ this repo if it helped you!

About

Python Pygame tutorial code for beginners. Includes all chapters from my video series: Screens, Objects, Bouncing Balls, and Gravity logic. Practice and build your own games!

www.studytrigger.com/

Topics

pygame-applicationpygame-gamespygame-guipython-pygamepython-pygame-librarypython3

Resources

Readme
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.