Inspiration

I originally started learning solidity after coming across a few of Patrick's videos. I was particularly interested in the video of on-chain svg projects, which led me down a several months long journey of studying the onii-chain code and learning how it was built while learning how write my own solidity code. Several months later and after lots of thinking about currently existing projects and my own passions I came up with the idea for the EnchantVerse. Which will become and gaming verse where users can explore to collect resources, and build and craft nfts that can be sold or traded to other players.

What it does

In it's current state, NFT avatars with fully on-chain svg images, stats, abilities and boosts can be minted. They are built to be the beginning of a much greater world. These avatars are designed as the essential "holy grail" of the game, where owners will be able to mint tradable characters that have boosted starting abilities, faster experience gain, and benefit from increased resources when gathering.

How we built it

The avatars were built from a series of contracts that decode a single uint256 (the random tokenId) and turn that number into several uint8's that determine what traits the avatar has. The results are hardcoded in component contracts that are then read to assemble and return the TokenURI. Each layer of the svg is stored once on chain, and then accessed accordingly.

Challenges we ran into

Time was the main challenge. I have 12 pages of notes on the full expanse of what I want to create, and barely scratched the surface of the first element on those lists.

Accomplishments that I'm proud of

I learned a lot by being pushed to rapidly develop, and I'm proud to have put together a nice looking site to go along with my solidity experiments.

What we learned

The main thing I took from this experience was that the more you code, the more of your own examples you have readily available to build new things in the future. Keep moving, keep building, and don't get stuck on one problem for too long, because there's probably 20 other ways to do it, and one of them will click.

What's next for EnchantVerse

Three more species, Characters, Zones, Resources, Building, Crafting, Marketplace. I won't stop building until the "verse" of EnchantVerse makes sense.

Built With

Share this project:

Updates

posted an update

Forgot to mention in my summary, that a rough version of the artwork for this project and a first try at coding solidity was done earlier this year. This hackathon pushed me to refine the artwork, and rebuild the way the code works from scratch.

Log in or sign up for Devpost to join the conversation.