Skip to content

knighttrader-id/tamagosui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Tamagosui - Virtual Pet Game on Sui Blockchain

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.

Project Structure

  • tamagosui_contract/ - Move smart contract code for the Tamagosui game
  • tamagosui-ui/ - React frontend application for interacting with the game

Game Features

  1. Pet Adoption: Players can adopt a new virtual pet by giving it a name
  2. 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
  3. Leveling System: Pets can level up when they accumulate enough experience points
  4. Accessory System:
    • Mint accessories (like cool glasses)
    • Equip accessories on pets
    • Unequip accessories from pets
  5. 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)

Technology Stack

  • 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

Getting Started

  1. Smart Contract:

    • Navigate to tamagosui_contract/ directory
    • Build with sui move build
    • Deploy with sui client publish --gas-budget 1000000000
  2. Frontend Application:

    • Navigate to tamagosui-ui/ directory
    • Install dependencies with npm install
    • Start development server with npm run dev

Environment Variables

The UI requires the following environment variables:

  • VITE_PACKAGE_ID - The package ID of the deployed contract
  • VITE_NETWORK - The Sui network to connect to (e.g., "testnet")

About

Sui Project: Tamagosui

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published