Inspiration

PixelBattle is inspired by the interesting social experiment appeared on Reddit in 2017. The experiment was based in a subreddit called r/place, in which users could place a single colored pixel on an online canvas of one million pixel squares. The experiment was praised for creating a sense of collectivism at a time when the Internet was to a great extent fractured and polarized. Several works of pixel art sprouted from the collaboration of the thousands of subreddit communities, varying from fictional characters and internet memes to patriotic flags, LGBT flags, and recreations of famous pieces of artwork such as the Mona Lisa and The Starry Night. The experiment lasted 3 days and at the time of the end, over 90,000 users were viewing and editing the canvas, and over one million users had placed a total of approximately 16 million pixels.

What it does

PixelBattle is a large blockchain-based canvas where anyone can put a pixel of a certain color. The entire canvas is stored in a smart contract on Polygon, and any interaction with it takes place through blockchain transactions, using a wallet such as Metamask.

How we built it

First, I designed and wrote a smart contract on Solidity. Next, I made a react web application that interacts with the blockchain using web3 and a Metamask wallet.

Challenges we ran into

The main challenge I faced was to make transactions as cheap and fast as possible, which means that I had to make the smart contract efficient and choose the right blockchain for this.

Accomplishments that we're proud of

This whole application is an accomplishment that I am proud of. It works fast on any device. It is clear to any user, it is very simple to participate in the battle for everyone. I believe that it has the potential to introduce blockchain to many new people who are not yet familiar with it.

What we learned

The possibilities of the blockchain are endless and web3 is the future. What would require a powerful server in web2 can be done faster and more efficiently in web3.

What's next for PixelBattle

I'm going to make more game mechanics (some improvements & bonuses), test and launch on the mainnet.. And we will see what masterpieces of art the collective mind of web3 users can make!

Built With

Share this project:

Updates