Skip to content

NRAfnan/Computer-Graphics-with-PyOpenGL

Repository files navigation

Computer-Graphics-with-PyOpenGL

Small OpenGL demos written in Python, using GLUT for windowing and input. Unzip OpenGL.zip into the repository root so shared assets (if any) are alongside the scripts.

Prerequisites

  • Python 3.10+ recommended

Quick Start

  1. Unzip OpenGL.zip into this folder.
  2. Run any script, e.g. python "Bouncing Box.py".

Projects

  • Bouncing Box — Minimal bouncing-point playground with mouse-created points, adjustable speed, freeze toggle, and optional blink overlay.
  • Catch the Diamonds — 2D catcher game: move the catcher, drop and collect diamonds, pause/play UI on the top bar, and simple collision scoring.
  • Bullet Frenzy 3D — Third-person/first-person shooter prototype with a player, enemies, bullets, camera modes, and optional cheat/auto-aim helper.
  • House Scene with Day and Night Cycle — Static 2D house scene featuring ground/trees/sky, day-night color transitions, and optional rainfall animation.

Running

  • Use a standard Python interpreter (no notebooks required).
  • Run scripts from this directory so relative resources from OpenGL.zip resolve correctly.

Controls (high level)

  • Bouncing Box: right-click to add points; left-click toggles blink; up/down arrows change speed; space toggles freeze.
  • Other demos: controls are indicated in code comments (common patterns: arrow keys/mouse for movement or UI icons for pause/exit).

Happy hacking with PyOpenGL!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages