Hello everyone new to blockchain. Trying to think of an nft game, I studied the approach of other games and almost all that caught my eye did a mint
nft for users, and then with these nft it was possible to enter the game and start earning. Inside the games there is also NFT crossing,
my question is whether it is possible to mint a token on the fly when crossing and generate an image based on the two previous nft
Or do I need to choose some random picture and mint NFT based on it? That is, for example, I have an NFT cow and an NFT chicken, and as a result of crossing
I want to get a half-cow-half-chicken, can this be done on the fly or do I have to have a half-cow-half-chicken image ready?
Jun 30, 2022, 3:03 PM
you need to load all the images on IPFS, then on solidity you can write your own custom logic to alter the metadata binded to a particular ID
you cannot "create" images or anything from solidity, EVM works in a sandbox environment, you cannot even access external internet (that's why oracles exists)
maybemaybemaybe... you can, if you centralize the URIs
but you should unlock the black magik and write something new and unique
Jun 30, 2022, 3:07 PM
Thanks a lot for the clarification. That is, I first need to upload all possible images to ipfs and then, when crossing, for example, find an image with a specific name and make a mint of a new token? What about old tokens? What are the best practices in crossbreeding approaches?
Jun 30, 2022, 3:09 PM
mhmm don't know, need to play with crossbreeding yet
You can take a look at cryptoKitties, also on cryptozombies.io
You can take a look at cryptoKitties, also on cryptozombies.io
Jun 30, 2022, 3:11 PM
we don't actually upload anything on IPFS, IPFS solely serves the resources from your server or third party (Pinata)
Jun 30, 2022, 3:16 PM
mhm? ipfs != your server
Jun 30, 2022, 3:19 PM
Thank you very much again, and the last question, at the beginning of the game, let's say I have 10000 nft planned, and I plan for example 5000 nft for the initial mint (level 1 items) and another 5000 nft (level 2-10 items) that I will generate crossing. in my head, I draw it for myself in this way, perhaps there are some best practices on how to do it in such cases?
Jun 30, 2022, 3:19 PM
what do u mean by that?
Jun 30, 2022, 3:19 PM
we use ipfs to upload metadata, to avoid making them centralized on local servers :o
can't reply on it, maybe you can find something useful there https://nftschool.dev/
Jun 30, 2022, 3:20 PM
yes, but I was saying that IPFS isn't a blockchain, the files on IPFS need pinning whether it's you or a third-party service (i.e: Pinata)
Jun 30, 2022, 3:23 PM
ooooh okok! sorry
Jun 30, 2022, 3:23 PM
it's okay, I should've been more clear 👍
Jun 30, 2022, 3:25 PM