- Sprite matrix generator function