A React component for playing a PICO-8 Cartridge
npm install @athingperday/react-pico-player``sh`
npm install @athingperday/react-pico-player
`tsx
import { Pico8Player } from "@athingperday/react-pico-player";
export const MyComponent = () => {
return (
{
name: "name of your cart",
src: "url to .p8.png image", // blobs and data uris should work as well
// alternatively, instead of src you could pass:``
// rom: [0, ..., 0] (an array of bytes that make up the rom)
},
// you can also provide multiple carts (up to 16) if you care to
]}
/>
);
};