Git Product home page Git Product logo

pongunlimited's Introduction

PongUnlimited

About

PongUnlimited is a simple version of the well-known arcade game Pong. This is a single player game where the opponent is a never-losing computer. This is more like a practice game for the real Pong.

This game can be played without touching the mouse or the keyboard. OpenCV has been used to detect green colored pen movements in front of the screen through a webcam. The slider then moves based on the pen movement.

There are two modes, normal and neon. Additionally, the scores of the players are stored in a database and is retrieved and displayed on tapping the DISPLAY SCORES button.

In theses two modes, the player can control the sliding bar using the mouse or a green pen (or a pointy green object of hsv values in the range (31,107,135) to (59,2208,255)).

To control the sliding bar using a green pen, all you need to do is point it to your webcam and move it left or right in mid-air. You must bring the cursor to the display area initially by moving the pen left, right, up or down.

Database

The game scores and player names are stored in a MySQL database. The scores are retrieved when DISPLAY SCORES button is called. The game initially creates a database and an appropriate table if not already created, to store the information.

Python Libraries Used

  • opencv
  • tkinter
  • mysql
  • mouse
  • numpy
  • sys
  • datetime
  • pygame
  • time
  • random

Videos and Screenshots

Follow this link to view game screenshots and videos: screenshots and videos

Version

2020

pongunlimited's People

Contributors

shree675 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.