mirror of
https://github.com/photonstorm/phaser
synced 2024-12-23 03:23:42 +00:00
12 lines
212 B
JavaScript
12 lines
212 B
JavaScript
|
var PlayAnimation = function (items, key, startFrame)
|
||
|
{
|
||
|
for (var i = 0; i < items.length; i++)
|
||
|
{
|
||
|
items[i].anims.play(key, startFrame);
|
||
|
}
|
||
|
|
||
|
return items;
|
||
|
};
|
||
|
|
||
|
module.exports = PlayAnimation;
|