# Open Source Eyebrow Pong

This open source iteration of eyebrow pong allows two users to play pong against one another on one of the players screens. It requires that player to facetime the person to see what is going on, (not ideal! but) this is an example of how to incorporate internet of things through the use shiftr.io within Processing.

**Setup**

1. Download and Install FaceOSC <https://github.com/kylemcdonald/ofxFaceTracker/releases>
2. On Mac, to override your security settings and open the app, find FaceOSC via Finder (and not launchpad) control-click the app icon, then choose Open from the shortcut menu.
3. Download & Install Processing: <https://processing.org/download/>
4. Open Processing,
5. Navigate to 'Sketch>Import Library> Add Library'.
6. Search for 'MQTT'.
7. Select 'MQTT' library (Author 'Joel Gaehwiler') and click Install.
8. Search for 'P5'.
9. Select Library 'ControlP5' (Author 'Andreas Schlegel') and click Install.
10. Select Library 'oscP5' (Author 'Adreas Schlegel') and click Install.

**Control - Player 1**

* Open FaceOSC
* Copy & Paste the Player 1 sketch [here](https://github.com/josephlyons/eyebrow-pong/blob/master/Eyebrow_Pong_1Screen_Facetime/Eyebrow_Pong_1Screen_Facetime.pde) into Processing.
* Video Call Player 2 on your phone or seperate device from one running programs (not on your laptop)!
* Click Run (play button).
* You are player 1 (right), use eyebrows to control pong.

**Control - Player 2**

* Open FaceOSC
* Copy & Paste the Player 2 sketch [here](https://github.com/josephlyons/eyebrow-pong/blob/master/player2_eyebrow_send/player2_eyebrow_send.pde) into Processing.
* Video Call Player 1 on your phone or seperate device from one running programs (not on your laptop)!
* Click Run (play button).
* You are player 2 (left), use eyebrows to control pong.

Credit for the original pong game on processing by instructables user [eprittinen](https://www.instructables.com/member/eprittinen/).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://josephlyons.gitbook.io/face-control-digital-toolkit/digital-examples/open-source-eyebrow-pong.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
