Guide · 2026-03-05

How to Build a Drawing Guessing Game with Lovable

Build a drawing and guessing game with canvas, color picker, timer, and two-player turns using Lovable. No coding needed.

What You'll Build

    A drawing guessing game with:
  • A full drawing canvas with color picker and brush sizes
  • Random word prompts for the drawer to illustrate
  • A countdown timer for each drawing round
  • A reveal-the-answer screen after time runs out
  • Turn-based gameplay for 2 players on the same device
  • Score tracking across multiple rounds

Tool: Lovable (no coding needed) Difficulty: Intermediate Time: ~25 minutes Coding required: None

Drawing guessing games are a blast to play with friends. One player gets a secret word and has to draw it on a canvas while the other player tries to guess what it is before the timer runs out. You'll build a full version with a drawing toolbar, word categories, scoring, and smooth turn switching — all playable on one device.

Vibe coding makes this kind of project surprisingly fast. The drawing canvas, color palette, and game state management would normally require a lot of JavaScript knowledge. With Lovable, you describe what you want and the AI handles the canvas API, event handlers, and game logic. You just refine the experience round by round.

What You Need

  • A free account on Lovable
  • ~25 minutes of free time
  • No coding experience needed
  • The Founding Prompt

    Go to lovable.dev and start a new project. Paste this prompt:

    text
    Build a two-player drawing and guessing game that runs in the browser on one device.
    
    Game flow: Player 1 sees a secret word and draws it on a canvas. Player 2 watches and tries to guess. After the round, players switch roles.
    
    Drawing canvas: Full-width canvas element with these tools in a toolbar above it:
    - Color picker with 12 preset colors (black, red, blue, green, yellow, orange, purple, pink, brown, gray, white, cyan) plus a custom color input
    - 3 brush sizes (small, medium, large) shown as circles
    - An eraser tool
    - A clear canvas button
    - An undo button (undo last stroke)
    
    Word system: Include a list of at least 60 words across categories: Animals, Food, Objects, Actions, Places. At the start of each round, show the drawer 3 random words and let them pick one.
    
    Timer: Each round has a 60-second countdown timer displayed prominently. When time runs out, reveal the word and let the guesser mark whether they got it right or not.
    
    Scoring: 10 points for a correct guess. Track scores for both Player 1 and Player 2 across rounds. Play 10 rounds total (5 per player), then show a final scoreboard.
    
    UI: Bright, playful design with rounded corners and a fun sans-serif font. Show the current round number, whose turn it is to draw, and both player scores at the top. The secret word should only be visible to the drawer (show it above the canvas with a "Don't let them see!" label). Include a "Show Word" screen between turns so the non-drawer can look away.
    
    Make it mobile friendly with touch drawing support.

    Click Generate and wait for Lovable to build your game.

    Step 1: Test the Drawing Canvas

    Open the preview and try drawing on the canvas. Test each brush size, switch between colors, and use the eraser. Try the undo and clear buttons. Make sure strokes are smooth and responsive — if drawing feels laggy, you'll fix that in a later step.

    Step 2: Improve the Word Selection System

    The word picker should feel fun and give the drawer a real choice. Expand the word list and improve the selection screen.

    text
    Expand the word list to 100 words with at least 20 per category. Add two new categories: "Movies" and "Sports". On the word selection screen, show the 3 word options as large cards with the category label above each word. Add a "Shuffle" button that re-rolls the 3 options once per round. After picking a word, animate the cards away and transition smoothly to the drawing screen.

    Step 3: Add a Guessing Interface

    Instead of just marking right or wrong at the end, let the guesser type guesses during the round for a more interactive experience.

    text
    Add a guess input field below the canvas for Player 2. The guesser can type guesses and press Enter to submit. If the guess matches the secret word (case-insensitive), immediately show a "Correct!" celebration with confetti animation and award points. Award bonus points for faster guesses: 10 points if guessed in the first 20 seconds, 7 points in the next 20 seconds, 5 points in the last 20 seconds. Show each wrong guess in a list below the input so the guesser doesn't repeat themselves.

    Step 4: Polish the Turn Transition

    Switching between players needs to feel smooth and prevent the guesser from seeing the word early.

    text
    Between turns, show a full-screen handoff screen that says "Pass the device to [Player Name]". Require the new drawer to tap a "I'm Ready" button before showing the word selection. Add a 3-second countdown ("3... 2... 1... Draw!") before the timer starts. Add a subtle screen flash animation on the transition. Let players enter their names at the start of the game instead of just "Player 1" and "Player 2".

    Step 5: Add Sound Effects

    Sound makes the game more exciting and gives players audio feedback for key moments.

    text
    Add sound effects to the game. Play a pop sound when selecting a color or brush size. Play a tick sound every second during the last 10 seconds of the timer. Play a buzzer sound when time runs out. Play a cheerful ding when the guesser gets the answer right. Play a short fanfare on the final scoreboard screen. Add a mute/unmute button in the top-right corner. Use the Web Audio API to generate simple tones instead of loading audio files.

    Step 6: Make It Fully Mobile Friendly

    The game needs to work perfectly on phones since two people will likely share a phone to play.

    text
    Optimize the game for mobile devices. The canvas should fill the full width of the screen on mobile. The color picker should become a horizontally scrollable strip. Brush size buttons should be at least 44px tap targets. The guess input should stay visible above the keyboard when typing. Lock the screen to portrait orientation if possible. Add touch drawing support with pressure sensitivity if available. Make the toolbar sticky at the top so it doesn't scroll away.

    Step 7: Deploy and Share

    Click the Publish button in Lovable to deploy your game. You'll get a shareable URL instantly. Send it to a friend, open it on any device, and start playing — no app install needed.

    Level Up Your Game

    Try these follow-up prompts to make your game even better:

    Add difficulty levels:

    text
    Add a difficulty setting at the start: Easy (simple words like "cat" and "house", 90 second timer), Medium (default, 60 seconds), and Hard (complex words like "electricity" and "democracy", 45 seconds). Show the difficulty level on the scoreboard.

    Add a timer:

    text
    Add a visual timer bar that shrinks across the top of the canvas as time runs out. Change the bar color from green to yellow at 30 seconds, and yellow to red at 10 seconds. Add a pulsing animation to the timer when under 10 seconds.

    Add animations:

    text
    Add a drawing sparkle trail that follows the brush for 200ms as the player draws. Add a bounce animation when a correct guess is submitted. Add a shake animation on wrong guesses. Animate the score counter incrementing with a rolling number effect.

    Add high score saving:

    text
    Save the top 5 game results to localStorage with player names, scores, and date. Show a "Hall of Fame" button on the start screen that displays past results in a leaderboard table. Highlight if the current game beats a previous record.

    Add drawing hints:

    text
    After 30 seconds, automatically reveal the first letter of the word as a hint below the canvas. After 45 seconds, reveal the word length. Show hints with a lightbulb icon and a subtle glow animation. Deduct 2 points from the guess score for each hint that was shown.

    Want persistent high scores? Follow our leaderboard guide to connect your game to a database.

    Common Errors

    Blank screen after prompt If Lovable generates a blank screen, add to your prompt: "Make sure the game renders immediately on page load with no user setup required."

    Game not responding to keyboard Add to your prompt: "Ensure keyboard event listeners are attached to the document, not a specific element. Auto-focus the game container on load."

    Mobile touch controls not working Add to your prompt: "Add touch event handlers for mobile. Include visible on-screen buttons for all controls on screens under 768px wide."

    Related Guides

  • Add a Leaderboard to Your Game — save high scores to a database
  • Build Simon Says with Lovable — another fun two-player Lovable game
  • Build Hangman with Bolt — a word-based game with a different twist
  • Recommended Stack

    Services we recommend for deploying your vibe coded app