Crypto games on Ethereum, EOS & TRON: Blockchain and crypto gaming
SPONSORED
February 27  |  6 min read

Building A Game On Ethereum, EOS And TRON

Blockchain Cuties team

This article is coming to you courtesy of Blockchain Cuties, a multiblockchain crypto game.

Crypto games are rapidly growing nowadays. Unfortunately, the quality of many crypto games leaves much to be desired. This may be due to heightened demand which pushes game developers of all skill ranges to jump in and try their hand at developing a crypto game without the requisite expertise and ability needed to create a good gaming experience. However, significant changes have been happening, and amateur cryptogame developers have largely vacated the space, liberating it for those who actually care about the quality of their product. This has probably occurred due to today’s crypto investors constantly searching for “killer Dapps” with complex and engaging approaches to creation features. There's also the common opinion that half of a cryptogame's success is due to the protocol on which it's based. There are 3 blockchains that are popular for crypto gaming development. Each blockchain has its own pros and cons concerning the speed of transactions, which in turn influence game mechanics. Let's take a look at blockchains with the biggest growth potential in the crypto entertainment industry. The expertise in this article is provided by Blockchain Cuties – the crypto collectible game that runs simultaneously on the TRON, Ethereum and EOS blockchains.

Developing crypto games on Ethereum

Ethereum was the first widely used protocol in the cryptogaming business. With Bitcoin being considered the gold crypto standard, Ethereum blockchain is the most decentralized gold model for cryptogaming, but it is still not a perfect one. Here are some of its biggest pros and cons:

Pros:

  • You don't have to be an experienced professional to set up Ethereum nodes on a regular computer
  • Out of all protocols, this is the easiest to access many Dapps with due to a significant amount of mobile Dapps-browsers with good UX. This quality also attracts casual users because access to a computer is no longer needed
  • Ethereum has the best infrastructure, famous for its smart contracts, crypto wallets, browser extensions, and SDKs (including ones for Unity)
  • Developers feel at ease working with the Ethereum blockchain. Ethereum's Dapps market is huge, there are many templates to look at before creating your own, improved one
  • The Ethereum Blockchain is well documented and has been thoroughly explained
  • Ethereum supports events functionality which is noted for allowing developers to monitor specific changes without scanning the whole Blockchain

Cons:

  • Ethereum is pretty slow. It only spots 15 TPS due to Proof-of-Work consensus
  • The network is constantly busy which causes network overload
  • When the Ethereum network is overloaded, all operations become expensive within the blockchain, including the creation of smart contracts and so on
  • Ethereum's smart contracts can't be re-deployed if developers make any mistakes. If this happens, you have to upload a new smart contract
  • Solidity is a widely used programming language for smart contract coding. Although it has its restrictions:
  • Solidity has a strict limit of 16 local variables in a function, this kind of restriction is not typical for other programming languages.
  • When it comes to working with strings, it results in poor capabilities.
  • Strings can't be passed between contracts because they are not fixed size variables.
  • It's a complex task to concentrate 3 separate strings from a non-fungible ERC-721 token into a single one and then send it over to a server.
  • There is no such thing as a random number generator.
  • There are no fractional numbers.
  • There are restrictions regarding arbitrary code execution.

Developing crypto games on EOS

In June 2018, EOS introduced the world to a brand-new blockchain structure designed to enable the vertical and horizontal scaling of Dapps. The software facilitates account creation, authentication, database maintenance, asynchronous communication, and the scheduling of applications across multiple CPU cores or clusters. The resulting technology is a blockchain framework that has the potential to scale up to millions of transactions per second, eliminate user fees, and allow for the quick and easy deployment of crypto games. EOS is the fastest blockchain for cryptogames, with a current maximum speed of 3996 TPS.

Pros:

  • Block Producers have fast and impressive enterprise-level machines which are different from regular computers. Nowadays, daily enterprise operations are not effectively monitored and controlled. This is due to the lack of a system-wide operating system and insufficient availability of real-time data. EOS aims at joining various existing heterogeneous approaches together for the sake of complementarity and synergy.
  • EOS’s Virtual Machine works dozens of times faster than Ethereum’s and TRON’s.
  • Smart Contracts can be written in C++, Rust, Python and Solidity. Blockchain has always been about choice.
  • EOS has a developed infrastructure.
  • Thorough documentation; there is no such thing as entry barriers, so C++ developers won't find it hard to develop things on EOS.
  • EOS is better for robust development. C++ supports libraries, virtual methods, templates, and operator overloading.
  • C++ compiles into native code with optimization: 1 digit is stored in 1 byte, not in 32 bytes as it is on Ethereum or TRON.
  • It's possible to redeploy smart contracts and constantly update a crypto game like you can do with regular games.

Cons:

  • EOS distributes its decentralization among 21 block producers which leads to less trust in the long run. Ethereum and TRON split their decentralization among thousands of users.
  • There is no event functionality. In order to check the blockchain for specific changes, one must emulate them in a separate table.
  • It has one of the most difficult entrance processes.

Developing crypto games on TRON

Of all the blockchain options, Tron is the easiest for game developers to begin working on. TRON can handle up to 2000 transactions per second. It is all about lower payment costs which will definitely draw attention to your Dapp.

Pros:

  • For developers who are switching from Ethereum to TRON, it is easy to adapt as TRON uses the same compiler. It's good for porting games.
  • It has an open community which is always ready to work constructively with you.
  • TRON supports events functionality. This quality allows developers to check for specific changes without scanning the whole blockchain.
  • TRON smart contracts function fail-proof due to both formats - TRX and TRX Freezing (staking) for Energy and Bandwidth. The TRON bandwidth allows performing transactions on the TRON mainnet without paying any gas fees. Energy is a special resource used to process smart contracts on the TRON network. Smart contracts consume Energy in addition to Bandwidth. Therefore, a player needs to be sure they have enough of both when using his TRX Tokens in a game.
  • It provides coverage support for quality TRON-based Dapps. TRON Arcade helps with visibility and funding.

Cons:

  • TRON's documentation sometimes contradicts with what it offers in reality.
  • Testnet can be down for hours at a time.
  • It features infrastructure which is still a work in progress. It has a few server SDKs and a few mobile Dapp-wallets with questionable UX.
  • It's impossible to redeploy a smart contract if a developer makes a mistake. The only solution is to upload a new smart contract.

To code or not to code

There are 3 blockchains that are indispensable to crypto gaming: Ethereum, EOS and TRON. Each of these blockchains has special significance for crypto collectibles as they all operate with NTFs. All 3 blockchains compete with each other and make each other better. Game developers have to learn to take advantage of the pros available and deal with each blockchain’s imperfections.

Thank you for reading,

Blockchain Cuties team