Future blockchain-game: Gameboy on TEZOS L2 DeKU
We explain how cool it is for the blockchain, and that in theory you can launch on sideches based on DEKU.
Remember what DEKU is
DEKU is a framework for creating TEZOS sides, on which you can start any virtual machine and application.
Since these are not rolls, sides created using DEKU should have their own nodes and a consensus algorithm. Sadchans themselves are associated with Tezos using smart contracts on the Tezos network, in which the state of the sidetchain is regularly updated.
With the help of DEKU, you can achieve much more throughput (transactions per second) than when using any other L1-solutions. In theory, the speed of creating blocks in Sidchane can be limited only by delayed network equipment – below than 100 milliseconds. This feature opens up opportunities for launching any applications on the blockchain, from Defi to games. More detailed – in the review.
Pokemon Red on Deku
Deniel Hinns made a sideche on Deku to work with the Gameboy Camlboy OCAML emulator. He wrote a virtual machine, which retained the condition of the emulator and the output of the screen of the emulated prefix in each block. The internal watch of the console is tied to the speed of creating blocks in Sidchan. In this case, Sidechan can already be called Application-Specific Blockchain or Appchaein.
On the working machine, Deniel launched four nodes with a sidechand and emulator, which reached a consensus and recorded the condition of the emulator and five frames of the game in the block. The shots themselves rendered in a separate process, roughly speaking – in the client of the game.
To better realize the meaning of the work done, imagine that the developer was implemented by the Gameboy emulator in a smart contract on Tezos. Each beat of the emulated processor, pressing the button and the intra -game event are recorded in this contract. If someone really did this, then the game would generate one frame every 15 seconds, that is, once on the block. But Deku-Network-Rasponsive, generates blocks at the request of the client and on a fairly powerful equipment can renders the game at 60 FPS.
How appchans can change blockchain games and applications
In 2014, an anonymous developer from Australia launched Pokemon Red on Twitch and gave control of the game to the audience. They introduced the team’s chat, and the emulator performed them. Due to the delay in the input and the fact that each viewer wrote the teams without looking back at others, in the early days the hero of the game constantly walked in circles, stored every few seconds and looked at PoKedex. But then the audience was cooperated and the game was held in 16 days.
Such a multiplayer format in a singlePleler game can be implemented on DEKU. Players send commands, Sidchane’s virtual machine determines the majority opinion and transfers the result to enter the emulator. All players receive a new state of the game in the next block.
This is only one example. On the appchae, you can implement almost any game or application that require updating the condition 1-2 times per second. For example, classic Mmorpg like Runescape or step by step Rogue-Like should work on DEKU sideca as smoothly as on centralized servers. At the same time, decentralized versions of the games will have advantages over centralized:
- Full and tested history of the states of the game. With its help, it will be possible to solve controversial situations like Dupa of objects or the use of bugs;
- built -in and understandable monetization. Players pay transaction commissions for the performance of actions for performing actions;
- Simplified registration https://gagarin.news/news/bitcoin-hater-peter-schiff-is-ready-to-sell-his-bank-for-btc/ and high account security. Users are logged through a wallet without connecting a third -party 2FA, confirmation of mail and risk of losing an account through access restoration or password brackets.
If you deviate from the games, then the sideches will improve any other decentralized applications. For example, Defi teams will be able to make an appcha on a built-in trading nucleus for launching a decentralized exchange with a book of orders, NFT lovers are collective graphic editors like a social experiment R/Place.
Subscribe to the social networks Tezos Ukraine so as not to miss anything: