NextColony Intel #4steemCreated with Sketch.

in #nextcolony5 years ago (edited)

Let's have a look at the NextColony game architecture. This will explain the nature of a blockchain games in general and provide some insight into our game.

Warning: This might be a little bit technical.

004gamearchitecture.png

Let's see what happens when a gamer clicks a button in the web app:

  1. The user clicks a button to produce a ship in the web client.
  2. We use SteemConnect and the authority we got from the login to create a transaction with custom information attached.
  3. The transaction with the custom information to build a ship is sent to the steem blockchain and will be included in a block.
  4. We load the transaction out of the Steem blockchain with our game server.
  5. We process all the streamed transactions from the Steem blockchain and apply our game logic and store the results in the database.
  6. The web client reads the game state out of our back-end server and can display the newly built ship.

Some implications of this architecture (and blockchain gaming):

  • Every game activity is issued as a blockchain transaction.
  • The game can only be as fast as the blockchain. Luckily steem is fast.
  • The entire game state can be replayed from the steem blockchain (for example if the game DB is wiped).
  • Users can also play the game by issuing blockchain transactions through another web client or bot.
  • All consistency checks are done in the game server and illegal blockchain transactions are filtered out there. (For example building ships without resources could be issued as a blockchain transaction but would be rejected by the game server.)
  • The game state is always known to everyone as the blockchain information and all activity is public and decentralized.

Let's look at two game concepts of NextColony that we designed in order to leverage the blockchain game approach:

  • We create new planets through exploration randomly by using the blockchain ID's as seeds.
    • This means that we can generate a unique galaxy while the game is played
    • We can offer unexplored space and exploration even though the blockchain is fully public
    • It also means that we can replay and recreate the random creation of planets based on the blockchain information
    • The random creation can be verified with the blockchain and our algorithm.
  • We create unique id's for planets/items based on the blockchain.
    • This allows gifting of planets/items to other users with full tractability and fully identification of the item
    • It will also allow trading of planets/items like you know from other blockchain games.

That's it for now. Stay tuned for more insights into NextColony and blockchain game concepts.


You can find a deep dive into id generation and randomness by @holger80 here: https://steemit.com/nextcolony/@holger80/nextcolony-about-the-unique-id-generation-and-rng

Sort:  

Not too technical at all :)

Good. That was my hope.

To listen to the audio version of this article click on the play image.

Brought to you by @tts. If you find it useful please consider upvoting this reply.

You can find a deep dive into id generation and randomness by @holger80 here: https://steemit.com/nextcolony/@holger80/nextcolony-about-the-unique-id-generation-and-rng

Looking forward to Keychain implementation :)

Great technical info. I can not wait to see this!

I hope this game will support Keychain sine every transaction need to be signed its more convinient and faster for the User.
Are you guys also working on a market place where we can trade our items?

Posted using Partiko Android

Yeah. Keychain would be nice but we won't have it at launch most likely.

You will already be able to gift items to other users and we will also look into trading.

I hope this game will support Keychain since every transaction need to be signed its more convinient and faster for the User.
Are you guys also working on a market place where we can trade our items?

Posted using Partiko Android

@jarunik You have received a 100% upvote from @botreporter because this post did not use any bidbots and you have not used bidbots in the last 30 days!

Upvoting this comment will help keep this service running.

Coin Marketplace

STEEM 0.26
TRX 0.11
JST 0.032
BTC 63754.85
ETH 3055.95
USDT 1.00
SBD 3.85