Skip to content

Commit 3356cec

Browse files
committed
Added Sprite.play
1 parent 3a3ad56 commit 3356cec

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

v3/src/checksum.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
var CHECKSUM = {
2-
build: '1c28cf90-19ae-11e7-ada8-a93dd71560f8'
2+
build: '75ff7070-19b1-11e7-8955-3fcd2f9423de'
33
};
44
module.exports = CHECKSUM;

v3/src/components/Animation.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,6 @@ Animation.prototype = {
116116
{
117117
this.isPlaying = false;
118118

119-
console.log('Animation Stopped');
120-
121119
return this.parent;
122120
}
123121

v3/src/gameobjects/sprite/Sprite.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ var Sprite = new Class({
3939
preUpdate: function (timestamp, frameDelta)
4040
{
4141
this.anims.update(timestamp, frameDelta);
42+
},
43+
44+
play: function (key, startFrame)
45+
{
46+
return this.anims.play(key, startFrame);
4247
}
4348

4449
});

0 commit comments

Comments
 (0)