Inspiration

Cheating in video games. Have you ever spent hundreds of hours grinding in a well made MMORPG, reaching high levels and obtaining powerful items only to get one hit KO'd by a cheater? Whats worse is that the server shuts down for good? Weve all been there. It sucks big time.

Were seeing two main issues here, system security and a single point of failure problem for centralized servers. Two of the problems that blockchains are trying to solve. What if we use this technology for an MMORPG? There are trade-offs like fees, processing times, user/developer experience, etc. But what if we use a blockchain that is very secure, always up, has very low fees, near-instant transactions and with very good user/developer experience? Is there such a blockchain? Yes! It is Fantom!

The Fantom Network makes our dream of having an UNHACKABLE game that is always online be a reality. That is why this project: CLASHMANIA exists! All of its important elements are deployed on the network! It benefits from all of the advantages the Fantom network has to offer. Literally no avenue for cheaters!

What it does

It provides an avenue for RPG fans to play real RPG on top of a blockchain network.

How we built it

The knowledge that went into the project's development mostly came from the open-source community and from my own gaming experiences. The project's current state is just a groundwork for future AAA blockchain games to come.

Challenges we ran into

The greatest challenge lies before a single code is written: the game design. Since blockchain networks in general cost money to make state changes, it has been very challenging to design a gaming system that achieves a balance between complexity, cost and fun.

Accomplishments that we're proud of

More than an on-chain battle system and built-in Defi in a complete RPG ecosystem, the greatest accomplishment im really proud of in this project is being able to design it in the way that it is somewhat future-proof in the sense that a community can form around it and continue to build. In the end, it would connect people from all over the world if it gets enough traction. One can only hope.

What we learned

I've evolved a lot of times from starting this project out. Even though I already have a little bit of experience with developing with solidity under my belt, this project has shown me that the things I know are nothing but mere stepping stones toward a brighter future in contributing to a decentralized society. Apart from that, I've improved my coding skills a notch. Thanks to the excitement this hack brought!

Im really grateful for

The Fantom network for reliable, fast and cheap transactions. But more importantly, a solid developer experience.

What's next for Clashmania?

Player VS Player! Probably nothing!

[^1]: Disclaimer: The character portraits, equipment images and token icons are merely visual representations of in-game elements and are in no way being redistributed/sold. Such resources are bought from and licensed by https://craftpix.com

The BGM tracks used are created by Peritune https://peritune.com under the Creative Commons License.

Smart Contracts deployed on Fantom:

Dungeons

dungeon: "https://ftmscan.com/address/0x06a5860B2713A6198F187D4e59b0eE3a8b5E12dD#code"

vrf: "https://ftmscan.com/address/0x939eDd8812DDC138C12b515Fb415f0E22D5D4429#code"

keeper: "https://ftmscan.com/address/0xd484de38aC5e3Ad3325f5F293B03D59aBaEe34A7#code"

Characters

nftContract: 'https://ftmscan.com/address/0x4ecbb337eECd76a2f1D536D85949d122aA89bFfa#code'

minter: 'https://ftmscan.com/address/0x45E678Fc5c784F0d58aAC7a1624d8F2571186F34#code'

vrf: 'https://ftmscan.com/address/0x0EaC5B658EBf5199A418cdA0f6a7c8D17472d46f#code'

uriConstructor: "https://ftmscan.com/address/0x1A5ec459e68B84bf0D87dcC6B13b36878B91945d#code"

Equipments

equipments: 'https://ftmscan.com/address/0xab5F3de7793B8E65dB53D677F5B712079Cf4fee0#code'

minter: 'https://ftmscan.com/address/0x167a1EE7F30aEfA30aD16558557Cc5FF31B4A611#code'

vrf: 'https://ftmscan.com/address/0x0C8520cda7C4d5cF0f4ED71f95E9276E95fE9998#code'

manager: 'https://ftmscan.com/address/0x497b67F1a0ecfAA41bB5350fBaC20E11267b77f0#code'

Tokens

clank: "https://ftmscan.com/address/0xA13473ffb118655cdF6F15684Ee6CCE4E4aeaf26#code"

boom: "https://ftmscan.com/address/0x5751141f10e9cCC97f7f542253F67AC6C67ef308#code"

thump: "https://ftmscan.com/address/0x7F11f903EE76aaF287091509E7b38A877a5500CF#code"

clink: "https://ftmscan.com/address/0x968F94214F1b5F4C775e7F7a04ca2FAE6E545E75#code"

snap: "https://ftmscan.com/address/0x31010F5C1444Ba33eD38E4A40e57742829c04BA3#code"

yellowspark: "https://ftmscan.com/address/0xb22634b9C9B4363E0519c8aDC07632aE87CAFcf6#code"

whitespark: "https://ftmscan.com/address/0x2b2C1daBa39c2ba4681aAB86226F6C72c6369f2E#code"

redspark: "https://ftmscan.com/address/0x13f24AD7BF6E83c6244BB0666ECd6ee38d40E7cD#code"

LP Tokens

bluespark: "https://ftmscan.com/address/0x7EA3C6BF16D858de0615e8524399Ed25ADF3b7bD#code"

enerlink: "https://ftmscan.com/address/0x50207C81d58A3429Ee5E3f2cE437cbF09545C2F6#code"

clankftm: "https://ftmscan.com/address/0x8F417a08B1981256E5C5ae59b1E62C2bBb273c64#code"

clankboom: "https://ftmscan.com/address/0xac31D24F278336a15240Eef4d0933E5170f0f7e8#code"

clankthump: "https://ftmscan.com/address/0x5B6448f622f77ff2FF099554E968798DbFf29435#code"

clankclink: "https://ftmscan.com/address/0xFbe4Ad14cBe23ba11d2f5846152Bc7dd8F993f3c#code"

clanksnap: "https://ftmscan.com/address/0x7CA89dfcFee4545DFe1CA399EFd639b310Ca7f9F#code"

Defi

minichefv2: "https://ftmscan.com/address/0x5e82414A539C46E9445750D14A532eeBb14fFA1c#code"

Built With

  • ankr
  • ethers.js
  • ftmscan
  • hardhat
  • infura
  • ipfs
  • keepers
  • material-ui
  • next.js
  • spooky.fi
  • thegraph
  • vercel
  • vrf
  • wagmi.sh
Share this project:

Updates