Connect Four game created using Pixi.js and TypeScript.
Do you like it? Show it by giving a ⭐️. 🚀
⏱ How much time did it took me? 3 days (which is also partially visible in commit history). This includes software development as well as creating gamplay concept, prototypes and, finally, game art. I had no practical experience with TypeScript nor Pixi.js prior to this project.
To build the project use webpack and then use some static server to serve the web.
Here is the whole process for those who got lost or those who are just starting out.
-
(Prerequirements) Assuming that you have installed and configured node.js and git on your machine. And that you have cloned this repository.
-
Open your favorite shell and change directory to root at ./connect-four
-
Install all npm modules (listed as dependencies in package.json).
npm install
-
Run webpack to compile.
npm run build
and you should see something like this:
Hash: 2a83d3d1cc776185f2cd Version: webpack 1.14.0 Time: 2473ms Asset Size Chunks Chunk Names ./build/scripts/main.js 1.23 MB 0 [emitted] main + 190 hidden modules
-
Install and use some static web server. E.g. install Superstatic, run superstatic at ./connect-four. Shell output may look something like this
Superstatic started. Visit http://localhost:3474 to view your app.
Visit suggested web address to play the game.
Vector assets can be found in Adobe Illustrator file at readme-resources/Connect4-assets.ai