A real-time multiplayer drawing and guessing game inspired by skribbl.io.
Scribble Clone is a multiplayer web application where players can create or join game rooms, take turns drawing selected words, and guess what other players are drawing. Players earn points for correct guesses, and the player with the highest score wins.
Live Application: https://scribble-clone-86de.onrender.com
- Create Room: Create a multiplayer game room with configurable settings.
- Join Room: Join an existing room using a room code.
- Multiplayer Gameplay: Play with multiple players simultaneously.
- Interactive Drawing Canvas: Draw using different colors and brush sizes.
- Turn-Based Gameplay: Players take turns selecting words and drawing.
- Real-Time Drawing Synchronization: Drawing strokes are synchronized across all connected players.
- Word Selection: Drawer selects a word from the available options.
- Guessing System: Players submit their guesses through chat.
- Scoring System: Earn points for guessing the correct word.
- Leaderboard: Track player scores throughout the game.
- Game Timer: Time-based drawing rounds.
- Room Management: Manage players and game sessions.
- React.js
- JavaScript
- HTML5
- CSS3
- HTML5 Canvas API
- Node.js
- Express.js
- Socket.IO
- WebSockets
- Event-based communication
- Real-time data synchronization
- Classes and Objects
- Encapsulation
- Modular Code Structure
- Separation of Responsibilities
- Reusable and maintainable code
- Client-Server Architecture
- Event-Driven Programming
- Asynchronous Programming
- Room and Game State Management
- Turn-Based Game Logic
- Real-Time Communication
- Git
- GitHub
- npm
- VS Code
- Render
scribble-clone/
│
├── backend/
│ ├── package.json
│ └── ...
│
├── frontend/
│ ├── package.json
│ ├── src/
│ └── ...
│
├── .env.example
├── .gitignore
├── package.json
├── package-lock.json
└── README.md
The application follows a client-server architecture.
- Provides the user interface.
- Handles the drawing canvas and player interactions.
- Displays game rooms, chat, scores, and leaderboard.
- Handles room creation and joining.
- Manages game flow, player turns, and scoring.
- Processes guesses and game events.
- Synchronizes drawing strokes between players.
- Handles real-time chat and guessing.
- Broadcasts game state and player updates.
- Maintains communication between connected clients and the server.
- A player creates a game room.
- Other players join using the room code.
- The host starts the game.
- The drawer receives word options and selects a word.
- The drawer draws on the canvas.
- Other players see the drawing in real time.
- Players submit their guesses through chat.
- Correct guesses earn points.
- Rounds continue with different players taking turns.
- The final leaderboard displays the winner.
git clone https://github.com/AlkaGupta680/scribble-clone.gitcd scribble-clonecd backend
npm installOpen another terminal:
cd frontend
npm installCreate a .env file with the required environment variables.
Example:
PORT=4000
FRONTEND_ORIGIN=http://localhost:4000
ROOM_IDLE_TIMEOUT_MS=1800000Configure the values according to your local development environment.
Start the backend:
cd backend
npm run devStart the frontend in another terminal:
cd frontend
npm run devNote: Use the scripts configured in the respective package.json files.
The application is deployed using Render.
- Platform: Render
- Repository: GitHub Repository
- Live Application: Add your Render URL here.
Alka Gupta
- GitHub: AlkaGupta680
If you like this project, consider giving the repository a star!



