StarknetAstro

StarknetAstro

Analyzing On-Chain Games: The Future of Complex Applications on the Blockchain

TL;DR#

  • Why pay attention to on-chain games? (1) In the context of blockchain infrastructure innovation, on-chain games may be the prototype of the next generation of killer applications. (2) On-chain user growth is facing bottlenecks, and it is hoped that on-chain games can sustainably bring more active users to the blockchain. (3) With the acceleration of blockchain scaling, the 4G era of blockchain will drive innovation in complex on-chain applications. New public chains, zkEVM/VM, and modular features such as account abstraction, asset management, parallel processing, and ZK characteristics lay the foundation for low unit revenue and high TPS complex on-chain applications.

  • What is the current state of on-chain games? (1) Currently, on-chain games are in the early stages of exploring product forms and validating the market. So far, there has not been a mature on-chain game, and the playability and completeness of most on-chain games are unsatisfactory. (2) On-chain games still have innovations compared to traditional games and GameFi, such as Dark Forest, Isaac, and Treaty, which feature decentralization, composability, on-chain collaboration, and contract-based interactions.

  • On-chain games can be divided into two categories: ported and native. (1) Ported on-chain games unlock the possibilities of traditional games; simulation and management games are more suitable for being ported to on-chain games due to their composability, asynchronous turn times, and financial game attributes compared to other types of games. (2) Native on-chain games are more likely to bring innovation to complex on-chain applications. Concepts related to on-chain games include hyperstructures and autonomous worlds, which expand the imaginative space of on-chain games.

  • What is the current state of on-chain game engines? (1) In the early stages of on-chain games, on-chain game engine teams often bear the responsibility of pioneering game products, and the number of engine teams is far fewer than that of game teams, with examples like MUD on Ethereum and Dojo on Starknet. (2) Beyond on-chain game engines, there are other on-chain game infrastructures, such as the gaming guild Guildly and the game store Cartridge.gg.

  • Why is Starknet an arsenal for on-chain games? (1) In terms of performance, Starknet can theoretically achieve 9000 TPS, and its STARK proof system can merge 60 million L2 transactions into one transaction on Ethereum, with Gas expected to be as low as 0.001 U. Moreover, STARK has network effects, where transaction costs decrease as transaction volume increases, making Starknet suitable for large-scale on-chain games. (2) Starknet's native account abstraction and contract wallets are better suited for on-chain game interaction scenarios compared to traditional wallets. (3) Starknet emphasizes the incubation of native applications. Its development team StarkWare has hosted multiple hackathons with partners like MatchBox, Only Dust, Volt Capital, and Mask Network, fostering the development of numerous on-chain game ecosystems.

  • We believe Starknet is the most important ecosystem for on-chain games, and we will analyze Starknet's technical characteristics, on-chain game ecosystem, and the design and construction of on-chain games in our next research.

What are On-Chain Games#

On-chain games (Fully On-chain Game, also known as completely on-chain games) refer to games that exist on the blockchain in the form of contracts. Unlike GameFi, which merely mints in-game assets as tokens, on-chain games store state and execute logic on-chain, thus possessing characteristics of decentralization, permissionlessness, and composability. They tend to create entirely new game mechanics rather than merely making incremental improvements to existing games or putting items on-chain.

image

Most incomplete on-chain games only mint key items in the game as tokens and circulate them on-chain, while the storage and computation of game data occur on centralized servers off-chain. For example, Axie Infinity and StepN have achieved significant success, but these games have some obvious issues:

  1. Limited gameplay and content.

  2. Centralized operation, where project parties can change game rules.

  3. Known for their Ponzi model, often regarded as a continuation of DeFi rather than a new "game category."

  4. Merely a port of off-chain games, not a native on-chain application.

Can on-chain games solve these problems and promise a better future? The answer is: no.

Blockchain is a brand new technology; rather than using it to replicate, modify, or graft old products, it is better to create a native, entirely new product with it. The problem of horse manure in the era of horse-drawn carriages was never solved; it was eliminated with the advent of the automobile era. On-chain games are not born to solve the old problems of Web2 games and incomplete on-chain games; they are dedicated to complete innovation.

https://www.greensburgdailynews.com/news/messy-issue-of-horse-manure-divides-amish-neighbors/article_bfc694bd-7107-55ab-8f1c-132d194c1f2e.html

The horse-drawn train of the 19th century may seem absurd today, but it was a compromise of the public psyche, policy laws, road conditions, and product forms of the time. Today's alliance chains and GameFi are also compromises of new technologies with old ecosystems, akin to the horse-drawn train of a new era, but we can all feel that they cannot become the future. New technologies will eventually reshape the entire ecosystem, and on-chain games may be an immature beginning.

Therefore, a more important question is: why do we need to pay attention to and explore on-chain games? What development stage are on-chain games in?

Why Do We Need On-Chain Games?#

【I don't know what this thing will be worth in the future, but it's new, so let's do it first.】

——Max, founder of Astro Aerospace Industries, said

https://www.britannica.com/science/galaxy

The Inevitability of Technological Evolution#

On-chain games are an inevitable path of technological evolution.

https://www.gartner.com/en/newsroom/press-releases/2021-08-23-gartner-identifies-key-emerging-technologies-spurring-innovation-through-trust-growth-and-change

Every technological revolution in history often only explodes some super products years later. The secondary innovations and inventions that drive the large-scale popularization of technology are often overlooked, but it is these innovations and inventions that push each other to collide and create truly innovative products. Behind every so-called "from 0 to 1" innovative product in history, there are often several underlying technologies.

Behind tanks are oil extraction and refining, steel processing, engines, and explosives; behind smartphones are operating systems, touch screens, processors, sensors; behind AI are computer science, neuroscience, statistics, psychology, and philosophy. However, it is nearly impossible to identify which specific N innovations and inventions ultimately lead to large-scale adoption and change the world, as they are more likely to be a branch on a technological development path rather than the "final fruit."

https://www.deviantart.com/lightingbolt666/art/Minecraft-production-tree-353859041

Therefore, currently immature on-chain games may mature as technology improves, or they may become a transfer station on another product development path. But regardless, they are worth paying attention to and exploring. As the forefront of on-chain applications, even if they are not the ultimate killer application, they may be in a field closely related to killer applications—just as every innovative product in history has shown us.

Blockchain Needs Active Users#

Blockchain needs application innovation to bring in more active users or to activate existing users.

https://etherscan.io/chart/active-address

From the chart above, we can see that the number of daily active users on Ethereum is facing a bottleneck. We have witnessed the explosion of the DeFi ecosystem, but from an observer's perspective, NFTs and GameFi are continuations of DeFi. Currently, the blockchain lacks applications that can ensure users remain active on-chain and achieve large-scale adoption, making games the target area for further expansion in the blockchain industry. The experiences of Axie Infinity and StepN indicate that GameFi is unsustainable, thus more enduring and healthy on-chain games will replace GameFi and become representatives of the next generation of on-chain application innovation. Beyond industry demand, some tech enthusiasts also want to prove that blockchain can achieve more interesting, complex, and immersive applications, rather than just digital currencies and DeFi.

Complex On-Chain Applications#

On one hand, for blockchain, on-chain games are an inevitable path in the development of the blockchain technology tree, and blockchain also needs a larger volume of active users.

On the other hand, the latest developments in new public chains, zkEVM/VM, and modularity provide a network environment with higher TPS and lower Gas for blockchain applications, and their superior features in account abstraction, asset management, parallel processing, and ZK characteristics also lay the foundation for application innovation.

Looking back at the development history of Ethereum with low TPS and high Gas, those applications with low TPS requirements and high unit revenue (high income per transaction, thus insensitive to high Gas) developed first, such as DeFi and NFTs. In the early stages, they often generated substantial wealth merely by issuing tokens, designing Ponzi models, and adding "simple" operations.

https://defillama.com/chains

However, in a network with higher TPS and lower Gas, applications that allow for lower unit revenue (low income per transaction, thus tolerating high Gas) and higher TPS requirements—referred to as complex on-chain applications—will emerge. We can establish a coordinate system, with the x-axis as TPS and the y-axis as unit revenue, and plot many applications to understand which applications exist at different TPS/unit revenue levels, allowing us to roughly infer which applications will emerge on networks with higher performance.

image

Bas1s Ventures's Wonder believes that a low unit revenue high TPS complex on-chain application is similar to a game/application with low ARPPU (average revenue per paying user) in Web2 games, requiring a sufficient number of user transactions to continuously break through the ceiling of the application's business model/token economy—just like China's Meituan and America's EPIC, which rely on high-frequency transaction volumes to continuously penetrate other low-frequency businesses, ultimately building their own business ecosystems. A sufficient number of user transactions also require a high TPS and low Gas network environment, making it difficult for such business ecosystems to emerge directly on Ethereum, which has high gas fees and limited processing speed, but they can be born in new blockchain infrastructures.

https://www.matthewball.vc/all/epicgamesprimermaster

Historically, the transition from 3G to 4G drove the explosion of mobile internet applications. During the deployment of 4G, many questioned the role of 4G technology—what's the use of faster emails and more blogs? What’s the use of more internet speed? But the subsequent explosion of smartphone applications eliminated these doubts.

Therefore, in the context of blockchain scaling and acceleration, on-chain games may be the beginning of the next generation of complex on-chain applications, and the early exploration of on-chain games may lay the foundation for the emergence of complex on-chain applications. As Jacob describes in hyperstructures, we have the opportunity to build civilizational infrastructures on blockchain that can outlast our own lives, creating permanently usable, composable, and publicly reusable network applications for all of humanity and its descendants.

Current State of On-Chain Games#

A well-known on-chain game is Dark Forest, a multiplayer online on-chain game set in a space conquest theme. Members of dfdao are also building a custom infrastructure called Light Forest to allow anyone to modify and run their own Dark Forest rounds using custom rule sets, creating content like Dark Forest Arena: Grand Prix.

"The game background of Dark Forest is an infinitely generated universe containing various types of planets and space entities. The most popular game mode in Dark Forest is a week-long free-for-all, where thousands of players, bots, AIs, and even smart contracts compete face-to-face for galactic supremacy. Players are born on a tiny home planet in the universe, and they must harvest resources, conquer nearby planets, and interact with neighbors through alliances, trade, negotiation, or even war to expand their empires." ——"Dark Forest: Three Years of Insights from Fully On-Chain Games (Part 1)"

Dark Forest not only runs entirely on-chain but also utilizes ZK-SNARK to help players hide personal information while participating in the game, so many decisions in the game are made under the premise of hidden information or information asymmetry.

https://mirror.xyz/dfarchon.eth/XCJor0YF0lUMzB7B4xZSjkXhIWmEN8HOMqvLz8K_hqY

Dark Forest is a classic case in the rapidly evolving world of on-chain games, while more cutting-edge examples include Isaac, Treaty, and LootRealms.

Isaac is developed by the Topology team on Starknet. It is a multiplayer online physics simulation game based on the backgrounds of "The Three-Body Problem" and "The Wandering Earth," deployed on Starknet. All players need to cooperate to build factory pipelines and power grids, converting natural resources into various devices to drive the planet out of the solar system. Its uniqueness lies in requiring players to collaborate on-chain to achieve a common on-chain goal.

image

Treaty is developed by the Curio team, and it is a large-scale multiplayer online sandbox strategy game. Players can act as governors of their own countries in the world, making strategic decisions to allocate resources, expand territories, and choose trustworthy and cooperative players, similar to a simplified version of Web2's "Romance of the Three Kingdoms: Strategy Edition" and "State of Survival." Its uniqueness lies in allowing players to draft contracts executed by code with other players, such as embargo contracts and peace treaties. Players are prohibited from attacking other members after joining the contract and paying membership fees.

https://blog.curio.gg/introducing-treaty/

LootRealms is developed by Bibliotheca DAO on Starknet, inspired by Loot. It is a sandbox war strategy game where, in the first version, players need to hold Realms NFT to start the game, and in the second version, they can participate by minting Adventurer NFTs. Notably, the Adventurer's equipment comes from the previously popular Loot. On February 1, 2023, LootRealms raised nearly 4 million USDC (oversubscribed by 6.35 times) in community fundraising. Its uniqueness lies in its high playability and completeness compared to other on-chain games, and it was the first to implement token distribution and on-chain governance. All transactions within the game flow through a network machine called Nexus, with players providing $LORDS as the Gas for Nexus operations. Currently, Mask Network's Kaspar is writing an in-depth report for LootRealms, and we can expect his unique insights. Other completely on-chain sandbox simulation games include Mithraeum and Conquest.

image

Categories of On-Chain Games#

In this section, we will showcase the subtle differences in on-chain games. From the current state of blockchain computing power and costs, on-chain games should exhibit low concurrency characteristics to adapt to the inefficiencies of blockchain. However, from the perspective of complete innovation, this is not the case. There are two potential contexts that may be overlooked: porting, which refers to moving previous games to on-chain, and native, which refers to developing a game that can only develop on-chain, if we still call it a "game."

Porting#

https://www.teamlab.art/w/flowersbloom/

Porting refers to a game that can develop off-chain, but we develop a version with on-chain characteristics. As mentioned earlier, an on-chain game will be more composable, reusable, and decentralized than an off-chain game, maximizing its gaming features in certain areas. Ported on-chain games intuitively only transfer the storage and computation of the game to on-chain.

Inspired by Will Robinson's “Unblocking On-Chain Games: Part Two — The 18xx Genre”, I will use the 18xx game as an example to describe ported on-chain games. 18xx is a turn-based simulation game set in 1846, where 3-5 railroad tycoons compete to make money and build the best stock portfolio by investing in and operating railroad companies in the Midwest from 1846 to 1935, which can be understood as a more complex version of Monopoly. Each company has its own treasury to lay tracks or upgrade tracks and purchase trains, and this treasury is completely independent of the player's personal stock portfolio and bank. The key to the game is balancing when to inject funds into your company to take action or fully pay your own and other shareholders' expenses, both of which affect the company's stock price.

https://www.boardgamemeeplelady.com/2019/02/25/1846-race-for-midwest-good-introduction-into-18xx/

18xx games are very suitable for being ported to on-chain games because:

  1. They have sufficient turn time. In each turn, each player needs to make a series of decisions and then submit them at a unified point in time, so the TPS requirements for blockchain are not too high, and transactions can be aggregated or packaged to reduce Gas.

  2. They have financial game attributes. In 18xx, players need to compete with other players in a financial market, such as asset auctions, so it can integrate well with DeFi.

After being ported to on-chain, the stocks in the game could be tokens like Uni, Sushi, DAI, etc., from the "real world," and the trading market in the game could be driven by Uni V3; we could also write past game states into contracts—just like what Treaty has done. Theoretically, we could replace 18xx with any simulation management game—such as the previously mentioned Treaty, Mithraeum, Conquest, and Lootrealms.

Native#

Native refers to those games that are "created for the first time" on-chain—if we still call it a "game."

https://www.teamlab.art/w/ever-blossoming-life-waterfall/#modal-1

The founder of Dark Forest, gubsheep, mentioned in “The Strongest Crypto Gaming Thesis”:

Cryptonative games are games that maximize the architecture and spirit of blockchain application development:

  • The true source of game data is the blockchain. The blockchain is not just used as auxiliary storage for data or as a "mirror" of data stored on proprietary servers. All meaningful data is stored on the blockchain—not just asset ownership. This allows games to fully leverage the advantages of programmable blockchains: a transparent data store that is interoperable without permission.

  • Game logic and rules are implemented through smart contracts. For example, battles in the game, not just ownership, occur on-chain.

  • The game is developed according to the principles of an open ecosystem. Game contracts and accessible game clients are open-source. Third-party developers have the right to customize or even fork their own game experiences through plugins, third-party clients, interoperable smart contracts, or even complete redeployments. This, in turn, allows game developers to leverage the creative output of the entire (incentive-aligned) community.

  • The game is client-independent. This is closely related to the above three points; a litmus test for whether a game is cryptonative is: "If the client provided by the core developers disappeared tomorrow, could the game still be played?" Only if the game data storage is permissionless, if the game logic can be executed permissionlessly, and if the community can interact with the core smart contracts without relying on the core team's provided interface can the answer be affirmative.

  • The game contains digital assets with real-world value. The blockchain provides a native API for the concept of value itself, allowing digital assets to interoperate with cryptocurrencies by default. This enables game developers to build new positive-sum incentive structures for their players and developer communities.

The founder of Topology, GuiltyGyoza, quoted Alan Kay and Marshall McLuhan in “On Medium, Validity Rollup, and Digital Physics”: as a brand new medium, blockchain's most cutting-edge innovators need to create uniquely blockchain-native applications on it, such as "autonomous worlds." More information about autonomous worlds can be found in 0xparc's article on Autonomous Worlds.

A simple example of a native on-chain game is the Game of Life GOL2 on Starknet. The Game of Life, also known as Conway's Game of Life (Conway's Game of Life), is a cellular automaton invented by British mathematician John Horton Conway in 1970. The rules of the Game of Life can be summarized as follows: cells arranged in a square grid can either be alive or dead. A living cell with 2 or 3 living neighbors can survive; a dead cell with 3 living neighbors can be revived; otherwise, the cell dies.

The game prototype looks something like this:

image

GOL2 still references the basic rules of the traditional Game of Life, where players create an initial configuration on the grid, and then cells evolve (live or die) according to the game rules, forming various combinations. Players can use GOL2 tokens to restore selected cells or create new games.

image

GOL2 utilizes blockchain features to generate game content on-chain, but it suffers from overly simple game mechanics and insufficient playability—any "achievements" in the game do not provide players with a sense of accomplishment, and perhaps we can look forward to iterations of native on-chain games.

Current State of On-Chain Game Engines#

If the on-chain game market is established, then the game engines for creating on-chain games also represent a demand-driven infrastructure track.

https://techblogcorner.com/2020/02/06/most-popular-game-engines-for-game-development/

However, game engines are directly related to the game production process and user experience, especially when user-generated content (UGC) plays an important role in games. Therefore, in the early stages of on-chain games, which have not yet been validated, on-chain game engines often bear the responsibility of pioneering a game product. There seem to be two investment thoughts regarding on-chain game engines that are actually one: whether directly making on-chain games or making on-chain game engines, one must first create a game.

The fact about on-chain game engines is that the teams building them are far fewer than those working on on-chain games.

One example of an on-chain game engine is MUD, which is a development framework for complex applications on Ethereum but is more commonly used for developing on-chain games.

It adds some conventions for organizing data and logic and abstracts away low-level complexities, allowing developers to focus on the functionality of the application. It standardizes how data is stored on-chain to provide all network code to synchronize contract and client states. This includes synchronizing states directly from RPC nodes or a general MUD indexer. MUD is MIT licensed, making it fully open-source and free to use.

https://mud.dev/

On November 22, 2022, the development team behind MUD, Lattice, completed an on-chain MineCraft (Minecraft) using MUD—OPCraft.

image

Do you remember the previously mentioned autonomous worlds? Lattice believes OPCraft is an autonomous world: "This is an on-chain 3D voxel world, where every aspect of the world—every river, blade of grass, and patch of snow on a mountaintop—exists on-chain. Every action is executed as an Ethereum transaction in the world." Lattice's idea is to first develop the engine and then develop games through the engine.

On the other hand, the founder of the on-chain game development team Topology on Starknet, GuiltyGyoza, believes that the engine should not be designed first and then the game developed; rather, the engine should be designed based on game development needs. Topology is a team that integrates knowledge and action; they have already developed on-chain games like Isaac and MuMu, and a new on-chain AI fighting game will undergo internal testing in February. By the way, developers in the Starknet ecosystem are developing an on-chain game toolkit called Dojo, and Starknet's development language is Cairo, making it similar to the Cairo version of MUD.

Folius Ventures’s Aiko also proposed a physics + chemistry + time game engine in “Sandbox, Simulation Games, and Fully On-Chain Game Engines”, arguing that fully on-chain games based on physical rules are meaningless because they passively let players "discover" logic. In contrast, game physics (the physical rules players discover during interactions in the game, such as dropping equipment when hitting the ground) provides a more interactive experience for players compared to narrative-based "passive games," making it a form of "active gaming."

On the other hand, Bas1s Ventures's Wonder stated that the current on-chain game engines mainly transmit the conditions for triggering certain key events (such as geographical coordinate information) to the chain in the form of data structures, but a considerable portion of the complete logic is executed on centralized servers. For high-concurrency games like MMORPGs and MOBAs, if all logic is conducted in a decentralized environment, it places high demands on network transmission efficiency and costs to avoid significantly negative impacts on the gaming experience during state transitions.

Beyond on-chain game engines, there are other on-chain game infrastructures, such as gaming guilds and game stores.

Guildly is an on-chain gaming guild that allows players to share accounts and NFTs and is currently in development.

image

Cartridge.gg is a game store on Starknet where players can learn about and access multiple on-chain games. Users can create and log in to accounts by scanning QR codes with their mobile phones without needing a crypto wallet.

image

The Arsenal for On-Chain Games: Starknet#

Well-informed readers will notice that many cases mentioned in this article are related to Starknet, which is Ethereum's ZKR (Layer 2 built on ZK technology), and its on-chain game ecosystem is unique within the entire blockchain ecosystem.

https://medium.com/starkware/part-1-starknet-sovereignty-a-decentralization-proposal-bca3e98a01ef

Starknet is very suitable for deploying on-chain games in terms of performance. On one hand, Starknet can theoretically achieve 9000 TPS, and its unique STARK proof system can merge 60 million L2 transactions into one transaction on Ethereum. Additionally, its ZK-friendly Cairo language has very high compilation efficiency, allowing developers to generate zero-knowledge proofs for their Cairo code, with Gas expected to be as low as 0.001 U. On the other hand, the STARK proof system used has network effects—average proof size and verification time decrease marginally as proof scale increases, simply put, transaction costs decrease as transaction volume increases, making Starknet particularly suitable for on-chain games that require large-scale adoption.

https://eprint.iacr.org/2021/582.pdf

Starknet's contract wallets, designed based on native account abstraction, are also better suited for on-chain game interaction scenarios compared to traditional wallets. Most Ethereum and EVM-compatible public chains/L2s adopt a dual-account design, while Starknet uses a single-account design, where all accounts are contracts, granting users' accounts high programmability. For instance, the commonly used Metamask (traditional EOA wallet) on Ethereum cannot customize specific usage scenarios, functions, or transaction limits for a given authorization, nor does it support multi-signature or password-free payments (session keys), making traditional wallets in blockchains with traditional account designs unsuitable for on-chain game interaction scenarios that require high-frequency authorizations and complex interactions, which is precisely the strength of contract wallets.

Moreover, Starknet emphasizes the incubation of native applications. Its development team StarkWare has hosted multiple hackathons with partners such as MatchBox, Only Dust, Nethermind, and Mask Network, promoting the development of numerous on-chain game teams.

However, Starknet has some issues. On one hand, both Starknet's sequencer and prover currently operate in a centralized manner, and future decentralization protocols and open-sourcing of provers are needed to ensure network decentralization. On the other hand, due to network speed limits, Starknet's performance has not yet been unlocked, and high Gas and network congestion occasionally occur, leading to a poor user experience. A mainnet update is expected in Q1, and large projects are not recommended to be directly deployed on Starknet's mainnet in the short term.

Overall, we still believe Starknet is the most promising system in the entire on-chain game ecosystem, and we will analyze Starknet's technical characteristics, on-chain game ecosystem, and the design and construction of on-chain games in our next research.

Acknowledgments#

Starknet Astro is the most creative media in the Starknet ecosystem, providing cutting-edge and in-depth research. This research is also supported by Bas1s Ventures for some ideas and content, as they are also one of the most cutting-edge and professional investment institutions in Web3.

image

Bas1s Ventures was established in 2021 and is a new international venture capital institution focused on Web3, investing in large-scale applications and technological ecosystems around blockchain, and receiving support from leading traditional gaming companies in Asia and worldwide. Team members have previously worked at well-known companies like Binance, and their investment portfolio includes: Delysium, Mirror World, Highstreet, Xterio, Taker Protocol, and more.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.