@@ -50,14 +50,14 @@ module Phaser {
5050 *
5151 * Instantiate a new <code>Game</code> object.
5252 *
53- * @param callbackContext Which context will the callbacks be called with.
54- * @param parent ID of its parent DOM element.
55- * @param width The width of your game in game pixels.
56- * @param height The height of your game in game pixels.
57- * @param initCallback Init callback invoked when init default screen.
58- * @param createCallback Create callback invoked when create default screen.
59- * @param updateCallback Update callback invoked when update default screen.
60- * @param renderCallback Render callback invoked when render default screen.
53+ * @param callbackContext Which context will the callbacks be called with.
54+ * @param parent {string} ID of its parent DOM element.
55+ * @param width {number} The width of your game in game pixels.
56+ * @param height {number} The height of your game in game pixels.
57+ * @param initCallback {function} Init callback invoked when init default screen.
58+ * @param createCallback {function} Create callback invoked when create default screen.
59+ * @param updateCallback {function} Update callback invoked when update default screen.
60+ * @param renderCallback {function} Render callback invoked when render default screen.
6161 */
6262 constructor ( callbackContext , parent ?: string = '' , width ?: number = 800 , height ?: number = 600 , initCallback = null , createCallback = null , updateCallback = null , renderCallback = null ) {
6363
@@ -224,9 +224,9 @@ module Phaser {
224224
225225 /**
226226 * Initialize engine sub modules and start the game.
227- * @param parent ID of parent Dom element.
228- * @param width Width of the game screen.
229- * @param height Height of the game screen.
227+ * @param parent {string} ID of parent Dom element.
228+ * @param width {number} Width of the game screen.
229+ * @param height {number} Height of the game screen.
230230 */
231231 private boot ( parent : string , width : number , height : number ) {
232232
@@ -398,10 +398,10 @@ module Phaser {
398398
399399 /**
400400 * Set all state callbacks (init, create, update, render).
401- * @param initCallback Init callback invoked when init state.
402- * @param createCallback Create callback invoked when create state.
403- * @param updateCallback Update callback invoked when update state.
404- * @param renderCallback Render callback invoked when render state.
401+ * @param initCallback {function} Init callback invoked when init state.
402+ * @param createCallback {function} Create callback invoked when create state.
403+ * @param updateCallback {function} Update callback invoked when update state.
404+ * @param renderCallback {function} Render callback invoked when render state.
405405 */
406406 public setCallbacks ( initCallback = null , createCallback = null , updateCallback = null , renderCallback = null ) {
407407
@@ -414,9 +414,9 @@ module Phaser {
414414
415415 /**
416416 * Switch to a new State.
417- * @param state The state you want to switch to.
418- * @param clearWorld Optional, clear everything in the world? (Default to true)
419- * @param clearCache Optional, clear asset cache? (Default to false and ONLY available when clearWorld=true)
417+ * @param state {State} The state you want to switch to.
418+ * @param clearWorld {boolean} Optional, clear everything in the world? (Default to true)
419+ * @param clearCache {boolean} Optional, clear asset cache? (Default to false and ONLY available when clearWorld=true)
420420 */
421421 public switchState ( state , clearWorld : bool = true , clearCache : bool = false ) {
422422
@@ -560,11 +560,11 @@ module Phaser {
560560 /**
561561 * Create a new camera with specific position and size.
562562 *
563- * @param x X position of the new camera.
564- * @param y Y position of the new camera.
565- * @param width Width of the new camera.
566- * @param height Height of the new camera.
567- * @returns {Camera= } The newly created camera object.
563+ * @param x {number} X position of the new camera.
564+ * @param y {number} Y position of the new camera.
565+ * @param width {number} Width of the new camera.
566+ * @param height {number} Height of the new camera.
567+ * @returns {Camera } The newly created camera object.
568568 */
569569 public createCamera ( x : number , y : number , width : number , height : number ) : Camera {
570570 return this . world . createCamera ( x , y , width , height ) ;
@@ -573,9 +573,9 @@ module Phaser {
573573 /**
574574 * Create a new GeomSprite with specific position.
575575 *
576- * @param x X position of the new geom sprite.
577- * @param y Y position of the new geom sprite.
578- * @returns {GeomSprite= } The newly created geom sprite object.
576+ * @param x {number} X position of the new geom sprite.
577+ * @param y {number} Y position of the new geom sprite.
578+ * @returns {GeomSprite } The newly created geom sprite object.
579579 */
580580 public createGeomSprite ( x : number , y : number ) : GeomSprite {
581581 return this . world . createGeomSprite ( x , y ) ;
@@ -584,10 +584,10 @@ module Phaser {
584584 /**
585585 * Create a new Sprite with specific position and sprite sheet key.
586586 *
587- * @param x X position of the new sprite.
588- * @param y Y position of the new sprite.
589- * @param key Optinal, key for the sprite sheet you want it to use.
590- * @returns {Sprite= } The newly created sprite object.
587+ * @param x {number} X position of the new sprite.
588+ * @param y {number} Y position of the new sprite.
589+ * @param key {string} Optinal, key for the sprite sheet you want it to use.
590+ * @returns {Sprite } The newly created sprite object.
591591 */
592592 public createSprite ( x : number , y : number , key ?: string = '' ) : Sprite {
593593 return this . world . createSprite ( x , y , key ) ;
@@ -596,9 +596,9 @@ module Phaser {
596596 /**
597597 * Create a new DynamicTexture with specific size.
598598 *
599- * @param width Width of the texture.
600- * @param height Height of the texture.
601- * @returns {DynamicTexture= } The newly created dynamic texture object.
599+ * @param width {number} Width of the texture.
600+ * @param height {number} Height of the texture.
601+ * @returns {DynamicTexture } The newly created dynamic texture object.
602602 */
603603 public createDynamicTexture ( width : number , height : number ) : DynamicTexture {
604604 return this . world . createDynamicTexture ( width , height ) ;
@@ -607,8 +607,8 @@ module Phaser {
607607 /**
608608 * Create a new object container.
609609 *
610- * @param MaxSize Optinal, capacity of this group.
611- * @returns {Group= } The newly created group.
610+ * @param MaxSize {number} Optinal, capacity of this group.
611+ * @returns {Group } The newly created group.
612612 */
613613 public createGroup ( MaxSize ?: number = 0 ) : Group {
614614 return this . world . createGroup ( MaxSize ) ;
@@ -617,7 +617,7 @@ module Phaser {
617617 /**
618618 * Create a new Particle.
619619 *
620- * @return {Particle= } The newly created particle object.
620+ * @return {Particle } The newly created particle object.
621621 */
622622 public createParticle ( ) : Particle {
623623 return this . world . createParticle ( ) ;
@@ -626,10 +626,10 @@ module Phaser {
626626 /**
627627 * Create a new Emitter.
628628 *
629- * @param x Optinal, x position of the emitter.
630- * @param y Optinal, y position of the emitter.
631- * @param size Optinal, size of this emitter.
632- * @return {Emitter= } The newly created emitter object.
629+ * @param x {number} Optinal, x position of the emitter.
630+ * @param y {number} Optinal, y position of the emitter.
631+ * @param size {number} Optinal, size of this emitter.
632+ * @return {Emitter } The newly created emitter object.
633633 */
634634 public createEmitter ( x ?: number = 0 , y ?: number = 0 , size ?: number = 0 ) : Emitter {
635635 return this . world . createEmitter ( x , y , size ) ;
@@ -638,12 +638,12 @@ module Phaser {
638638 /**
639639 * Create a new ScrollZone object with image key, position and size.
640640 *
641- * @param key Key to a image you wish this object to use.
642- * @param x X position of this object.
643- * @param y Y position of this object.
644- * @param width Width of this object.
645- * @param height Heigth of this object.
646- * @returns {ScrollZone= } The newly created scroll zone object.
641+ * @param key {string} Key to a image you wish this object to use.
642+ * @param x {number} X position of this object.
643+ * @param y {number} Y position of this object.
644+ * @param width number} Width of this object.
645+ * @param height {number} Heigth of this object.
646+ * @returns {ScrollZone } The newly created scroll zone object.
647647 */
648648 public createScrollZone ( key : string , x ?: number = 0 , y ?: number = 0 , width ?: number = 0 , height ?: number = 0 ) : ScrollZone {
649649 return this . world . createScrollZone ( key , x , y , width , height ) ;
@@ -652,13 +652,13 @@ module Phaser {
652652 /**
653653 * Create a new Tilemap.
654654 *
655- * @param key Key for tileset image.
656- * @param mapData Data of this tilemap.
657- * @param format Format of map data. (Tilemap.FORMAT_CSV or Tilemap.FORMAT_TILED_JSON)
658- * @param resizeWorld Optinal , resize the world to make same as tilemap?
659- * @param tileWidth Optinal , width of each tile.
660- * @param tileHeight Optinal , height of each tile.
661- * @return {Tilemap= } The newly created tilemap object.
655+ * @param key {string} Key for tileset image.
656+ * @param mapData {string} Data of this tilemap.
657+ * @param format {number} Format of map data. (Tilemap.FORMAT_CSV or Tilemap.FORMAT_TILED_JSON)
658+ * @param resizeWorld {boolean} Optional , resize the world to make same as tilemap?
659+ * @param tileWidth {number} Optional , width of each tile.
660+ * @param tileHeight {number} Optional , height of each tile.
661+ * @return {Tilemap } The newly created tilemap object.
662662 */
663663 public createTilemap ( key : string , mapData : string , format : number , resizeWorld : bool = true , tileWidth ?: number = 0 , tileHeight ?: number = 0 ) : Tilemap {
664664 return this . world . createTilemap ( key , mapData , format , resizeWorld , tileWidth , tileHeight ) ;
@@ -667,8 +667,8 @@ module Phaser {
667667 /**
668668 * Create a tween object for a specific object.
669669 *
670- * @param obj Object you wish the tween will affect.
671- * @return {Phaser.Tween= } The newly created tween object.
670+ * @param obj Object you wish the tween will affect.
671+ * @return {Phaser.Tween } The newly created tween object.
672672 */
673673 public createTween ( obj ) : Tween {
674674 return this . tweens . create ( obj ) ;
0 commit comments