matter-js
matter-js copied to clipboard
On the issue of texture cropping
The texture here uses image links, but I only want to use a small portion of the large image instead of using PS to cut it separately. Cutting and drawing images using local JavaScript is easy, but it doesn't seem to work here. I spent an hour and a half asking many questions, and finally found out that the "drawImage" in the engine only had 5 parameters, so I modified the local engine file. I hope to include the cutting feature in the next update because I don't know how to compress files