Merge remote-tracking branch 'origin/master'

This commit is contained in:
Pavle Goloskokovic 2018-01-15 11:29:55 +01:00
commit 3664e84e19
3 changed files with 6 additions and 3 deletions

View file

@ -89,6 +89,7 @@ var DynamicTilemapLayer = new Class({
*/
this.culledTiles = [];
this.setAlpha(this.layer.alpha);
this.setTexture(tileset.image.key);
this.setPosition(x, y);
this.setSizeToFrame();

View file

@ -98,6 +98,7 @@ var StaticTilemapLayer = new Class({
this.dirty = true;
this.vertexCount = 0;
this.setAlpha(this.layer.alpha);
this.setTexture(tileset.image.key);
this.setPosition(x, y);
this.setSizeToFrame();

View file

@ -208,11 +208,12 @@ var ProcessDragEvents = function (pointer, time)
this.emit('dragenter', pointer, gameObject, input.target);
}
var dragEvent = new InputEvent.DRAG(pointer, gameObject);
var dragX = pointer.x - gameObject.input.dragX;
var dragY = pointer.y - gameObject.input.dragY;
gameObject.emit('drag', pointer, dragEvent.dragX, dragEvent.dragY);
gameObject.emit('drag', pointer, dragX, dragY);
this.emit('drag', dragEvent);
this.emit('drag', pointer, gameObject, dragX, dragY);
}
}