kopia lustrzana https://github.com/backface/turtlestitch
Merge pull request #2477 from DarDoro/SpriteTouch
Sprite touching : first row, column included, Issue #2476pull/89/head
commit
2a76a187c3
|
|
@ -4481,7 +4481,7 @@ Morph.prototype.isTouching = function (otherMorph) {
|
|||
return false;
|
||||
}
|
||||
data = oImg.getContext('2d')
|
||||
.getImageData(1, 1, oImg.width, oImg.height)
|
||||
.getImageData(0, 0, oImg.width, oImg.height)
|
||||
.data;
|
||||
len = data.length;
|
||||
for(i = 3; i < len; i += 4) {
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue