Git Product home page Git Product logo

opengl_pong's Introduction

OpenGL_Pong

Classical pong game implemented using OpenGL

How to Run

First run the below command to clone the repo or download the zip of this repo

git clone https://github.com/eniac00/OpenGL_Pong.git

Folder Structure

.
├── Components.py
├── demo.gif
├── Game.py
├── main.py
├── Modules
│   ├── CircleModule.py
│   ├── ImportGL.py
│   ├── __init__.py
│   ├── LineModule.py
│   └── RectangleModule.py
├── README.md
├── Sound
│   ├── boink2.wav
│   ├── heehee.mp3
│   ├── hello.mp3
│   ├── paddleBreak.wav
│   └── twang.wav
├── TextUtils.py
└── Utils.py

3 directories, 17 files

Windows:

  • Install the pyopengl and pyopengl-accelerate with OpenGL compatibality. You can use this website to download pyopengl and pyopengl-accelerate to download *.whl file with OpenGL bindings (make sure they match with your systems python version). link: https://www.lfd.uci.edu/~gohlke/pythonlibs/
  • After downloading install the packages
pip install PyOpenGL‑3.1.6‑cp311‑cp311‑win_amd64.whl
pip install PyOpenGL_accelerate‑3.1.6‑cp311‑cp311‑win_amd64.whl 
pip install pygame

('cp311' -> since my python version is 3.11)
  • Run the game with main.py and enjoy.
python main.py

GNU/Linux:

  • Install python packages
pip install pygame pyopengl pyopengl-accelerate
  • Install freeglut3-dev from your distributions package manager
  • Run the game with main.py and enjoy
python main.py

Demo

demo

ScreenShots

1

2

3

4

opengl_pong's People

Contributors

eniac00 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.