A shorthand for BpxSprite.from. The difference is, in this one the imageUrl is passed first and a new function is created out of it, so you can use it to define sprites without passing that URL over and over.
imageUrl
const s = $spr("spritesheet.png");const sprite1 = a(8, 8, 0, 0);const sprite2 = a(16, 8, 90, 90); Copy
const s = $spr("spritesheet.png");const sprite1 = a(8, 8, 0, 0);const sprite2 = a(16, 8, 90, 90);
A shorthand for BpxSprite.from. The difference is, in this one the
imageUrl
is passed first and a new function is created out of it, so you can use it to define sprites without passing that URL over and over.