Crypto Pet Game

Create and nurture your own colorful digital pets on the blockchain with CryptoPet! Feed, play, and interact with your pets using MyToken, all while enjoying a seamless experience on the Arbitrum network.

ETHGlobal BrusselsShipped July 12, 2024#gaming
Repo
Crypto Pet Game banner

About

CryptoPet is a decentralized application (Dapp) that allows users to create and nurture digital pets on the blockchain. Users can name their pets, feed them, and play with them using MyToken (MTK). Each pet is uniquely generated with vibrant colors and patterns, making every pet distinct and visually appealing. The Dapp leverages the fast and cost-effective Arbitrum network to provide a seamless user experience. Whether you're a blockchain enthusiast or just love digital pets, CryptoPet offers an engaging and interactive way to explore the world of decentralized applications.

How it's made

CryptoPet is built using a combination of modern blockchain and web development technologies. The smart contracts are written in Solidity and deployed on the Arbitrum testnet, ensuring low transaction fees and fast confirmations. The frontend is developed with React, leveraging Web3.js for blockchain interactions.

The project uses Hardhat for smart contract development, testing, and deployment. We employed OpenZeppelin libraries for secure and reliable contract functionality, including ERC20 for MyToken. The pets' unique appearances are generated using a custom algorithm that assigns vibrant colors and patterns to each pet.

To facilitate interactions, the Dapp includes functions for creating pets, feeding them, and playing with them, all requiring MyToken transactions. We integrated MetaMask to handle user authentication and transactions seamlessly.

Notably, we implemented a fastForwardTime function in the smart contract, allowing users to bypass waiting periods for feeding and playing with their pets during testing. This feature showcases the flexibility of smart contracts and enhances the user experience during development and testing phases.

By using the Arbitrum network, we significantly reduced transaction costs and improved the Dapp's responsiveness, making CryptoPet an enjoyable and accessible experience for all users.

From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.

MyETHFarm

Think 'FarmVille,' but for crypto nerds with an eye for digital livestock. Build your virtual farm by 'mining' adorable animals, rare crops, and shiny tools – all on the Ethereum blockchain. Warning: May cause an irrational fear of rug-pulling cows!

PetFi

PetFi is a revolutionary decentralized platform that combines blockchain, NFTs, and gaming to create an immersive virtual pet ecosystem. Players can adopt, train, trade, and battle unique NFT pets.

Linkagotchi

Blockchain-powered virtual pets meet nostalgia! Create and evolve unique NFT creatures. With Chainlink VRF for true randomness, on-chain ranking, and a retro UI, it's a Web3 twist on the classic Tamagotchi. Nurture your digital companion anywhere!