
SUIValley
Inspired by Stardew Valley - an on-chain farming RPG powered by SUI Blockchain - own and manage your farming resoruces and level up
Demo
About
The problem it solves - Currently the gamers don’t have full control on their hard earned in-game assets - Limited interactions between multiple games and experiences within the same studio. - Few opportunities for gamers to engage with other gamers and build their own persona, as the game assets are not portable outside the game - Most web3 games are gated communities and owning them only offers license to the game. That is not what true asset ownership is. - Need to improve Web3 User Experience ### OUR SOLUTION A smooth web2-like on-chain farming RPG that let's players enjoy the tasks of owning a land, managing resources: - Creation of Player NFT <- Creation of Inventory <- Creation of Items in Inventory at default value of 0 when user makes a new account - Collect and upgrade your inventory. The Inventory is like an NFT object on SUI, which keeps track of items on-chain, and also updates the inventory as you collect more resources on-chain - Player levels up on XP as you create, grow, harvest and expand your inventory - The game runs on a simulated engine with respect to time, which make sure elements within the objects (for instance seeds, germinate into saplings and are updated on chain using Move modules) - The flow of the game is web2 as the transactions are signed by the HD wallet provided within the Origin Byte Unity SDK - The onboarding is done through email and password JWT authentication system - Game state synced with SUI Move Objects that acts like NFTs owning NFTs - Players own invnentory, inventory owns items (seeds, saplings, harvest, tools, raw materials) and you can update the objects as you play the game on chain in a hassle free (non-web3 UX manner) (SUI Move Modules on Devnet) [Contract 1](https://suiexplorer.com/object/0x1d0d9ecc0c9773a861515910e62fbc6a3d5a50d8163ac303d5e00367f3196334?network=devnet) [Contract2](https://suiexplorer.com/object/0x0e4eac7bdfb5400e7f3dca1166290479017cc64ab67a2a6fee54708b93a3a1e2?network=devnet)
How it's made
Challenges we ran into - Reading data from SUI blockchain into the Unity Client - the Origin Byte Unity SDK for SUI is not up to date - Learning Move programming language - Developing the concept of NFTs owning NFTs (Objects own Objects on chain) and updating game state on-chain with functions executing as you play and collect resources - Updating Player XP according to the game events and resources collected - Lack of resoruces related to SUI gaming with Unity. - We tried to related Tx, objects, params in the typescript SDK to our Unity Code and made it work