- This project is an application that generates fully-on-chain maps randomly using Secret VRF.
- Over the past year, there has been a growing interest in full-on-chain games among some developers, with Autonomous Worlds (AW) being a key keyword.
- Anticipating the development of on-chain games not only in the Ethereum ecosystem but also in the Cosmos ecosystem, I developed this project as a PoC (Proof of Concept).
- I think randomness is a crucial element in on-chain games, and I hope this project can provide some insights for future games that utilize randomness.
https://map-randomgen.vercel.app/
- User calls map-randomgen contract.
- map-randomgen contract get random number from Secret VRF.
- Next, map-randomgen contract generates a random map by using the random number as seed.
- map-randomgen contract return generated map to user.
- secret network setup
- node (>= 18.x.x)
- pnpm (>= 8.x.x)
$git clone https://github.com/0xrhsmt/map-randomgen.git
# Contract Deployment
$cd contracts/deploy
$cp .env.example .env
$vim .env
$pnpm install
$pnpm run deploy
# Frontend Serve
$cd ../../frontend
$pnpm run dev
$open http://localhost:5173