Tamagosui is a virtual pet simulation game built on the Sui blockchain. Players can adopt a pet, feed it, play with it, let it work for coins, and put it to sleep. The game also features an accessory system where players can mint and equip items for their pets.
tamagosui_contract/
- Move smart contract code for the Tamagosui gametamagosui-ui/
- React frontend application for interacting with the game
- Pet Adoption: Players can adopt a new virtual pet by giving it a name
- Pet Care System:
- Feed your pet to increase hunger and gain experience
- Play with your pet to increase happiness and gain experience
- Let your pet work to earn coins and gain experience
- Put your pet to sleep to restore energy over time
- Leveling System: Pets can level up when they accumulate enough experience points
- Accessory System:
- Mint accessories (like cool glasses)
- Equip accessories on pets
- Unequip accessories from pets
- PTB Combo Actions: Execute multiple actions in a single transaction for better efficiency and UX
- Morning Routine (Wake + Feed + Play)
- Evening Care (Work + Feed + Sleep)
- Full Care (Feed + Play + Work + Level Up Check)
- Level Up Party (Level Up Check)
- Smart Contract: Move language on Sui blockchain
- Frontend: React + TypeScript + Vite
- Wallet Integration: Sui dApp Kit
- State Management: React Query
- UI Components: Tailwind CSS + shadcn/ui
-
Smart Contract:
- Navigate to
tamagosui_contract/
directory - Build with
sui move build
- Deploy with
sui client publish --gas-budget 1000000000
- Navigate to
-
Frontend Application:
- Navigate to
tamagosui-ui/
directory - Install dependencies with
npm install
- Start development server with
npm run dev
- Navigate to
The UI requires the following environment variables:
VITE_PACKAGE_ID
- The package ID of the deployed contractVITE_NETWORK
- The Sui network to connect to (e.g., "testnet")