mirror of
https://github.com/wassname/phaser.git
synced 2026-06-28 16:20:37 +08:00
Merge pull request #393 from brejep/master
Tilemap#paste diffX and diffY equations changed
This commit is contained in:
@@ -918,8 +918,8 @@ Phaser.Tilemap.prototype = {
|
||||
}
|
||||
|
||||
// Find out the difference between tileblock[1].x/y and x/y and use it as an offset, as it's the top left of the block to paste
|
||||
var diffX = tileblock[1].x - x;
|
||||
var diffY = tileblock[1].y - y;
|
||||
var diffX = x - tileblock[1].x;
|
||||
var diffY = y - tileblock[1].y;
|
||||
|
||||
for (var i = 1; i < tileblock.length; i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user