Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🎮 Python OpenGL 2D & 3D Games Collection

A collection of interactive 2D and 3D games developed using Python and OpenGL. This project demonstrates core computer graphics concepts including rendering, transformations, animation, user interaction, and basic game logic.


📌 Overview

This repository contains multiple OpenGL-based projects created as part of academic coursework and practice. It showcases both 2D and 3D implementations, highlighting fundamental concepts of computer graphics and real-time rendering.


🛠️ Tech Stack

  • Language: Python
  • Graphics Library: PyOpenGL
  • Toolkit: GLUT

🎮 Projects Included

🔹 2D Games

💎 Diamond Catcher

  • Catch falling objects in real-time
  • Score tracking system
  • Increasing difficulty over time

🎨 Drawing Tool

  • Interactive drawing using keyboard/mouse input
  • Demonstrates event handling in OpenGL

👋 Hello OpenGL

  • Basic OpenGL window setup
  • Primitive rendering (shapes, coordinates)

🔹 3D Games

🚗 Car Racing Game (3D)

  • Player-controlled car movement
  • Obstacle avoidance
  • Real-time 3D perspective rendering

🌧️ Rain Simulation (3D)

  • Animated rainfall with depth perception
  • Continuous rendering loop

🎱 Pool Shooting Game (3D)

  • Direction-based shooting mechanics
  • Basic collision handling
  • Simulated physics behavior

✨ Key Features

  • Real-time rendering and animation
  • 2D and 3D scene creation
  • User interaction via keyboard/mouse
  • Basic physics (movement & collision)
  • Modular game logic implementation

▶️ How to Run

1. Install dependencies

python -m pip install PyOpenGL PyOpenGL_accelerate

About

Collection of 2D and 3D games built with Python and OpenGL, including car racing, shooting, rain simulation, and pool shooting.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages