Small game i put together for a friend to use on a quiz night to have players guess a location on an image based on a question that was asked.
You can try it out on this Demo Website, but be patient as its free and will spin down with inactivity, which can delay requests by 50 seconds or more.
Multidevice version available here.
demo.webm
- Add multiple players with unique colors.
- Upload an image to use as the game board.
- Players take turns guessing the target location.
- Visual feedback on guesses, including distance from the target.
- Ensure you have Node.js installed on your computer. This will also install npm (Node Package Manager) automatically.
- Download the Node.js installer from the official website.
- Run the installer and follow the setup steps.
- Verify the installation by opening Command Prompt and running:
node -v npm -v
- Open a terminal and run:
sudo apt update sudo apt install nodejs npm
- Verify the installation by running:
node -v npm -v
-
Clone the repository:
git clone https://github.com/mschnati/LocationGuessingGame.git cd location-guessing-game
-
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Open your browser: Go to
http://localhost:5173
to access the game locally or use one of the IPs shown in the terminal to access the game with other devices.
-
Add Players:
- Enter a player's name in the input field and click "Add Player."
- Repeat this step for each player you want to add (up to a maximum of 10 players).
-
Upload an Image:
- Click on the file input or drag and drop to upload an image that will serve as the game map.
-
Set the Target Location:
- Once the image is uploaded, click on the image to set the target location.
-
Start the Game:
- Click the "Start Game" button when at least two players have been added and the target location has been set.
-
Choose Player:
- Choose the player on the button that you want to take his turn
- Players will take turns clicking on the image to make their guesses.
- After all players have guessed, click the "Reveal Results" button to see the distances from the target location.
- The game shows the top three closest guesses and their respective distances.
npm run dev
- After starting the local server through this command your IP addresses will be displayed in the terminal
- The Quizmaster opens the webapp on the tablet, sets up the picture and the usernames and then pass the tablet along to the participants