@@ -379,8 +379,10 @@ declare module Phaser {
379379 static RENDER_TEXTURE : number ;
380380 static SHADER : number ;
381381 static SOUND : number ;
382+ static SPRITE_SHEET : number ;
382383 static TEXT : number ;
383384 static TEXTURE : number ;
385+ static TEXTURE_ATLAS : number ;
384386 static TILEMAP : number ;
385387 static XML : number ;
386388 static VIDEO : number ;
@@ -393,7 +395,7 @@ declare module Phaser {
393395 addBitmapData ( key : string , bitmapData : Phaser . BitmapData , frameData ?: Phaser . FrameData ) : Phaser . BitmapData ;
394396 addBitmapFont ( key : string , texture : Phaser . RetroFont ) : void ;
395397 addBitmapFont ( key : string , url : string , data : any , atlasData : any , atlasType : string , xSpacing ?: number , ySpacing ?: number ) : void ;
396- addCanvas ( key : string , canvas : HTMLCanvasElement , context : CanvasRenderingContext2D ) : void ;
398+ addCanvas ( key : string , canvas : HTMLCanvasElement , context ? : CanvasRenderingContext2D ) : void ;
397399 addDefaultImage ( ) : void ;
398400 addImage ( key : string , url : string , data : any ) : void ;
399401 addJSON ( key : string , urL : string , data : any ) : void ;
@@ -406,6 +408,7 @@ declare module Phaser {
406408 addText ( key : string , url : string , data : any ) : void ;
407409 addTextureAtlas ( key : string , url : string , data : any , atlasData : any , format : number ) : void ;
408410 addTilemap ( key : string , url : string , mapData : any , format : number ) : void ;
411+ addVideo ( key : string , url : string , data : any , isBlob ?: boolean ) : void ;
409412 addXML ( key : string , url : string , data : any ) : void ;
410413 checkBinaryKey ( key : string ) : boolean ;
411414 checkBitmapDataKey ( key : string ) : boolean ;
@@ -431,7 +434,7 @@ declare module Phaser {
431434 getBinary ( key : string ) : any ;
432435 getBitmapData ( key : string ) : Phaser . BitmapData ;
433436 getBitmapFont ( key : string ) : Phaser . RetroFont ;
434- getCanvas ( key : string ) : any ;
437+ getCanvas ( key : string ) : HTMLCanvasElement ;
435438 getFrame ( key : string ) : Phaser . Frame ;
436439 getFrameByIndex ( key : string , index : number ) : Phaser . Frame ;
437440 getFrameByName ( key : string , name : string ) : Phaser . Frame ;
@@ -448,16 +451,18 @@ declare module Phaser {
448451 getShader ( key : string ) : string ;
449452 getSound ( key : string ) : Phaser . Sound ;
450453 getSoundData ( key : string ) : any ;
454+ getSpriteSheetKey ( key : string ) : boolean ;
451455 getText ( key : string ) : string ;
452456 getTextKeys ( ) : string [ ] ;
453457 getTexture ( key : string ) : Phaser . RenderTexture ;
458+ getTextureAtlasKey ( key : string ) : boolean ;
454459 getTextureFrame ( key : string ) : Phaser . Frame ;
455460 getTilemap ( key : string ) : any ;
456461 getTilemapData ( key : string ) : any ;
457462 getURL ( url : string ) : any ;
458463 getXML ( key : string ) : any ;
459464 getVideo ( key : string ) : Phaser . Video ;
460- hasFrameData ( key : string , cache ?: string ) : boolean ;
465+ hasFrameData ( key : string ) : boolean ;
461466 isSoundDecoded ( key : string ) : boolean ;
462467 isSoundReady ( key : string ) : boolean ;
463468 isSpriteSheet ( key : string ) : boolean ;
@@ -875,12 +880,12 @@ declare module Phaser {
875880
876881 class Filter extends PIXI . AbstractFilter {
877882
878- constructor ( game : Phaser . Game , ... args : any [ ] ) ;
883+ constructor ( game : Phaser . Game , uniforms : any , fragmentSrc : string | string [ ] ) ;
879884
880885 dirty : boolean ;
881886 game : Phaser . Game ;
882887 height : number ;
883- fragmentSrc : any [ ] ;
888+ fragmentSrc : string | string [ ] ;
884889 padding : number ;
885890 prevPoint : Phaser . Point ;
886891 type : number ;
@@ -1513,6 +1518,7 @@ declare module Phaser {
15131518 length : number ;
15141519 name : string ;
15151520 onDestroy : Phaser . Signal ;
1521+ pendingDestroy : boolean ;
15161522 physicsBodyType : number ;
15171523 physicsType : number ;
15181524 physicsSortDirection : number ;
@@ -1981,7 +1987,7 @@ declare module Phaser {
19811987
19821988 addCallbacks ( context : any , onDown ?: Function , onUp ?: Function , onPress ?: Function ) : void ;
19831989 addKey ( keycode : number ) : Phaser . Key ;
1984- addKeys ( keycodes : number [ ] , hotkeys : string [ ] ) : any ;
1990+ addKeys ( keys : any [ ] ) : any ;
19851991 addKeyCapture ( keycode : any ) : void ;
19861992 createCursorKeys ( ) : Phaser . CursorKeys ;
19871993 clearCaptures ( ) : void ;
@@ -2067,6 +2073,7 @@ declare module Phaser {
20672073 static TEXTURE_ATLAS_XML_STARLING : number ;
20682074
20692075 baseURL : string ;
2076+ cache : Phaser . Cache ;
20702077 crossOrigin : boolean | string ;
20712078 enableParallel : boolean ;
20722079 game : Phaser . Game ;
@@ -2132,7 +2139,7 @@ declare module Phaser {
21322139 totalLoadedPacks ( ) : number ;
21332140 totalQueuedFiles ( ) : number ;
21342141 totalQueuedPacks ( ) : number ;
2135- transformUrl ( url : string ) : string ;
2142+ transformUrl ( url : string , file ?: any ) : string ;
21362143 updateProgress ( ) : void ;
21372144 video ( key : string , urls : string | string [ ] | any , loadEvent ?: string , asBlob ?: boolean ) : Phaser . Loader ;
21382145 withSyncPoint ( callback : Function , callbackContext ?: any ) : Phaser . Loader ;
@@ -2145,8 +2152,10 @@ declare module Phaser {
21452152
21462153 class LoaderParser {
21472154
2148- static bitmapFont ( game : Phaser . Game , xml : any , cacheKey : string , xSpacing : number , ySpacing : number ) : void ;
2149- static jsonBitmapFont ( game : Phaser . Game , json : any , cacheKey : string , xSpacing ?: number , ySpacing ?: number ) : void ;
2155+ static bitmapFont ( xml : any , baseTexture : PIXI . BaseTexture , xSpacing ?: number , ySpacing ?: number ) : any ;
2156+ static xmlBitmapFont ( xml : any , baseTexture : PIXI . BaseTexture , xSpacing ?: number , ySpacing ?: number ) : any ;
2157+ static jsonBitmapFont ( json : any , baseTexture : PIXI . BaseTexture , xSpacing ?: number , ySpacing ?: number ) : any ;
2158+
21502159 }
21512160
21522161 class Matrix extends PIXI . Matrix {
@@ -2254,10 +2263,6 @@ declare module Phaser {
22542263
22552264 constructor ( game : Phaser . Game ) ;
22562265
2257- static LEFT_BUTTON : number ;
2258- static MIDDLE_BUTTON : number ;
2259- static NO_BUTTON : number ;
2260- static RIGHT_BUTTON : number ;
22612266 static WHEEL_DOWN : number ;
22622267 static WHEEL_UP : number ;
22632268
@@ -2794,6 +2799,7 @@ declare module Phaser {
27942799 destroy ( ) : void ;
27952800 integrate ( ) : void ;
27962801 render ( context : any , xOffset : number , yOffset : number , color : string , filled : boolean ) : void ;
2802+ reportCollision ( px : number , py : number , dx : number , dy : number ) : void ;
27972803 reportCollisionVsWorld ( px : number , py : number , dx : number , dy : number , obj : any ) : void ;
27982804 reportCollisionVsBody ( px : number , py : number , dx : number , dy : number , obj : any ) : void ;
27992805 resolveTile ( x : number , y : number , body : Phaser . Physics . Ninja . AABB , tile : Phaser . Physics . Ninja . Tile ) : boolean ;
@@ -3045,13 +3051,16 @@ declare module Phaser {
30453051 adjustCenterOfMass ( ) : void ;
30463052 applyDamping ( dt : number ) : void ;
30473053 applyForce ( force : number [ ] , worldX : number , worldY : number ) : void ;
3054+ applyImpulse ( impulse : number [ ] , worldX : number , worldY : number ) : void ;
3055+ applyImpulseLocal ( force : number [ ] , localX : number , localY : number ) : void ;
30483056 clearCollision ( clearGroup ?: boolean , cleanMask ?: boolean , shape ?: p2 . Shape ) : void ;
30493057 clearShapes ( ) : void ;
30503058 collides ( group : any , callback ?: Function , callbackContext ?: any , shape ?: p2 . Shape ) : void ;
30513059 createBodyCallback ( object : any , callback : Function , callbackContext : any ) : void ;
30523060 createGroupCallback ( group : Phaser . Physics . P2 . CollisionGroup , callback : Function , callbackContext : any ) : void ;
30533061 destroy ( ) : void ;
30543062 getCollisionMask ( ) : number ;
3063+ getVelocityAtPoint ( result : number [ ] , relativePoint : number [ ] ) : number [ ] ;
30553064 loadPolygon ( key : string , object : string ) : boolean ;
30563065 moveBackward ( speed : number ) : void ;
30573066 moveDown ( speed : number ) : void ;
@@ -3597,7 +3606,7 @@ declare module Phaser {
35973606 start ( event : any ) : void ;
35983607 stop ( event : any ) : void ;
35993608 update ( ) : void ;
3600- updateButtons ( buttons : number ) : void ;
3609+ updateButtons ( event : MouseEvent ) : void ;
36013610
36023611 }
36033612
@@ -4383,6 +4392,8 @@ declare module Phaser {
43834392 shadowColor ?: string ;
43844393 shadowBlur ?: number ;
43854394 valign ?: string ;
4395+ tab ?: number ;
4396+ tabs ?: number ;
43864397
43874398 fontStyle ?: string ;
43884399 fontVariant ?: string ;
@@ -4444,6 +4455,7 @@ declare module Phaser {
44444455 strokeColors : string [ ] ;
44454456 strokeThickness : number ;
44464457 scale : Phaser . Point ;
4458+ tab : number ;
44474459 tabs : number | number [ ] ;
44484460 text : string ;
44494461 textBounds : Phaser . Rectangle ;
@@ -4460,8 +4472,9 @@ declare module Phaser {
44604472 destroy ( destroyChildren ?: boolean ) : void ;
44614473 fontToComponents ( font : string ) : any ;
44624474 postUpdate ( ) : void ;
4463- parseList ( list : any [ ] ) : void ;
4475+ parseList ( list : any [ ] ) : Phaser . Text ;
44644476 preUpdate ( ) : void ;
4477+ renderTabLine ( line : string , x : number , y : number , fill ?: boolean ) ;
44654478 setShadow ( x ?: number , y ?: number , color ?: any , blur ?: number , shadowStroke ?: boolean , shadowFill ?: boolean ) : Phaser . Text ;
44664479 setStyle ( style ?: PhaserTextStyle ) : Phaser . Text ;
44674480 setText ( text : string ) : Phaser . Text ;
0 commit comments