Sheep_maker : The touching blocks are very slow because they have to compare every pixel of a sprite. Outside of Scratch, people usually use math for collisions
I'm not exactly sure what you'd want a touching colour thing for. If you want to get the colour of a pixel at a certain point on a <canvas>, you can use ctx.getImageData(x, y, 1, 1)
from Latest posts on Things I'm Making and Creating https://ift.tt/2IDUXSx
No comments:
Post a Comment