This project is a Progressive Web App (PWA) that allows users to tap a button to fill a progress bar. As the progress increases, the app sends messages using the OSC (Open Sound Control) protocol via UDP to control visual effects in MadMapper, such as LED strips.
- Progressive Web App: Can be installed on mobile devices and works offline.
- Real-time Interaction: Uses WebSocket to send tap events to a Node.js server.
- OSC Communication: The server sends OSC messages to MadMapper to trigger visual feedback.
- Simple UI: Displays a logo and a progress bar that fills up as the user taps.
- Frontend: HTML, CSS, JavaScript
- Backend: Node.js with Express and WebSocket (
wslibrary) - OSC Library:
node-osc - Visual Feedback: MadMapper software
- The user opens the PWA and taps the button.
- Each tap increases the progress bar.
- The app sends a message via WebSocket to the Node.js server.
- The server receives the message and sends an OSC message to MadMapper.
- MadMapper receives the OSC message and updates the visual effects accordingly.
-
Clone the Repository:
git clone https://github.com/yourusername/tap-game-pwa.git cd tap-game-pwa -
Install Dependencies:
npm install
-
Generate SSL Certificates (for HTTPS):
- Use tools like
mkcertto createcert.pemandkey.pemfiles. - Place them in the project root directory.
- Use tools like
-
Start the Server:
node server.js
-
Access the App:
- Open your browser and navigate to
https://localhost:3000.
- Open your browser and navigate to
-
Configure MadMapper:
- Set MadMapper to listen for OSC messages on port
8880. - Map the
/progressOSC address to control your desired visual effect.
- Set MadMapper to listen for OSC messages on port
- Ensure that MadMapper and the Node.js server are on the same network.
- The app is designed for demonstration purposes and may require additional features for production use.
This project is licensed under the MIT License.
Feel free to customize this README.md to better fit your project's specific details or to add more information as needed.