mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 14:08:28 +00:00
Added jsdocs
This commit is contained in:
parent
b6b8f70550
commit
3493e272d6
2 changed files with 24 additions and 1 deletions
|
@ -4,10 +4,22 @@
|
|||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||
*/
|
||||
|
||||
var BlendModes = require('../renderer/BlendModes');
|
||||
var GetAdvancedValue = require('../utils/object/GetAdvancedValue');
|
||||
var ScaleModes = require('../renderer/ScaleModes');
|
||||
var BlendModes = require('../renderer/BlendModes');
|
||||
|
||||
/**
|
||||
* Builds a Game Object using the provided configuration object.
|
||||
*
|
||||
* @function Phaser.Gameobjects.BuildGameObject
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {Phaser.Scene} scene - [description]
|
||||
* @param {Phaser.GameObjects.GameObject} gameObject - [description]
|
||||
* @param {object} config - [description]
|
||||
*
|
||||
* @return {Phaser.GameObjects.GameObject} The built Game Object.
|
||||
*/
|
||||
var BuildGameObject = function (scene, gameObject, config)
|
||||
{
|
||||
// Position
|
||||
|
|
|
@ -6,6 +6,17 @@
|
|||
|
||||
var GetAdvancedValue = require('../utils/object/GetAdvancedValue');
|
||||
|
||||
/**
|
||||
* Adds an Animation component to a Sprite and populates it based on the given config.
|
||||
*
|
||||
* @function Phaser.Gameobjects.BuildGameObjectAnimation
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {Phaser.GameObjects.Sprite} sprite - [description]
|
||||
* @param {object} config - [description]
|
||||
*
|
||||
* @return {Phaser.GameObjects.Sprite} The updated Sprite.
|
||||
*/
|
||||
var BuildGameObjectAnimation = function (sprite, config)
|
||||
{
|
||||
var animConfig = GetAdvancedValue(config, 'anims', null);
|
||||
|
|
Loading…
Add table
Reference in a new issue