Inspiration
There are so many disasters happening and victims needs aid ASAP and crowd funding in such situation will help a lot in short time but user engagement is low in doing funding . So I created a website and hosted a interesting game there in which we have to survive and kill monsters, for each monsters we will get 1 token then we can donate these tokens to organization listed in the same website where organization will be hosting crowd funding. Playing an online game for free always seems fascinating to me also when we are getting rewards who don't wanna play this game. In this manner organization will get capital and use it for good of victims affected by disasters like flood, earthquake. Also user will be rewarded for donation
How we built it
We used solidity for smart contract development using remix IDE, testing was done on few networks including sepolia, etherlink, avalanche subnet. with complete testing contract was deployed on etherlink. We used HTML+ CSS + javascript for the front end interaction on VS code and Construct 2 for building of game. After loading of website user will click on connect wallet and his wallet will be connected and list of crowd funding will be refreshed. Then users can play game and interact with the dashboard.
What it does
Overall website is designed to target 3 types of people - players, crowd funding organisation and the owner.
when the website launches all users will have same dashboard where first they have to connect their wallet, as soon as wallet is connected the crowd funding list will be refreshed. In the dashboard they will have options to check balance, donate,getTokens. These function are meant to be used by the players to check their token balance, get tokens for the kills they did in the game and donate to donate to the organization they wish.
Additional option which are useful for organization to host is Register org to raise a funding, then approve org will approve the pending organization request and this is meant for the owner of the contract.
Challenges we ran into
we faced a lot of challenges such as integration of game with front end, Construct 2 is very old software so we faced a lot of incompatibility issue. we faced a lot of issue in perfectly fetching and data form the smart contract. Another challenges we faced were in local development every time we host the game the download dialogue of game files were bombarded on screen, But it doesn't happen for the users, it is seamless for them. One issue that still persists is E,P and R keys are binded with the game so that doesn't work in text area in that web page, user need to copy and paste, but there is not much to type every this is already meant to be copy pasted.
UI of Game
When game starts, player is deployed with a laser gun, now he has survive till he can, kill the monster and when game is over user will get token equal to the number of kills and then player can donate these tokens to different organization as per their wish. For donation they will get reward. the donation will help the organization to save and provide aid to the victims and this reward system will encourage more users to play that will increase traffic and resulting in more donation. Controls: W,A,S,D for movement. P for pause the game, R for resume the game LMB click or E to shoot. NOTE: P,R and E Keys will not work in text area if you are trying to do so please copy and paste. This bug will be fixed soon.
Accomplishments that we're proud of
We are feeling proud that we are tackling a big issue with out initiative of making a interactive gameplay on website for free. we build a complete full stack project with the integration of game on the web and running fine in this short span of time which aims to help the organization and victims in the huge disasters by providing capital and liquidity, we are fully motivated to complete whole project with full optimization in upcoming time
What we learned
We learnt many things, this project made us able to think critically and use our creativity to tackle a real life problem. Connection of game with web and hosting with along side the integration of blockchain in it was one the coolest thing we learnt. we learnt how to embed a game in to web and send data from game to web
What's next for Survival for Humanity
We are planning to elevate its level further more and encourage people to play out game, earn token and help the needy people, someone's fun will help a lot of victims. Also the token we are using in the game, we further elevate its use cases with upcoming features, one of planned use cases is for certain amount of donation user will receive different tokens that could be used in trading and other stuff. We are also planning of adding store to purchase the token for those people who wish to donate huge amount but don't have enough time to play the game.
Built With
- construct-2-game-development-sdk
- css
- html5
- javascript
Log in or sign up for Devpost to join the conversation.