Now is the best time to develop full-chain games
We start with the set questions from the Meet the FOCGERS interview series.
JinseFinanceAuthor: CaptainZ, GametaverseDAO researcher Source: X, @hiCaptainZ
Full-chain games have made very significant progress in 2023 and are increasingly attracting got everyone's attention. We believe there are several reasons for this.
Jump Crypto clarified the concept of full-chain games at the beginning of the year The connotation and extension of the concept make a clear distinction between the two chain game sub-tracks, full-chain games and GameFi.
ECS-based game engines began to appear at the beginning of the year, making it more convenient to build complex applications on the chain.
The emergence of Ticking Chain has made a qualitative leap in the logical frame refresh rate of full-chain games, thus creating the type of full-chain games Expanded from turn-based to real-time strategy classes that require high refresh rates.
AA wallet will become popular in 2023, which can greatly improve the operating experience of the whole chain game. From now on, there is no need to worry about every step. The on-chain operation is performed for signature authorization.
ZK technology has developed rapidly with the popularity of ZK-Rollup, helping the entire chain of games expand from making information-symmetric games to " Asymmetric Information Games”.
The narrative of Autonomous Worlds began to seep from the geek circle to the VC circle, mainly due to two The first of the relatively large industry events is the "Autonomous Worlds Hackathon" online hackathon organized by ETHGlobal, 0xPARC and Lattice in May. The other is an offline conference called “Autonomous Worlds Assembly” held in Istanbul in November.
A dozen full-chain games will enter the testnet stage in 2023, initially demonstrating playability.
In 2023, the blockchain infrastructure will become increasingly involved in Layer 2, and the application layer such as finance and social lacks sufficient innovation. Therefore, The full-chain game track that complies with "Crypto Native" has become the leader in application layer narrative.
The following will be elaborated from several aspects such as infrastructure, narrative logic, full-chain games, and industry financing.
We believe that the infrastructure of the full-chain game is the game engine, Ticking Chain , ZKP-based information hiding system and AA account.
Game An engine is a software framework used for developing and creating video games. It includes many core functions required for game development. For traditional Web2 games, it generally includes rendering engines, audio processing, physics simulation and animation systems, etc. By using a game engine, developers can focus on game design and creativity without having to build an entire technical infrastructure from scratch. Game engines provide game developers with a fast and efficient tool to reduce development costs and time.
For games on the entire chain, the same We need a tool that can help developers quickly deploy game logic. This can not only shorten the development cycle, but also provide a unified data standard for subsequent iterative development and interoperability in the open ecosystem. If we regard the blockchain system as a distributed database, it is not easy to store and read game data efficiently in this distributed database, build large smart contracts, and synchronize with the front-end status in a timely manner. things. The full-chain game engine based on ECS architecture came into being.
ECS (entity-component-system) is essentially a modeling method of data structure, and its core lies in how to store and organize data.
Entity: In ECS mode, entity is an abstract concept. It does not hold data directly, but associates data through components. An entity can be viewed as a container for one or more components, and its main function is to provide a unique identifier for the component.
Component: Component is the carrier of data. In ECS mode, all data is encapsulated in components. Each component represents a specific attribute or behavior, such as position, speed, color, etc. Components only contain data and do not contain any logic or behavior.
System: The system is where data is processed. The system determines how to handle entities based on their components. Each system has one or more specific tasks, such as rendering, physics simulation, AI logic, etc.
it Separating data (components) and behavior (systems) makes data storage and processing more flexible and efficient. The advantages of this architecture are:
Composability: By combining different components, you can Create entities with a variety of properties and behaviors without creating numerous classes or structures.
Data locality: Since components only contain data, related data can be stored closely together, improving cache utilization. , thereby improving performance.
Reusability: The system only cares about the data, not which entity the data comes from, so it can be reused among multiple entities same system.
Parallelism: Due to the separation of data and behavior, parallel processing of data in a multi-threaded environment becomes easier.
Although Jump Crypto (@jump_) also proposed an ARC (Action Registry Core) architecture game engine, we believe that this architecture is only a variant of the ECS architecture and has many limitations, so it has been Some claim that the entire chain game engine architecture adopts the ECS architecture.
MUD: Lattice (@latticexyz)’s MUD is the oldest and most famous full-chain game engine in the Web3 field. In the first generation version, it was clearly stated that MUDv1 is a framework based on ECS. In the middle of the year, Lattice announced the V2 version, which made huge changes to the overall architecture of MUD. MUDv2 includes: Store (an on-chain database), World (an entry point framework that provides standardized access control, upgrades and modules), rapid development tools based on Foundry, client data storage that can reflect the state of the chain, and MODE (a query that can use SQL and reflect the state of your chain) Postgres database). At the end of the year, MUD introduced its own separate Layer2 rollup (based on OP Stack) named Red Stone. Currently MUD only works on EVM-compatible chains.
Dojo: In addition to being written in Solidity, StarkNet's Cairo is also a commonly used language for games on the entire chain. However, MUD doesn't play well with Cairo. Therefore, the founders of Realms and Briq, two active projects in the StarkNet ecosystem, forked MUD and jointly developed Dojo (@ohayo_dojo), a full-chain engine based on Cairo.
World Engine: Argus (@ArgusLabs_) is a sharded Rollup framework specially designed for full-chain games. World Engine is divided into two key parts. The first part is the core, consisting of two key elements: the EVM Base Shard, a hybrid execution layer and sequencer that supports sharding, and the Game Shard, a high-performance game engine plus execution layer. In addition to this, there are peripheral components such as transaction relay and networking code for client-server communication, and the ZK Cloud prover for ZK games like Dark Forest. Simply put, World Engine also uses the ECS architecture and comes with an EVM-compatible Layer2 chain, and the chain can achieve efficient automatic "logical frame" refresh.
Keystone: Curio (@0xcurio) open sourced Keystone in May, an L2 chain with built-in game Tick and ECS full-chain game engines. The chain is based on OP Produced by Stack. This design allows for faster performance for all ECS operations, such as queries and state settings, compared to writing ECS state via smart contracts. Through custom precompilation, smart contracts can access the underlying ECS chain state. Game logic can be written in Go instead of Solidity, which can be massively parallelized.
Other chains have also developed different full-chain game engines based on the ECS architecture, such as Obelisk (@0xObeliskLabs) based on the MOVE language, BOLT (@magicblock) based on Solana ) etc.
Traditional games are loop-based because Their core operating mechanism is the game loop. A game loop is an iterative process that typically includes the steps of processing user input, updating game state, and rendering the game world. This loop continues while the game is running, often running dozens to hundreds of times per second to keep the game world fluid. In this architecture, game systems (such as physics engines, AI systems, etc.) inspect and process the game entities and components they care about in each loop.
However, the architecture of the blockchain is push-based. Blockchain is a distributed database that shares and stores information through nodes in the network. When a node generates a new transaction (such as transfer, contract call, etc.), the transaction will be pushed to the network. After receiving the transaction, other nodes will verify it and add it to the blockchain. This is a passive process. Nodes do not actively look for new transactions, but wait for other nodes in the network to send new transactions. Therefore, the blockchain architecture is said to be push-based.
In traditional Web2 games, the execution of the game loop function is also called "logical frame", which can be integrated into the game back-end server or set up as a separate "Heartbeat server". In full-chain games, logical frame synchronization generally uses "lazy update" and "manual ticking" to perform active game loops. The disadvantage of this is that the refresh rate of the logical frame is relatively low and the gas fee generated is relatively high. @therealbytes Efficient, automated logical frame synchronization is achieved by precompiling loop functions to chain nodes.
The representatives here are World Engine and Keystone. They have integrated the ticking chain function into the ECS architecture, thereby synchronizing the entire chain game logic frame. The refresh rate has been increased by an order of magnitude, expanding the range of themes that can be produced in full-chain games.
Because every step of the full-chain game operation needs to be on-chain, this It brings huge inconvenience in use: it is impossible for users to sign and authorize transactions at every step. The solution to this problem was to set up a “Burner Wallet”.
The so-called Burner Wallet is a temporary wallet that is automatically generated when the user visits the game website. The private key is stored in the local browser cache and automatically Authorize each transaction. This can only be seen as a temporary solution. After all, as long as the user refreshes the browser cache, the account will disappear permanently. and lacks adequate security and privacy.
The emergence of AA account abstract wallet completely solves this problem. We know that there are currently two types of accounts on Ethereum: the first address is an externally owned account (EOA), often called a wallet account, which consists of a private key and a public key. It needs to authorize and pay gas for each transaction. . The other is a smart contract account. Various DApps deployed on Ethereum run in the form of smart contracts.
Two routes for account abstraction: compatible 4337 solution and native account abstraction solution. Currently Arbitrum, Polygon, Optimism and BNB do not have natively integrated account abstractions. More are supported through 4337 related products (such as Biconomy, Stackup, etc.), and the infrastructure is still under construction; while Starknet and zkSync chains support native account abstraction.
AA wallet can integrate Session keys in Paymaster, that is, the user pre-approves a full-chain game transaction based on a set of parameters, such as a given duration, a Maximum Gas, maximum trading volume of a specific token, or specific functions of a specific contract, etc. This can achieve player friendliness, that is, uninterrupted gameplay without the need for signature confirmation for every operation.
Another development is ERC-6551. It provides a smart contract account for all ERC-721 Tokens. These accounts not only enable ERC-721 Tokens to own various assets such as ERC-20, ERC-721, ERC-1155, etc., but also enable ERC-721 Tokens to interact with various Application interaction. In the field of full-chain games, simultaneous transfer of game assets and game IDs can be achieved.
"The fog of war" is a common Mechanics in games, typical examples include "StarCraft" and "Warcraft 3". This design hides information by covering certain areas of the game map, which are only revealed when the player explores those areas. This mechanism increases the unpredictability of the game environment and is a typical feature of so-called incomplete information games. Most popular MMOs employ imperfect information game mechanics, which gives players more room to explore and strategize.
However, in blockchain technology, data is usually fully open and transparent, which makes it difficult to implement incomplete information mechanisms. However, by using zero-knowledge proof technology zkSNARKs, the Dark Forest game successfully maintains the privacy of players while requiring them to publicly submit verifiable valid actions. In this way, Dark Forest creates a game environment with incomplete information on the blockchain.
However, this complex information hiding method requires customized ZK circuit programming, so extensive information hiding cannot be realized in full-chain games. This This is the reason why almost all full-chain games in production in 2023 will not have "fog of war". The market still needs a universal ZK circuit that can implement "fog of war" functions. Several teams are trying to solve this problem, such as Zypher Games (@Zypher_Games), which launched the zk-Game SDK through optimized wasm and precompiled contracts. , realizing a high-performance, low-cost decentralized shuffling process. Its on-chain randomness no longer requires traditional VRF, achieving decentralization and fair shuffling and gaming. The zero-knowledge game engine UZKGE, launched at the same time, features a highly optimized Plonk library that complements a rapidly expanding zero-knowledge (ZK) circuit library, carefully crafted to meet the different needs of game developers. These circuits facilitate complex calculations and ensure the integrity of game mechanics while protecting player privacy. These encryption technologies allow game developers to verify critical game data without revealing underlying details.
In October, 0xPARC's @FlynnCalcutt published an article, "ZK Hunt: an exploration into the unknown", which introduced how to use The "Commitment" method, ZK circuit, combined with the token penalty method can achieve a variety of on-chain information hiding, providing new ideas for making full-chain games with asymmetric information.
Jumpy Crypto’s Shanav K Mehta and Dev Bharel published in January The series of articles titled "Gaming Infrastructure" proposes the classification of on-chain games, the specific definition of full-chain games, the benefits of making full-chain games, and the full-chain game engine architecture based on ARC. At this point, games on the entire chain have become a deterministic track.
We now know that a simple definition is this:
Full-chain game ( fully onchain game) means: all game logic and status (assets and others) are on the chain and implemented through smart contracts. Sometimes, we also use the term “onchain game” to refer to it. In the literature on on-chain gaming, we often see terms like “Autonomous World” or equivalently “On-Chain Reality”.
But the term full-chain game is more of a technical discussion. The more popular narrative term currently is "Autonomous World", which comes from Ludens of Lattic. He wrote a small paper in 2022 to explain his ideas, titled "Autonomous Worlds".
In the article, Ludens believes that the autonomous world is a world with a "blockchain bottom layer", that is, the autonomous world has strict narrative boundaries and formalized introduction rules. , it does not require privileged individuals to sustain its existence.
This sentence describes the three core characteristics of the "autonomous world":
Hard narrative boundaries: This means that the world has a set of fixed and immutable baseline rules. They do not change with time or circumstances, providing a sense of stability to the world.
Formalized introduction rule: This indicates that there is a clear and fixed set of rules for entering and participating in this world. These rules include how to be part of the world and how to interact within it.
No privileged individuals are needed to sustain its existence: the world is self-sustaining and does not depend on any particular individual or organization for its existence Maintenance or management.
In the concept of Autonomous World, the world does not specifically refer to a place where humans live, but a container, a place that accommodates rules and narratives. Strictly speaking, the concepts of full-chain games and autonomous worlds are not completely equivalent. All autonomous worlds are full-chain games, but not all full-chain games are autonomous worlds. Full-chain games can have no permissions. As the earth expands, it becomes an autonomous world.
In addition to the narrative of the autonomous world, there is another relatively simple narrative to understand: the game on the entire chain is actually A "decentralized game". This narrative mainly imitates the formulation of Decentralized Finance: since writing financial rules into smart contracts is called "DeFi", then naturally writing game rules into smart contracts is called "DeGame".
In this year, there have been many full-chain games On-chain games have entered the testing stage. Although most of them are still rough, they have initially completed proof of concept, showing a certain degree of playability and combinatoriality.
Sky Strife (@skystrifeHQ) is a real-time Strategy game (RTS) built using the MUD engine. It's made by Lattice's in-house game designers and developers. The gameplay of Sky Strife is similar to other real-time strategy games. Taking the four-player map as an example, after the start, the four players are located in their respective main bases in the four corners of the map. Players' goal is to compete for more resources to produce soldiers and ultimately eliminate other players. The resource in the game is Gold, expressed in grams. Players can consume Gold in the main base to produce units with different attack power and movement speed.
Sky Strife starts Season 0 in November A new round of public beta activities, and uses the new Layer 2 expansion solution designed by Lattice specifically for full-chain games: Redstone.
Primodium (@primodiumgame) is a construction simulation developed based on MUD engine It is a game whose mechanism is based on the famous business simulation game Factorio "Factorio". In Primodium, you need to design and build different automatic production lines, combine conveyor belts, various factories, and natural resources on the map with each other to create your own automated production building complex and expand your empire on the planet. The industrial empire continues to produce increasingly complex industrial products. Game activities can be divided into collection, transportation, processing, construction, scientific research and combat. Players need to continuously collect resources, upgrade technology, build weapons, defeat other players, and ultimately dominate the planet in the game.
Cellula (@cellulalifegame) is a full-chain artificial life simulation game. Players can explore, cultivate, evolve and collect unique "lives" in the game. In this game, the rules of Conway's Game of Life are seen as the genetic code of "living beings", determining their form and vitality. By using the game’s crafting table, players can freely create various genetic sequences and breed their own “life” on the chain. These "life" have unique appearance and attributes, showing a variety of life forms.
The Ethereum block height serves as a role in the game "Time", each "life" will grow and evolve in the Ethereum space-time ecosystem, just like aquatic creatures in the real world gradually adapt to land life and eventually become amphibians. However, the cycle of life is always accompanied by birth and death - when a "life" loses its vitality, it will die permanently on the chain to make room for the birth of a new "life".
Loot Survivor (@LootRealms) is a text dungeon adventure game , based on Starknet's Dojo, is the first game in the Realms autonomous world ecosystem. It was developed by Loothero, a senior member of Bibliotheca DAO, and uses a unique Play2Die mechanism. Inspired by the backstory and gameplay of the original Loot Project community, the game will see players battle beasts, clear obstacles, collect gear to survive, and compete for higher positions in the leaderboards.
Dark Frontier (@DarkFrontierGG) is a remake of the famous full-chain game "Dark Forest", with exactly the same gameplay. It is a remake of the famous full-chain game "Dark Forest", and the gameplay is exactly the same. In Dark Frontier, each player controls his own planet and needs to collect resources on the planet, build bases and develop technology to improve his combat capabilities. Players can use resource production buildings, technological research, and weapons manufacturing facilities to gain an advantage in combat. As players fly through interstellar space, they need to discover other planets and resources through constant reconnaissance and exploration. When two players discover the same planet at the same time, they can choose to attack the planet or choose to escape. When attacking, players need to use their own weapons to attack the opponent's base and seize the opponent's resources.
The game is remade by Argus based on World Engine, The screen UI has greatly improved compared to the first version, and the public beta has been launched in December.
There are more than a dozen other full-chain games in production or in very early testing stages, such as Gabby World, Infuence, Mississippi, Dope Wars, Mithraeum , Word3, PixeLAW, Shaoshin, Pirate Nation, etc., which will not be introduced in detail here.
Full-chain games as blockchain games (Blockchain Gaming) A sub-track of . In the proof-of-concept stage in 2023, there are not many projects that have received public financing. Let’s introduce them one by one.
Game engine Argus Labs completed a $10 million seed round of financing, led by Haun Ventures and Elad Gil, Balaji Srinivasan, Siqi Chen, Kevin Aluwi, Sunny Agarwal, Calvin Liu, Scott Moore, Robot Ventures, Anagram and Dispersion Capital also participated.
Game engine Curio Research completed a $2.9 million seed round of financing, led by Bain Capital Crypto, TCG Crypto, Zonff Partners, Formless Capital , Smrti Lab, Robot Ventures and multiple angel investors participated in the investment.
Game engine Paima Studios received a $1.4 million grant from Cardano, and the Paima code is available on Github, allowing the creation of NFT-related A connected on-chain game where the game state can be associated with NFTs.
Proof of Play, a blockchain gaming startup founded by FarmVille co-founder Amitt Mahajan, completed a $33 million seed round of financing, a16z It co-led the round with Greenoaks, with participation from Mercury, Firebase, Zynga and Alchemy, and individual investors including Ravikant, Balaji Srinivasan, Twitch founders Justin Kan and Emmett Shear. Proof of Play aims to create fun and easy-to-use blockchain games. Its first social role-playing game called "Pirate Nation" released a beta version in December last year, in which players can fight, craft, trade and Explore and look for digital tokens labeled PGLD.
Full-chain game Citadel announced in November that it had completed a US$3.3 million seed round of financing, led by 1kx, Shima Capital, Hashed, Matchbox DAO , Ready Player DAO, etc. participated in the investment.
We start with the set questions from the Meet the FOCGERS interview series.
JinseFinanceMagicBlock is a gaming framework built on Solana that aims to facilitate the development of games and applications across the entire chain.
JinseFinanceCurrently, TON has gained a lot of traffic through Web3 social games. Which other public chains have active game users, and which public chains are actively expanding games?
JinseFinanceDeFi, games, analogy DeFi’s on-chain game composability Golden Finance, learn from DeFi.
JinseFinanceStarknet is a zero-knowledge (zk) Rollup.
JinseFinanceNFT game development realizes true digital asset ownership through blockchain technology, promotes full-chain game innovation, and reshapes the future of the game industry.
JinseFinanceThe hacker exploited a vulnerability in the IAVL TREE to forge a malicious withdrawal message.
Numen Cyber LabsFaced with a decline in cryptocurrency values, Immutable Games Studio is currently downsizing and terminating the job contracts of multiple ...
BitcoinistOver the past few years, cryptocurrency has gained a lot of attention. The use of advanced blockchain technology is set ...
Bitcoinist