project screenshot 1
project screenshot 2
project screenshot 3
project screenshot 4
project screenshot 5
project screenshot 6

plac3

Plac3 is a clone r/place on Web3, built on the lattice/mud framework. You can use Plac3 for making ads or showing the chain ecosystem. The purpose is to have fun in the community.

plac3

Created At

Scaling Ethereum 2023

Winner of

πŸ”΄ Optimism β€” Just Deploy!

Project Description

Plac3 is a r/place clone on chain implemented on the "MUD" framework.
I want this plac3 to be a canvas for representing each of the DApp communities. You can draw anything on this plac3. It can be anything you like (your cat, your meme, an ads for your nft project, etc). You can draw it alone or even recruit people from your community to help you drawing what represent your community.

How it's Made

Plac3 building on top of @latticexyz/mud. It is a framework for managing complex smart contracts. It adds some conventions for organizing data and logic and abstracts away low-level complexities so I can focus on the features of Plac3.

Plac3 canvas is 320 x 160 pixels. Since deploying a large canvas in a smart contract is time-consuming or may even fail, Plac3 is composed of 8 sub-canvases of 80x80 each.

The inspect feature is possible because of the graph. To know which address is painted on pixel coordinates (x,y). At first, I tried storing it on a chain. The result turned out to be overkill for the smart contract size, which led to failure when deployed, so I changed it to be an event trigger each time the user is drawing on canvas instead. With the power of the graph, I can query that information from the subgraph using graphql.

For a better user experience, I've rendered the canvas from "CanvasRenderingContext2D.putImageData", which is the same as its origin (r/place). I've tried Tailwind to render the canvas first since it's easier to use, but it seems to have lower performance compared to this 'CanvasRenderingContext2D' method.

background image mobile

Join the mailing list

Get the latest news and updates