An engaging and interactive roulette game built with HTML, CSS, and JavaScript. Players can enter their names, spin the virtual wheel, and let the arrow decide the winner! Perfect for group games, parties, or decision-making.
[Live Preview] (https://chriskript.github.io/virtual-roulette-game/) * 🎯 Interactive Gameplay: Spin a visually captivating roulette wheel with custom player names. * 🖌️ Customizable UI: Modify colors, sizes, and text easily. * 🎵 Sound Effects: Adds an immersive touch (with mute/unmute functionality). * 💻 Responsive Design: Works seamlessly on desktop and mobile devices.- Clone the repository:
git clone https://github.com/chriskript/virtual-roulette.git
- Navigate to the project directory:
cd virtual-roulette
- Open the index.html file in your browser to start the game:
open index.html
- HTML: For structuring the game interface.
- CSS: For styling the game and making it visually appealing.
- JavaScript: For logic, interactivity, and animations.
Want to tweak the game to suit your style? Here's how:
- Colors: Update the slice colors in the
drawGameCircle
function insideapp.js
. - Sound: Replace
spin.mp3
with your preferred audio file. - Size: Modify the canvas dimensions in
style.css
or adjust theresizeCanvas
function inapp.js
. - Player Input: Add or remove validation checks in the
startBtn
click event handler.
Try these tweaks to make the game unique:
- Add animations or gradient effects to the wheel.
- Increase the number of slices for larger groups.
- Experiment with the spin speed by adjusting the spinArrow function.
This project is licensed under the MIT License. Feel free to use and modify it for personal or commercial projects.