Skip to content

zurkon/playstack

Repository files navigation

A Dead Simple clone of STACK game by Ketchapp built with React, Three.js and cannon.js

Description

In Stack, the blocks continue to move in and you just click to place them on your pile, but you must be careful.

If the block hangs over the edge of the stack, a piece will break off. This will make subsequent blocks smaller and more difficult to place.

You receive a point for each block you stack.

This project was made following this tutorial from Youtube channel Hunor Márton Borbély.

Libraries

This project was made using:

  • React - Library for building user interfaces.
  • Three.js - A JavaScript 3D Library.
  • cannon.js - A lightweight 3D physics engine written in JavaScript.

Setup

To run this project, install the dependencies:

npm install

Then run the dev enviroment:

npm run dev

Available Scripts

npm run dev

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.