Remember the classic tic-tac-toe (X and O) game you used to play when you were bored? Now, imagine taking that timeless game to a whole new level of excitement with Three.js! This ! project brings the X and O game to life in JavaScript using Three.js, providing a 3D experience, realistic physics, and even background music. Get ready to enjoy a modern twist on a childhood favorite!
- X and O game implemented in JavaScript.
- Built using Three.js for immersive 3D graphics.
- Realistic physics interactions for an engaging gameplay experience.
- Background music to enhance enjoyment.
- Save game functionality.
- Theme customization.
- Volume adjustment.
- And more surprising fun elements!
- Open the game in your web browser.
- Click on a square to place your X or O.
- Aim to get three of your symbols in a row horizontally, vertically, or diagonally before your opponent.
- Immerse yourself in the 3D experience and enjoy the lively background music as you play!
- Customize the gameplay conditions to your preference, whether you want to play one square at a time or compete in a fast-paced match with six squares simultaneously to determine the ultimate X and O champion.
- JavaScript (mainly)
- Three.js
- Matter.js
- HTML/CSS
- Web Audio API (for music)
- Local storage for saving the game and theme...
- JavaScript: The primary language used for game logic and interaction.
- Three.js: Utilized for creating and rendering the 3D scene, including objects and animations.
- Matter.js: Employed for simulating physics interactions, such as gravity and collision detection.
- HTML/CSS: Used for structuring the web page and styling elements.
- Web Audio API: Integrated for background music and sound effects.
- Local Storage: Implemented to save the game state and theme preferences for future sessions.
To run the game locally:
- Clone this repository to your local machine.
- Open the
index.html
file in your web browser. - Check the console for any errors (unlikely to occur) to ensure smooth gameplay.
- Explore various color themes available or create your own to personalize the gaming experience.
This project was created by Ahmmed Binas as a fun exploration of game development using Three.js.
Special thanks to:
- The creators of Three.js for providing an exceptional library for 3D graphics in the browser.
- The background music used in the game for adding an extra layer of enjoyment.
The game is finally completed with all the updates and enhancements. It's now ready to be played and enjoyed! Thank you for checking it out.
This project is licensed under the MIT License.