3D-X-and-O-game

XO-Game-Three.js

Capture cap2 3

Introduction

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!

Features

How to Play

  1. Open the game in your web browser.
  2. Click on a square to place your X or O.
  3. Aim to get three of your symbols in a row horizontally, vertically, or diagonally before your opponent.
  4. Immerse yourself in the 3D experience and enjoy the lively background music as you play!
  5. 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. 2 setings Screenshot 2024-04-08 205604 Screenshot 2024-04-08 205547 Screenshot 2024-04-08 205410

    Technologies Used

    • JavaScript (mainly)
    • Three.js
    • Matter.js
    • HTML/CSS
    • Web Audio API (for music)
    • Local storage for saving the game and theme…

Explanation of Technologies

Installation

To run the game locally:

  1. Clone this repository to your local machine.
  2. Open the index.html file in your web browser.
  3. Check the console for any errors (unlikely to occur) to ensure smooth gameplay.
  4. Explore various color themes available or create your own to personalize the gaming experience.

Credits

This project was created by Ahmmed Binas as a fun exploration of game development using Three.js.

Special thanks to:

Conclusion

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.

License

This project is licensed under the MIT License.