Skip to content

This was a small project to test how difficult it would be to store game info directly on the blockchain instead of using an URI

Notifications You must be signed in to change notification settings

Liquid-Blocks/Crypto-Chunk-TestGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

| CRYPTO CHUNK |


Welcome to this sample project!

visit the app: https://cryptochunk.netlify.app/

The goal of this project was to test some ways to store a bunch of information directly on the blockchain instead of using a p2p storage.

Observations:

By using a mapping(blockLocation => BlockColor) it is easy to store all the information. The problem with this storage method, there is no way to extract all the modified blocks in a single shot without using a loop or making multiple calls to a get method.

The conclusion is:

It is probably possible to store the information of a game map on the chain but it would need a way faster method to extract the information.

How to start and test

  1. start by connecting to metamask on the Bsc Testnet
  2. click load chunk to see the blocks
  3. Add some blocks to the chunk
  4. Once a few blocks have been placed, click save progress to send the changes to the blockchain
  5. To start over click reset chunk

About

This was a small project to test how difficult it would be to store game info directly on the blockchain instead of using an URI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published