This game (2048) was built using React and TypeScript. It used Nextjs for the backend call.
It integrates with the npm package play2earn
and demonstrates how to transform a web2 game into a
web3 game which introduces the betting of Solana.
You can play 2048 To Earn on the Vercel website deployed: You need a Phantom Wallet with Solana (it can be used with devnet)
https://game-2048-web2to3.herokuapp.com/
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.
Thanks to mateuszsokola YouTube Channel for the original code of the 2048 game.
You can find it here: