Our Place is a collaborative pixel art web application inspired by R/Place. Users join a shared canvas, pick a color, and place pixels on a grid. A cooldown period ensures fair collaboration.
- Real-Time Collaboration: Updates to the canvas are broadcast to all connected users instantly.
- Customizable Colors: Users choose from a color palette to place pixels.
- Cooldown Mechanism: Users wait briefly before placing the next pixel.
- Dynamic Player List: Displays a live list of connected players.
- Frontend: HTML, CSS, JavaScript
- Backend: Node.js with WebSocket for real-time updates
- Clone the Repository:
git clone https://github.com/IthamarBaron/OurSpace/tree/main cd our-space
- Install Dependencies:
npm install ws
- Run the Server:
node Server.js
The server will run on ws://localhost:8080 by default.
4. Set the IP:
Set the IP variable in 'Server.js', 'methods.js' and 'ClientMethods.js'.
5. Access the Application:
Open welcomePage.html in your browser, enter your name, and start placing pixels.
- Welcome Page: Users enter their name to join the game. Duplicate names are adjusted for uniqueness.
- Pixel Placement: Users pick a color and place pixels on the grid. A cooldown prevents spamming.
- Real-Time Updates: WebSockets ensure everyone sees the latest canvas updates instantly.
Inspired by R/Place and built to have some fun with Node.js and web development in general.