DApp game app

How to Build DApp Games Like CryptoKitties?

Estimated read time: 15 minutes

Interested in knowing how to build DApp games and how much does it cost to create a DApp game in 2024?

In this blog article, I will explain what DApp games are, explore different options how to build them, and answer all the most popular questions about DApp game development.

Let’s get started!

In this article

  1. What is CryptoKitties?
  2. Are there ready-made tools to build DApp Games?
  3. Build an Ethereum game with Loom Unity SDK
  4. Code your own crypto game from scratch
  5. Frequently Asked Questions on DApp Games

DApp or decentralized application cost in 2024 may vary from $45.000 to $150.000 or more depending on the size, complexity, and project size.

Blockchain games represent an excellent market for the gaming industry with many opportunities to be explored. In-game assets used by players in such games are often associated with non-fungible tokens (NFTs) that have a real-world value and can be traded on cryptocurrency exchanges.

What is CryptoKitties?

It‘s an online game that runs on the Ethereum blockchain. Axiom Zen, a Vancouver, Canada-based company, launched it on November 28th, 2017. It quickly went viral.

This blockchain game involves a play-to-earn model of buying, selling, and breeding digital kittens. These digital cats are represented as non-fungible tokens. The game runs on the Ethereum blockchain network and allows players to pay with its native cryptocurrency, Ether (ETH). It‘s a distributed app (DApp).

By December 6th, 2017, players of CryptoKitties had already spent an incredible $ 6.7 million on this game! Some kittens commanded a price of 50 ETH, i.e., US $ 23,000. The ’genesis kittens‘ i.e., the first batch of kittens, had a price tag of 246 ETH, i.e. US $ 113,000! A Statista report even captured an interesting surge in the genesis kittens sales that was allegedly triggered by a popular NFT collector’s tweet.

The creators started the game with 100 ’founder kitties’, and the game released a new ’gen 0′ kitten every 15 minutes. The creators put the first set of kittens in an auction, and people bought them like crazy. Players also resold kittens.

In this in-game economy, players could put their kittens up for breeding. They get paid in ETH for this, and they paid others to breed their kittens with other players‘ kittens. Players could also advertise their kittens for sale.

The smart contract code in the game controlled the attributes of kittens, and in some cases, breeding would result in a rare breed of kittens. These commanded higher prices.

The total sales amount to $184,281.03 and the market for digital kittens is still up and running. You can track these sales via this website

banner-img

Get a complimentary discovery call and a free ballpark estimate for your project

Trusted by 100x of startups and companies like

Interestingly, the success of this game managed to slow down the Ethereum network considerably in December 2017. This sparked a huge debate about the limited scalability of blockchain networks.

Back to Top

Are there ready-made tools to build DApp Games?

The Loom Network is a start-up that offers ’Platform as a Service (PaaS) for building DApps on the Ethereum blockchain. They have created tools to build large-scale apps for blockchain use cases.

If you are trying to build online games like CryptoKitties and social apps on the Ethereum blockchain, then you will find their software development kits (SDKs) quite useful.

Their SDKs allow you to build your DApp game app on sidechains called ’DAppChains‘. These can help to make your DApp games more scalable.

Read more about it in “Million-User DApps on Ethereum: An introduction to Application-Specific Sidechains”.

Using sidechains allows you to customize rules for your DApp. E.g. if it‘s just a social app requiring lower security, you can use the ’proof of stake‘ (PoS) consensus algorithm instead of the energy-intensive ’proof of work‘ (POW).

Read more about how PoS can make your app more scalable in “Proof of Work vs Proof of Stake Comparison”.

Loom Network has an SDK that focuses on building online games, and it‘s called ’Unity SDK‘.

You can build a blockchain-based game app that will work on desktops like Mac, Windows, and Linux. The SDK also supports Android and iOS. Read more in the Unity SDK documentation on their website.

Back to Top

Build an Ethereum game with Loom Unity SDK

A screenshot from CryptoKitties

Loom Unity SDK enables you to quickly start your DApp games app development. You can start with their sample code, which you can modify to suit your requirements. Find the sample code in the GitHub repository of Unity SDK.

  • Connect to a DappChain using their ’contract‘ class. This way, you can interact with the smart contracts there. You need to write a method to create a ’contract‘ instance for this.
  • To write data to a DappChain, send a signed transaction, and the DappChain will validate it. You can now call a specific public method to store an association between a key and a value.
  • The ’contract’ class addresses the validation using another method. This allows changing the state of the smart contract and enables writing data.
  • To read data from a DappChain, you need to invoke a public read-only method, which doesn‘t change the smart contract state. Again, there are already methods defined for you to use.
  • Combine your code for reading and writing, and input your private and public keys according to instructions.
  • Create an empty game object using the SDK and attach your script to it. Deploy your smart contract on a local Loom DappChain.

Unity SDK editor has a play option; click on it and see your open-sourced DApp games run! Read detailed instructions in the Unity SDK documentation on their website and their Unity3d SDK GitHub repository.

Back to Top

Code your own crypto game from scratch

You can also code a DApp games app from the ground up. However, it’s a more complex project. You need to do the following:

  1. Build a capable team;
  2. Learn the necessary skills;
  3. Create your Ethereum account;
  4. Install the necessary tools;
  5. Review smart contracts for similar games;
  6. Code smart contracts;
  7. Test, deploy, and run your smart contracts.

I have earlier described some of these steps in “How to Build Online Marketplace on Blockchain Like OpenBazaar?”, check it out.

1. Build your crypto game app development team

To build blockchain games such as CryptoKitties, you need the following skills in your team:

  1. UI/UX design;
  2. Ethereum DApp and smart contract development;
  3. Testing;
  4. Project management well familiar with blockchain technology.

Ethereum DApp and smart contract development are niche skills, and sourcing a project manager with a blockchain development track record could be hard. Get professional help from blockchain game development companies if you can‘t source the required people.

2. Learn Ethereum DApp development skills

The crypto-collectibles game you are about to build is a DApp, and the project team must understand the concept behind it.

A DApp game app can use any language for frontend code, but the backend code must comprise smart contracts and it must run on a decentralized blockchain.

It must run autonomously, and you can modify the open-source code only if you have a consensus from users.

Hire expert developers for your next project

62 Expert dev teams,
1,200 top developers
350+ Businesses trusted
us since 2016

It must use a crypto token created using standard cryptographic algorithms and must store data in a blockchain while following cryptographic standards. No user can control the majority of tokens.

Learn more about DApps in “What is a Decentralized Application?”.

Your team needs the following skills:

  1. Ethereum development: Check out the “Ethereum Development Tutorial” on GitHub.
  2. Solidity, i.e., the proprietary language of Ethereum to code smart contracts.

I also strongly recommend your team to take this fun, interactive CryptoZombies course by Loom Network. It‘s particularly suitable for beginners in blockchain game development as they get hands-on experience.

3. Create an Ethereum account to build your DApp Games App

You will code smart contracts, deploy them on Ethereum, and execute them as part of this project. You need Ether for this, hence you need to create an Ethereum account and wallet address.

There are two kinds of Ethereum accounts, and these are ’externally owned account’ (EOA), and contract account.

A person joining the Ethereum network needs EOA, whereas contract accounts hold smart contracts and are controlled by code. Read the Ethereum Development Tutorial in GitHub to know more about this.

Use the eth-light wallet; it‘s easy to use, so you can easily create your private and public keys with it. Secure the private key, don‘t share it anywhere and with anyone.

Read the eth-lightwallet GitHub documentation for instructions.

Buy Ether, which you will use later.

4. Install DApp development tools

You need to install the following tools:

  • ’testrpc‘: It‘s a blockchain client that‘s straightforward to use. It has a command-line interface (CLI), and you need to set a block interval using it.

Note: The default setting is not to mine blocks. Use their GitHub instructions to install and configure it.

  • ’web3js’: This is the tool to communicate with the blockchain. After installing it, you need to configure the ’aconfig.js’ file. Also, configure their web APIs to communicate with the blockchain.

Follow installation and configuration instructions in their GitHub repository.

  • ’Truffle‘: It‘s an easy-to-use tool for testing and deploying smart contracts. It provides different folders for smart contracts, blends in easily with your testing framework, and makes deployment easy.

Check out their GitHub repository for installation and configuration instructions.

Open ’testrpc‘ and run an instance of it. Now, update your ’config.js‘ file with the private and public key information from your eth-light wallet settings.

This allows you to communicate with the blockchain network. Read more about these steps in “Getting Started as an Ethereum Web Developer.”

5. Review CryptoKitties smart contracts

This is an optional step. You may have already planned how your smart contracts will function. However, if you want to get some ideas from CryptoKitties smart contracts ecosystem, read this section, otherwise, skip to the next section.

View CryptoKitties source code in this EthFiddle repository. The code is modular and divided into several smaller smart contracts. Following is a brief overview of these:

  • KittyAccessControl: This is for management control. The code has special roles, e.g. ’CEO‘, ’COO‘, and ’CFO‘. This contract defines a few functions for these roles only.
  • KittyBase: This accomplishes multiple tasks. It specifies attributes for kittens, e.g., birth timestamp, genetic code, etc. This contract also serves as a database for all kittens and their ownership.
  • KittyOwnership: This contract defines kittens as crypto tokens. These tokens follow ERC721 standards and are not fungible, meaning they are NFT. In the context of this game, it means that one kitten is never the same as another.
  • KittyBreeding: The players use this when they put up their kittens for breeding.
  • geneScience: This determines the genetic attributes of a newly born kitten. If players can see this, then they will plan how to breed their kittens to get a rare kitten, which will bring a higher price. This reduced the fun of the game. Hence, the creators have made this a closed-source code contract.
  • KittyAuctions: The contract for buying, selling, and auctioning kittens.
  • KittyMinting: This is the contract for creating ’gen 0‘ kittens. This was important because the creators had to give away new kittens to get the game started. There is a hard limit of 50,000 such kittens. The player community needs to breed their kittens to increase their number in this game.
  • KittyCore: The main smart contract that combines everything together and runs on the Ethereum blockchain.

Note: All images of the kitten are stored in the central web server of this game, and they aren‘t in the Ethereum blockchain. 

You can read a detailed review of CryptoKitties smart contracts in “How to Code Your Own CryptoKitties-Style Game on Ethereum.”

6. Code smart contracts for your decentralized applications

While you develop your UI/UX for the game, you can code smart contracts in parallel. Smart contracts are pieces of code that use “IF-THEN-ELSE” logic and transfer digital assets like cryptocurrencies from one account to another based on certain conditions.

Hire expert developers for your next project

Trusted by

Smart contract code is open-source, and you can‘t modify it after deployment.

In the Ethereum platform, you need to use Solidity language to code them. They are stored in the blockchain using contract accounts, which can‘t be tampered with.

Their execution is automatic, and the results must be visible in the blockchain. You also can‘t reverse the outcome of execution.

This means you need to exercise great care before you deploy them. Players will use their fiat currency to buy Ether so that they can play your game, and they may lose money if the code has bugs.

Keep smart contract logic as simple as possible. Code requiring high computation will need more Ether to execute, and chances of error are higher in complex code. Read more about smart contracts in “What is a Smart Contract?”.

7. Test, deploy and run your smart contracts

You can use Truffle to test and deploy smart contracts. The deployment will require you to spend some Ethers, and you need to budget for miner fees.

Remember that you need to invoke smart contracts with hexadecimal strings. Ethereum has ’application binary interfaces’ (ABIs) to help with this, and you can access them in GitHub ABI libraries.

This completes your DApp game development project. Check out examples of similar trending Ethereum DApp games:

  1. Ether Shrimp Farm: You can claim free shrimps that will lay eggs. You can hatch or sell the eggs. The game uses Ether for transactions within this game’s ecosystem.
  2. Etheremon: You can capture virtual monsters or trade in-game assets.

Back to Top

Interested in DApp Games Development?

This is an exciting investment area for the gaming sector, given the popularity of blockchain technology applications in recent years. However, being an emerging technology, it requires a niche skillset to get started with.

If you, as a business CTO, are looking for expert DApp games developers, DevTeam.Space can help you. Do not miss a chance of partnering with experienced blockchain developers for your DApp game development project.

Write to us your initial requirements for your DApp project via this form and one of our technical managers will contact you for further discussion.

DevTeam.Space is an innovative American software development company with over 99% project success rate. DevTeam.Space builds reliable and scalable custom software applications, mobile apps, websites, DApp games and DApp software projects, live-streaming software applications, speech recognition systems, ChatGPT and AI-powered solutions, and IoT solutions and conducts complex software integrations for various industries, including finance, hospitality, healthcare, music, entertainment, gaming, e-commerce, banking, construction, and education software solutions on time and budget.

DevTeam.Space supports its clients with business analysts and dedicated tech account managers who monitor tech innovations and new developments and help our clients design, architect, and develop applications that will be relevant and easily upgradeable in the years to come.

Back to Top

Frequently Asked Questions on DApp Games

What is a DApp?

DApp stands for Decentralized Application. They are apps that operate on a network of decentralized computers via blockchain technology.

Where to find blockchain developers to build a DApp game app?

You can find expert blockchain games developers in the DevTeam.Space community. The platform has extensive experience developing blockchain-based defi solutions. Fill out this form to get in touch with DevTeam.Space instantly and discuss your DApp project details.

What technologies I should know to build a DApp game app?

Apart from blockchain technologies, game developers should know Java and Kotlin for native Android app development, Swift for iOS app development, JavaScript, HTML, and web application frameworks like React and Angular for browser-based game applications.

What are some popular bitcoin-based DApp games?

Some other games using cryptocurrencies like Tron, eos, and eth are League of Kingdoms, CryptoBrewMaster, My Crypto Heroes, Axie Infinity, etc.

What are NFT games?

NFT games are blockchain games that use non-fungible tokens (NFTs) as an essential component of their in-game economy. In the gaming industry, NFTs are blockchain tokens that represent unique digital assets that players can own and earn real-world money with them. NFTs can represent different in-game items like characters, weapons, skins, and other digital assets. Some examples of popular NFT games include Gods Unchained, Alien Worlds, and Sorare.

Back to Top

Learn more about blockchain development from our expert articles:

  1. Where to Hire Blockchain Developers in 2024
  2. How to Interview and Hire Blockchain Developers
  3. What is Blockchain Used for?
  4. What technologies do blockchain developers use?
  5. What Are the Best Blockchain Network Hosts in 2024?
  6. How to Conduct Ethereum App Development
  7. How Blockchain Technology Ensures Network Security
  8. What are smart contracts in Blockchain Networks?
  9. How to Choose Smart Contract Platforms?
  10. What is a Blockchain Smart Contract Audit?
  11. How to Build a Blockchain Social Media Platform for Bloggers?
  12. How To Build Real Estate Blockchain Projects
  13. How to Build a Blockchain Music App?
  14. How to Implement Blockchain in Education Sector?

Alexey

Alexey Semeney

Founder of DevTeam.Space

gsma fi band

Hire Alexey and His Team To Build a Great Product

Alexey is the founder of DevTeam.Space. He is award nominee among TOP 26 mentors of FI's 'Global Startup Mentor Awards'.

Alexey is Expert Startup Review Panel member and advices the oldest angel investment group in Silicon Valley on products investment deals.

Hire Expert Developers

Some of our projects

Photofy

5M+

Users

United States

App Store iOS Mobile QA

An app to help 5M+ users create beautiful and professional photos with ease.

Details
NewWave AI

Academic

Papers

United States

All backend All frontend Design WordPress

A website to publish AI research papers with members-only access and a newsletter.

Details
Islandbargains

Shipping

Enterprise

FL, United States

Android iOS Java Mobile PHP Web Website

A complete rebuild and further extension of our client's web and mobile shipping system that serves 28 countries.

Details

Read about DevTeam.Space:

Forbes

New Internet Unicorns Will Be Built Remotely

Huffpost

DevTeam.Space’s goal is to be the most well-organized solution for outsourcing

Inc

The Tricks To Hiring and Managing a Virtual Work Force

Business Insider

DevTeam.Space Explains How to Structure Remote Team Management

With love from Florida 🌴

Tell Us About Your Challenge & Get a Free Strategy Session

Hire Expert Developers
banner-img
Hire expert developers with DevTeam.Space to build and scale your software products

Hundreds of startups and companies like Samsung, Airbus, NEC, and Disney rely on us to build great software products. We can help you, too — 99% project success rate since 2016.