Skip to content

charlie1404/chain-reaction

Repository files navigation

Chain-Reaction Game

Welcome to Chain-Reaction, a JavaScript game. This game is built using GSAP (GreenSock Animation Platform) and Three.js.

How to Play

The objective of the game is to create a chain reaction by placing particles on the grid. When a particle is placed, it emits energy, which affects neighboring particles. If a particle reaches its energy threshold, it will explode and release additional energy, potentially triggering a chain reaction.

To play the game:

  1. Click or tap on an empty cell to place a atom.
  2. Once critial mass is reached molecule will explode.
  3. Try to create a chain reaction by strategically placing atoms.
  4. The game ends when no more other players are left.

Controls

  • Click or tap: Place a particle on an empty cell.

Features

  • Simple yet addictive gameplay.
  • Realistic particle interactions using Three.js.
  • Smooth animations powered by GSAP.
  • Dynamic grid system for endless possibilities.
  • Responsive design for play on various devices.

Installation

To run the game locally, follow these steps:

  1. Clone this repository to your local machine:
git clone https://github.com/charlie1404/chain-reaction.git
  1. Run the npm install in your terminal.

  2. Run npx vite --host 0.0.0.0 in your terminal.

  3. Open shown url in browser!

Credits

  • GSAP (GreenSock Animation Platform): For smooth animations.
  • Three.js: For realistic 3D graphics.

License

This project is licensed under the GNU GPL v3 License - see the LICENSE file for details.

About

This game was created as a fun project. Feel free to contribute to the project by submitting bug reports, feature requests, or pull requests.

Enjoy playing Chain-Reaction! 🎮

TODO:

  • Multiplayer mode (play with friends over internet)
  • Play with bot