pixel-sprite-generator icon indicating copy to clipboard operation
pixel-sprite-generator copied to clipboard

Where do you generate the mask values at?

Open vallamost opened this issue 1 year ago • 0 comments

In order to use the generator it looks like you need mask values similar to below. Is there a generator for these values or even something that can just generate them randomly or based off of a shape?

            var spaceship = new psg.Mask([
                    0, 0, 0, 0, 0, 0,
                    0, 0, 0, 0, 1, 1,
                    0, 0, 0, 0, 1,-1,
                    0, 0, 0, 1, 1,-1,
                    0, 0, 0, 1, 1,-1,
                    0, 0, 1, 1, 1,-1,
                    0, 1, 1, 1, 2, 2,
                    0, 1, 1, 1, 2, 2,
                    0, 1, 1, 1, 2, 2,
                    0, 1, 1, 1, 1,-1,
                    0, 0, 0, 1, 1, 1,
                    0, 0, 0, 0, 0, 0
            ], 6, 12, true, false);

vallamost avatar Feb 01 '24 23:02 vallamost