Skip to content

vanou-suerte/chess-threejs

Repository files navigation

♟️ Three js - Chess Project ♟️

Basic THREE.js project using Fivos Doganis vite template.

⚙️ Installation ⚙️

Install Node.js

  • Clone or download repo
  • run npm install : fetches and install all dependencies
  • npm run dev : launches a server and opens your browser in https://localhost:5173 by default

🕹️ Game mechanics 🕹️

  1. Click on the chess piece you wish to move.

  2. After selecting your piece, click on the desired destination. This can either be:

    • An empty square to move your piece there.
    • An opponent's piece to capture it and move your piece to that square.
  3. For now, all the pieces can be moved wherever you want.

  4. Enjoy the music!

🚧 Work in Progress 🚧

  • Menu to choose:

    • nb of players
    • your color
  • Turn by turn logic

  • fix piece movements

  • Display text warning within the scene

    • Not a correct move
    • Not your piece sir

📑 Credits 📑

GLB Model

  • Knight chess piece by Poly by Google [CC-BY] via Poly Pizza
  • Bishop by Poly by Google [CC-BY] via Poly Pizza
  • Pawn by Poly by Google [CC-BY] via Poly Pizza
  • Rook by Poly by Google [CC-BY] via Poly Pizza
  • Queen by Poly by Google [CC-BY] via Poly Pizza
  • King by Poly by Google [CC-BY] via Poly Pizza

Music and Sound effects

  • White Noise from Silent Hill 2
  • Hit punch sound effect CC-BY

Releases

Packages

Used by

Contributors

Languages

Generated from fdoganis/three_vite