GithubHelp home page GithubHelp logo

wakamex / tokenbound-titans Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hamzah2304/tokenbound-titans

0.0 0.0 0.0 661 KB

JavaScript 73.79% Python 2.83% Rust 9.23% CSS 9.98% Solidity 4.17%

tokenbound-titans's Introduction

tokenbound-titans

Winner at ETHGlobal Waterloo 2023

Project Description https://www.youtube.com/channel/UCHL7Iz9Sb4hNGwdBXJDDrpA

This video is our demo!

An implementation of ERC-6551 for NPC gaming in combination with dynamic generative NFTs. Players are the proud owners of unique NFTs, each owning different abilities and characteristics.

The gameplay revolves around battles between these NPCs where players can strategically bet their tokens against each other in a digital arena. The algorithm for computing the outcome of the battle is off chain and can be verified using a ZK-proof.

Victory in battles rewards players with the ability for their NPCs to level up, which enhances the existing attributes of Health, Attack, Speed and Armour. A natural extension is to also enable unlocking of new abilities and combos for their NFTs to play. As NFTs level up, they become stronger and more versatile. This progression system adds depth and longevity to the gameplay, motivating players to strategize, adapt, and continuously improve their NFTs to dominate the gaming landscape.

How it's Made The project used the new ERC-6551 implementation to associate a wallet with our ERC-721 NFTs. We used this to create NPCs in an idle battler environment with inventories which hold combat items. Specifically, an NPC can own other NFTs which represent such items. Furthermore, we implemented a betting system with an on-chain escrow chain such that a player can bet on victory before they are matched with an opponent. Again, it is the NPC which owns the relevant staked token in its inventory directly, not the player.

More nitty-gritty: the NFTs representing the NPCs are dynamic such that when an NPC levels up its statistics change and its pictorial representation upgrades. We did this by pointing to different IPFS locations and associated it with different levels.

tokenbound-titans's People

Contributors

hamzah2304 avatar tobiasloader avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.