Developer Resources
🏏

Developer Resources

Resources from our Discord → Link

Chain Runners Github

How to generate a background from the Chain Runner library
  • call function getLayer, choose layer 0 (for backgrounds) and then go index by index for the different backgrounds
  • it will output the background name in base64 and the background data as byte array/hex string
  • the byte array has 416 bytes
  • the first 32 bytes specify the color palette. 8 colors, with r, g, b, a. 4*8=32
  • the next 384 bytes specify the 32x32 pixels
  • each pixel takes 3 bits (to tell which color, of the colour palette its using)
  • 32x32x3/8 = 384

How to generate artwork