Skip to content

Xavilien/loner-coder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LonerCoder

Your favourite retro game, played by your face against your friend. Sounds fun?

This is a remake of the ATARI game pong with two additional features:

  1. The ability to control the paddle with your face
  2. The ability to play with your friend on another computer to fight for the title of pong master

How it was made

We used python, OpenCV and the almighty Tensorflow Object Detection API to track your face. For the multiplayer functionality, we used a socketserver with HTTP requests. This allows for concurrency so that you can play with your friends!

How to compile to an app

https://kivy.org/docs/guide/packaging-osx.html?highlight=package Refer to the section on using PyInstaller without Homebrew Basically,

  1. Create a spec file
  2. Git clone pyinstaller into the directory
  3. run pyinstaller/pyinstaller.py specfile.spec

Thing to take note of when compiling

  1. Clone the Kivy virtualenv to use cos for some reason it does not work when I create a new env by scratch
  2. Run the touchtracer executable in dist/FolderwithAppName so that you can see the outputs and any errors
  3. Make the multiplayer.kv the same place as the touchtracer executable as this is what will be run
  4. Logs can be found in /Users/xavilien/.kivy/logs/

Known issues

  1. Resolution when running it as an app is a bit off - (set resolution?)
  2. The programme is very slow - (remove unecessary tensorflow object detection api code?)
  3. The app cannot be quit properly and will hang and has to be force closed - (create a cleanup app furction)

Resources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages