Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🏓 Pong Pod

Multiplayer Pong running entirely in the browser — no backend needed — powered by BrowserPod.

Quick Start

1. Add your API key

Edit .env and replace your_api_key_here with your real key:

VITE_BP_APIKEY=your_actual_key

Get a free key at: https://console.browserpod.io

2. Install & run

npm install
npm run dev

Open http://localhost:5173 in your browser.

3. Play

  • Single Player — play against the AI right away
  • Multiplayer — click "Multiplayer", copy the portal URL that appears, and send it to a friend. They open it and join as Player 2 instantly.

Controls

Move your mouse up/down over the canvas to control your paddle.

Project Structure

pong-pod/
├── src/main.js              ← boots BrowserPod, copies files, starts Node server
├── index.html               ← outer shell (iframe + terminal)
├── public/project/
│   ├── server.js            ← Node.js HTTP + WebSocket game server (runs in pod)
│   ├── index.html           ← game UI (served from inside pod)
│   ├── game.js              ← canvas rendering + WebSocket client
│   └── package.json         ← inner project deps (ws only)
├── vite.config.js           ← COEP/COOP headers required by BrowserPod
└── .env                     ← your API key goes here

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages