Welcome to the Motion-Controlled 3D Game! This project combines cutting-edge technology with fun gameplay. Using PoseNet for real-time hand tracking and Three.js for 3D rendering, this browser-based game allows you to slice fruits and dodge bombsโall through your webcam. Dive into a world where your hands control the action!
- Real-time Hand Tracking: Experience responsive gameplay as PoseNet detects your hand movements.
- 3D Rendering: Enjoy vibrant graphics powered by Three.js.
- Interactive Gameplay: Slice fruits and avoid bombs using simple gestures.
- Webcam Compatibility: Play directly in your browser without additional software.
- Fun and Educational: Learn about gesture recognition and computer vision while having fun.
This project utilizes a variety of technologies to deliver an engaging experience:
- JavaScript: The core language for game logic and interactivity.
- Three.js: A 3D library that makes WebGL easier to use.
- PoseNet: A machine learning model for real-time hand tracking.
- TensorFlow.js: A library for machine learning in JavaScript.
- WebGL: A web standard for rendering 3D graphics.
To get started, you need to clone the repository and run the game locally. Hereโs how:
-
Clone the repository:
git clone https://github.com/omana1/Motion-controlled-3D-game.git
-
Navigate to the project directory:
cd Motion-controlled-3D-game
-
Open the
index.html
file in your web browser. -
Ensure your webcam is enabled for hand tracking.
In this game, your objective is to slice as many fruits as possible while avoiding bombs. The game tracks your hand movements, allowing you to interact with the game environment.
- Slicing Fruits: Move your hand to slice fruits that appear on the screen.
- Avoiding Bombs: Be careful not to slice the bombs, as they will deduct points.
- Scoring: Each fruit sliced adds to your score. Try to beat your high score!
- Start the Game: Open the game in your browser.
- Enable Webcam: Allow the game to access your webcam.
- Slice Fruits: Use your hands to slice fruits as they appear.
- Avoid Bombs: Keep an eye out for bombs and avoid slicing them.
- End Game: The game ends after a set time or if you hit too many bombs.
- Practice makes perfect. Get familiar with the hand movements.
- Keep your hands within the camera's view for better tracking.
- Stay focused on the screen to react quickly.
We welcome contributions! If you want to help improve the game, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or fix.
- Make your changes and commit them.
- Push to your branch.
- Create a pull request.
Please ensure your code follows the project's coding standards and includes relevant tests.
This project is licensed under the MIT License. See the LICENSE file for details.
You can find the latest releases of the Motion-Controlled 3D Game here. Download the latest version and enjoy the game!
For any questions or feedback, feel free to reach out:
- Email: [email protected]
- GitHub: omana1
Thank you for checking out the Motion-Controlled 3D Game! We hope you enjoy slicing fruits and dodging bombs. Happy gaming!