This is still a very early prototype
Introduction
Some months ago i started with the idea of work on a Items Framework for use in Unity 3D in combination with the Unity 3D SDK so i started to work on it over the previous weeks.
Data used
For test it, i modified a game from Unity Technologies for load custom skins that are saved in a Stellar Account.
The game i modified is this one:
https://assetstore.unity.com/packages/essentials/tutorial-projects/tanks-tutorial-46209
The account i load is this one:
https://www.stellar.org/laboratory/#explorer?resource=accounts&endpoint=single&values=eyJhY2NvdW50X2lkIjoiR0FMNkREWFFWTEpRTVFRUzM3MlFVSTZYUzJNNEJOQjJEU1lNNlBRRFFTTU5WVE9ZQjdZVEpDVjMifQ%3D%3D&network=test
What use it have in a real case scenario?
In the present, there are a lot of games you play and spend money on items, those items in a lot of cases can't be even sent to another person not even exchange them for anything, this aims to solve that problem.
Features
- It can load assets into Unity in a generic way allowing developers to save items under Stellar Network
- Your items are safe under the blockchain
- Easy and safe for the user, i'm trying to avoid using the secret seed.
- It works for private networks too.
- You can trade your items like you can do in for example Valve Steam Marketplace
- Want to send items to your friends? You can do it.
- The developer have full freedom to handle cases where the asset is a decimal number instead of an integer.
- Add it to any game easily (I barely used 2 hours in add it to the Unity game)
- Probably more..
Limitations/Issues
- Each item have a trustline so if you have more items it can add a lot of base fee to your account.
- Can't prove ownership of the account at the moment.
- An account can be used multiple times at the same time.
- Can clutter the main network easily.
- Probably more i didn't think about...
Roadmap
The roadmap for this is try to make a system that can work and is not a pain for the developers and neither for the users, trying to polish every corner.
Apart from the usual things, i'm planning to also research or add this ones:
- I did a system for have custom data of the items under the issuer account, so you can also fetch jsons for additional info, this can be implemented as a tool in the items framework editor. (Thanks MikeFair)
- A basic device authorization (Thanks Mikefair)
When the framework is ready it will be open source and free.
Some proof
Demo
Accounts Creator Editor
Asset Creator Editor
Conclusion
I'm submitting this to the Stellar Build Challenge, i know this is a cool thing but i also know that i will face a lot of bad things and not everything will work as i planned...
I want to thanks MikeFair for the knowledge he shared with me and for motivate me to do this, also to Elucidsoft since he did the C# SDK for Stellar that i later integrated in Unity.