Cointime

Download App
iOS & Android

AO is a Paradise for Game Developers

Validated Project

Author: James Sun

Translator: James Sun

Reviewer: Lemon

Source: Content Guild Translation


The AO testnet has been running for nearly six months now, with an increasing number of applications and a continuously flourishing ecosystem. Many developers originally from the EVM ecosystem, including myself, are gradually trying to use AO to build products. During development, many developers still stick to Ethereum's programming mindset and habits, directly treating processes as smart contracts. Of course, there's nothing wrong with this approach. Implementations like token blueprints and atomic assets can essentially be directly mapped to ERC-20 and ERC-721. It's fair to say that most process code on AO looks very much like smart contracts.

According to AO's whitepaper, AO is defined as an Actor Oriented Machine, meaning that Actors, or processes, are the fundamental units of this system. Compared to smart contracts, processes are more akin to computer processes, with cheap storage and the ability to execute in parallel. Starting a process is not expensive, and it can even be used and discarded on-the-fly. The low cost and parallelism make AO's programming paradigm (actor oriented programming) quite different from that of smart contracts. Here, I would like to expand on its application in gaming scenarios.

New Gameplay in AO Games

Imagine we're in a multiplayer online RPG similar to World of Warcraft, which we'll call AO World. Every character operated by a player is a process. Players can control this process to fight monsters, level up, trade equipment, and engage in combat. When a player logs off, World of Warcraft's approach is to save the character's current position and state, releasing the resources occupied by the character from the server's memory. Other players see the character become transparent with a system message indicating that a friend has gone offline. In AO World, when a player logs off, the process still exists and won't be released. Of course, we can add logic to the code to make the process refuse to handle any received messages, achieving a "pseudo-offline" state. However, a better approach is to give the process an "autopilot" mode, allowing the character to continue fighting monsters, leveling up, earning money, and even trading equipment while the player is AFK, essentially turning into an NPC. This "autopilot" code can be written by the player or even driven by AI to behave as complexly as a real player. With such a design, AO World will never suffer from ghost town phenomena caused by player attrition and will always be lively. Additionally, players can rent out their characters without worrying about exposing usernames and passwords, as is the case with World of Warcraft.

Regarding game equipment, each piece in AO World can also be an individual process, just like in the real physical world. For example, the iron sword held by Character A and the iron sword held by Character B might be identical when first forged (except for the forging time). However, over time, the processes of these iron swords record their transaction information and kill records, making them increasingly unique. Iron Sword A might have killed three chickens, while Iron Sword B might have slain a dragon, giving Sword B "cultural value." We could even make swords that are bloodstained from dragons more powerful. Recording the entire history of each piece of equipment has never been achieved in traditional games or blockchain games, but it comes naturally in AO's programming paradigm. In World of Warcraft, player communities often design challenges, such as a level 1 dark elf running from Darnassus (elf starting point) to Stormwind (human starting point), with the entire process being recorded to prevent cheating. In AO World, the same challenge can be done directly, as the entire history cannot be falsified, making the act of completion itself the validation. For entertainment purposes, it's still better to record the whole process.

How About AO's Performance?

At this point, game developers might ask: With so many players and equipment, each being an independent process, will AO World's state explode? Will an increase in concurrent players cause transaction congestion in AO World?

My answer is no; AO World will still run smoothly. First, regarding the state explosion problem: Unlike EVM's global state, each process's state is independent, meaning there is no global state, so a single physical machine doesn't need to store all AO's data. AO's computational resources can be dynamically allocated by CU, allowing for horizontal scalability. Developers can focus solely on game logic without worrying about cumbersome server maintenance issues.

Regarding transaction congestion, EVM is serial in computation, and no matter what layer 2 technology is used to speed it up, there will always be a processing speed cap. Iron Sword A hitting a chicken and Iron Sword B hitting a dragon must happen sequentially. However, AO is different: Iron Sword A, Chicken, Iron Sword B, and Dragon are four processes that do not share memory and do not need a world clock. The hit events of Iron Sword A and Iron Sword B can be computed in parallel. Therefore, AO structurally does not have transaction congestion issues.

Continuous Operation and Flexible Combination

In traditional games, once a game stops making money or its license expires, the operating company will shut down the servers. Sometimes, to make the shutdown dramatic, they'll create an apocalyptic event where an unbeatable boss kills all players. In AO, once game characters and equipment are developed, they exist forever (at least as long as AO exists) and are always online. Even if developers decide to stop maintenance, other developers can seamlessly take over. Developers can even allow players to create their own DLCs, characters, and weapons right from the start, collaboratively building the entire game.

On AO, all processes can communicate with each other. What does this imply? It means that all applications on AO, including all games, are inherently interconnected. Let's stretch our imagination: Player A buys an iron mine in a Monopoly game, takes the produced iron ore to AO World to forge an iron sword, and then uses the sword to kill a mushroom monster in the Mario world. Any bizarre combination can be achieved, much like how Ready Player One features Gundam and Ultraman fighting side by side. Traditional game developers often scour asset libraries and reskin them. Art resources often take up more than half of a game's development cost. In AO's gaming world, the richness of materials will grow over time, making it easier for subsequent developers to pick up and use ready-made materials, items, and eventually as simple as assembling Lego bricks, making game development accessible to everyone.

Conclusion

In summary, AO has unique advantages in gaming: characters and items never go offline or get destroyed, and historical records are fully preserved. All game resources can be fully circulated and highly reused, making development easier over time. AO's storage and computational resources can be elastically expanded, eliminating concerns about server configuration and management. Processes can handle tasks in parallel, avoiding congestion. These features make AO a haven for game developers. However, achieving this goal requires a continuously enriched ecosystem and the ongoing participation of game developers to build together.


 🏆 Spot typos, grammatical errors, or inaccuracies in this article? Report and Earn !

Disclaimer: This article does not represent the views of PermaDAO. PermaDAO does not provide investment advice or endorse any projects. Readers should comply with their country's laws when engaging in Web3 activities.

🔗 More about PermaDAO :Website | Twitter | Telegram | Discord | MediumYoutube

Comments

All Comments

Recommended for you

  • Putin: Russia "supports" Harris, calls her smile "contagious"

    According to foreign media such as TASS and Russia's Sputnik News, Jinse Finance reported that on the afternoon of September 5th local time, Russian President Putin said at the plenary session of the Eastern Economic Forum 2024 that Russia will "support" the US Democratic Party presidential candidate and vice president Harris as recommended by the US President Biden in the upcoming US presidential election. When asked how he viewed the 2024 US election, Putin said it was the choice of the American people. The new US president will be elected by the American people, and Russia will respect the choice of the American people. Putin also said that just as Biden suggested his supporters to support Harris, "we will do the same, we will support her." The report said that Putin also joked that Harris' laughter is "expressive and infectious," which shows that "she is doing everything well." He added that this may mean that she will avoid further sanctions against Russia.

  • An ETH whale repurchased 5,153 ETH with 12.23 million USDT 20 minutes ago

    A certain high-frequency trading ETH whale monitored by on-chain analyst Yu Jin bought 5,153 ETH with 12.23 million USDT 20 minutes ago.

  • CFTC: Uniswap Labs has actively cooperated with the investigation and only needs to pay a fine of US$175,000

    The CFTC has filed a lawsuit against Uniswap Labs and reached a settlement. It was found that Uniswap Labs illegally provided leveraged or margined retail commodity transactions of digital assets through a decentralized digital asset trading protocol. Uniswap Labs was required to pay a civil penalty of $175,000 and cease violations of the Commodity Exchange Act (CEA). The CFTC acknowledged that Uniswap Labs actively cooperated with law enforcement agencies in the investigation and reduced the civil penalty.

  • Federal Reserve Beige Book: Respondents generally expect economic activity to remain stable or improve

    The Federal Reserve's Beige Book pointed out that economic activity in three regions has slightly increased, while the number of regions reporting flat or declining economic activity has increased from five in the previous quarter to nine in this quarter. Overall employment levels remain stable, although some reports indicate that companies are only filling necessary positions, reducing working hours and shifts, or reducing overall employment levels through natural attrition. However, reports of layoffs are still rare. Generally speaking, wage growth is moderate, and the growth rate of labor input costs and sales prices ranges from slight to moderate. Consumer spending has declined in most regions, while in the previous reporting period, consumer spending remained stable overall.

  • Puffpaw Completes $6 Million Seed Round with Lemniscap Ventures as Participant

    Puffpaw has announced the completion of a $6 million seed round of financing, with participation from Lemniscap Ventures. The Puffpaw project plans to launch a blockchain-enabled electronic cigarette aimed at helping users reduce nicotine intake through token incentives. The project encourages users to quit smoking by recording their smoking habits and rewarding them with tokens. Puffpaw's token economics aims to cover 30% of the cost of users' first month of using their product and provide social rewards. The project also considers possible system abuse, but the issue of users potentially reporting smoking habits dishonestly is not yet clear.

  • Affected by Ethervista and others, Ethereum Gas temporarily rose to 33gwei

    According to Etherscan, due to the influence of contracts such as Ethervista, Ethereum Gas has temporarily risen to 33gwei, with the top three being EthervistaRouter, UniswapRouter, and BananaGun.

  • The probability of the Fed cutting interest rates by 25 basis points in September is 55%.

    The probability of the Federal Reserve cutting interest rates by 25 basis points in September is 55.0%, while the probability of a 50 basis point cut is 45.0%. The probability of the Federal Reserve cutting interest rates by a cumulative 50 basis points by November is 32.1%, by 75 basis points is 49.2%, and by 100 basis points is 18.8%.

  • Nvidia: No subpoena received from the US Department of Justice

    Nvidia (NVDA.O) stated that it has not received a subpoena from the US Department of Justice.

  • US SEC again postpones decision on environmentally friendly Bitcoin ETF listing application

    The US Securities and Exchange Commission (SEC) has once again postponed its final decision on the New York Stock Exchange (NYSE) Arca's application for a carbon offset Bitcoin ETF. According to a document dated September 4th, the decision has been extended to November 21st. The ETF aims to provide a Bitcoin investment exposure in an environmentally friendly way by offsetting carbon emissions, tracking an investment portfolio composed of 80% Bitcoin and 20% carbon credit futures. Tidal Investments submitted the fund registration application in December 2023, while NYSE Arca submitted the initial application in March. Concerns have been raised about the environmental impact of Bitcoin mining, with the International Monetary Fund (IMF) reporting that cryptocurrency mining accounts for 1% of global greenhouse gas emissions. The delay in this decision also includes the postponement of approval for the Nasdaq One-Stop Cryptocurrency Investment Portfolio ETF.

  • Pudgy Penguins CEO:何为消费级加密货币应用

    加密货币行业中的一些 builder 努力地重复造轮。如今,一些突破性的消费级产品,若是能基于区块链打造并利用好加密货币的激励机制,其规模可能是现在的 10 倍。与其试图重新创建一种模式,不如利用现有的模式进行加密化改造。我认为,许多尚未面世的消费级加密货币应用在 Web2 中都有对应的产品,它们正等待着通过加密货币释放巨大的增长潜力。