Skip to content

This game is inspired thru my childhood game .I wanted to create the same game but with diffrent logic and make the game 3 dimensional.

License

Notifications You must be signed in to change notification settings

ahmmed-binas/3D-X-and-O-game

Repository files navigation

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

  • 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!

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

  • 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.

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:

  • 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.

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.

About

This game is inspired thru my childhood game .I wanted to create the same game but with diffrent logic and make the game 3 dimensional.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published