Web3 mobile gaming is a new era of decentralized, blockchain-based gaming that promises to revolutionize the industry. It combines gaming with the unique features of blockchain technology, such as secure and transparent transactions, digital asset ownership, and decentralized governance. In Web3 gaming, players can enjoy a wide range of gaming experiences and participate in the creation, management, and monetization of these games through the use of cryptocurrencies, non-fungible tokens (NFTs), and decentralized autonomous organizations (DAOs).
Web3 gaming is still in its early stages, but it has the potential to transform the gaming industry and create new opportunities for gamers and developers alike. There are two categories of web3 gaming dapp:
- The ones including web3 parts like NFT or fungible tokens but represent generally less than 25% of the application
- The ones which are 100% onchain, like on this tutorial, where all the logic is coded inside the smart contract
You will learn:
- How to import a Ligo smart contract library containing the game logic.
- How to create a mobile app with Ionic.
- How to integrate the taquito library to connect a wallet.
- How to develop the UI and interact with your smart contract.
- How to build and deploy your game to the Android store.
Make sure that you have installed these tools:
- Node.JS and NPM: NPM is required to install the web application's dependencies. (currently using v18.15.0 on the solution)
- Taqueria, version 0.46.0 or later: Taqueria is a platform that makes it easier to develop and test dApps.
- Docker: Docker is required to run Taqueria.
- jq: Some commands use the
jqprogram to extract JSON data.
yarn: The frontend application uses yarn to build and run (see this article for details about differences between
- Any Tezos-compatible wallet that supports Ghostnet, such as Temple wallet.
Optionally, you can install
VS Codeto edit your application code in and the LIGO VS Code extension for LIGO editing features such as code highlighting and completion. Taqueria also provides a Taqueria VS Code extension that helps visualize your project and run tasks.
The tutorial game
Shifumi or Rock paper scissors (also known by other orderings of the three items, with "rock" sometimes being called "stone," or as Rochambeau, roshambo, or ro-sham-bo) is a hand game originating from China, usually played between two people, in which each player simultaneously forms one of three shapes with an outstretched hand.
These shapes are "rock" (a closed fist), "paper" (a flat hand), and "scissors" (a fist with the index finger and middle finger extended, forming a V). "Scissors" is identical to the two-fingered V sign (also indicating "victory" or "peace") except that it is pointed horizontally instead of being held upright in the air.
The application can be downloaded on the Android store here
The code for the completed application is in this GitHub repository: solution
When you're ready, move to the next section Part 1: Create the smart contract to begin setting up the application.