T

The Code Story

Learn coding in the old arcade style.

T

The Code Story

Learn coding in the old arcade style.

The problem The Code Story solves

The Code Story is a learning game with the involvement of NFTs. The player spawns on the map and moves around to find various NPCs which in term are called battlegrounds which are spread throughout a map. The Player has to find all the NPCs for the level and when the player finds the NPCs, we have to answer a question in each battleground until we correctly answer all 10 questions then we can claim the NFT which is the "Proof of Learning", then go to the next level.

Challenges we ran into

First of all, we have to find a way to create an arcade game platform where we can place our questions so that the user will solve them while enjoying the overall theme.
We found game assets from Itch.io then we Use Tiled, canvas to create an interactive arcade game.
Now the next big challenge was to connect it with the Polygon blockchain, and for that, we used metamask Wallet.
firstly we deployed our codeStory smart contract on polygon Mumbai testnet, Then used ABI to create a contract Instance.
We had to construct our own questions for the level since we were not able to find any API which can provide us with our desired questions.
To create an interactive battleground of questions we created our own logic in which we did multiple checks for the written question. also, we have to manage the number of questions attempted by the user so that we can reward him with an Interactive and arcade-style NFT.
Each and every NFT work as proof that the user completed or we can say learned a particular topic like web dev,web3, etc.
To create out NFT firstly we uploaded our own custom card image and JSON file to The IPFS server using Pinata.

Discussion