Shazam Pacman is a decentralized Pacman game built using React and Solidity. The project integrates Web3 authentication through Web3Auth, and users can interact with the game on the blockchain, tracking their scores and retrieving top users via Blockscout.
- Pacman Game: Enjoy a Pacman game experience powered by the
@platzh1rsch/pacman-canvas
package. - Web3 Authentication: Users can log in with popular Web3 wallets using Web3Auth.
- Blockchain Integration: Player scores and enemy positions are stored on the Ethereum blockchain.
- Leaderboard: Retrieve top users and their scores directly from the blockchain.
You can play the game and see it in action at pacman.shahryarbhm.com.
-
Clone the Repository
git clone https://github.com/shahryarbhm/shazam-pacman.git cd shazam-pacman
-
Install Dependencies
Ensure you have Node.js and npm or pnpm installed. Run the following command to install the required dependencies:
pnpm install
- Build for Production
To build the project for production, run:
pnpm build
Log in using your Web3 wallet via Web3Auth. Start a new game by pressing the start game button. Play the Pacman game and try to achieve the highest score. Your score will be recorded on the blockchain, and you can check the leaderboard to see how you rank against other players.