This project is a simple web page featuring two bowls with a random number of pebbles. Users can drag and drop pebbles between the bowls, and the counts of pebbles in each bowl are updated dynamically. Additionally, it integrates MetaMask for Web3 wallet authentication and displays the user's wallets address upon successful connection.
- Randomly generated number of pebbles in each bowl at the start.
- Drag-and-drop functionality to move pebbles between bowls.
- Dynamic count updates as pebbles are moved.
- Smooth animations for dragging pebbles.
- MetaMask integration for Web3 wallet connection.
- Displays the user's wallet address after connection.
See https://pebbles-game.zmoki.xyz/
-
Clone the repository:
git clone [email protected]:Zmoki/pebbles-game.git
-
Navigate to the project directory:
cd pebbles-game
-
Install dependencies:
npm i
-
Run application
npm run start
-
Open
http://localhost:1313
in your web browser to view the application. -
Edit source code in the
src
folder to see changes.
- The app uses Parcel.js as a builder.
- Entry point is the
src/index.html
file written in HTML. - Styles in the
src/index.css
written in classic CSS. - Scripts in the
src/*.ts
files written in TypeScript.
- Run build
npm run build
- See production files in the
dist
folder.
GitHub repo integrated with Cloudflare. Every commit to the
main
branch will trigger redeploy of https://pebbles-game.zmoki.xyz/
- Zarema Khalilova
✨✨✨