gotenxds
b34860c89b
Reverse and reverseOnce will now return the animation to allow linking.
2016-05-31 20:27:55 +03:00
gotenxds
ae3ebf00cd
Added typescript defs; Fixed jshint.
2016-05-27 18:04:33 +03:00
gotenxds
b0c4f3bc4c
Added a convenient function.
2016-05-27 17:48:06 +03:00
John Doe
ce17ac9902
Added a reverse functionality to animations.
2016-05-27 15:44:32 +03:00
photonstorm
027725e702
Defs update.
2016-05-24 02:31:07 +01:00
monagames
12397377ab
Fixes for typescript declarations with system.js
2016-05-21 20:22:40 +02:00
photonstorm
ac89d1aec7
Arcade Physics Body has a new property worldBounce
. This controls the elasticity of the Body specifically when colliding with the World bounds. By default this property is null
, in which case Body.bounce is used instead. Set this property to a Phaser.Point object in order to enable a World bounds specific bounce value (thanks @VitaZheltyakov #2465 )
2016-05-16 13:53:12 +01:00
photonstorm
19dce62734
Arcade Physics has had a new world
argument added to the following functions: distanceBetween
, distanceToXY
, distanceToPointer
, angleBetween
, angleToXY
and angleToPointer
. The argument (which is false by default), when enabled will calculate the angles or distances based on the Game Objects world
property, instead of its x
and y
properties. This allows it to work for objects that are placed in offset Groups, or are children of other display objects (thanks @Skeptron for the thread #2463 )
2016-05-16 13:31:57 +01:00
photonstorm
a26bd55811
TS defs fix #2475
2016-05-16 13:03:48 +01:00
photonstorm
4fd2524c61
Text.setStyle has a new argument update
which will optionally automatically call updateText
after setting the new style (thanks @staff0rd #2478 )
2016-05-16 12:55:27 +01:00
photonstorm
2e1c858196
Added Create.
2016-04-29 01:41:15 +01:00
Richard Davey
88977e4609
Merge pull request #2444 from staff0rd/typescript_SaveCPU_Plugin
...
added type definintions for SaveCPU plugin
2016-04-28 00:05:31 +01:00
Richard Davey
d16ef28ae6
Merge pull request #2452 from osev7/patch-1
...
typescript defs: Allow game.physics.arcade.collide(group) for collisions within group
2016-04-27 23:56:43 +01:00
osev7
65f7f06849
Allow game.physics.arcade.collide(group) for collisions within group
2016-04-26 09:41:13 -04:00
photonstorm
620b95e510
Updated docs and TS defs re: #2443
2016-04-23 04:36:47 +01:00
Stafford Williams
0628870540
fix type
2016-04-23 12:33:12 +10:00
Stafford Williams
c3bc464b1c
added type definintions for SaveCPU plugin
2016-04-23 12:13:30 +10:00
photonstorm
a29cc64932
Phaser 2.4.7 Final.
2016-04-22 15:15:28 +01:00
Matthew Ross
55214fe2df
Allow debug.line to be used without error TS2346
...
When calling debug.line('Any string'); the TypeScript compiler give error TS2346 because there are no parameters in the method definition. This creates a dummy parameter which allows the same functionality without the compiler error.
2016-04-20 09:19:11 -04:00
jamesgroat
51db815d3a
Add resolution to interface IGameConfig
2016-04-11 14:03:26 -07:00
photonstorm
7102a34706
Camera.flash is a new function that makes the camera 'flash' over the top of your game. It works by filling the game with the solid fill color specified, and then fading it away to alpha 0 over the duration given. This is great for things like hit effects. You can listen for the Camera.onflashComplete Signal.
...
Camera.fade is a new function that makes the camera fade to the color given, over the course of the duration specified. This is great for things like transitioning from one State to another. You can listen for the Camera.onFadeComplete Signal.
Camera.resetFX resets any active FX, such as a fade or flash and immediately clears it. Useful to calling after a fade in order to remove the fade from the Stage.
Phaser.Camera.ENABLE_FX is a const that controls if the Camera FX are available or not. It's `true` by default, but if you set it to `false` before boot then it won't create the Graphics object required to process the effects.
2016-04-09 04:05:07 +01:00
photonstorm
2ea94c83e6
Camera.shake is a new function that creates a camera shake effect. You can specify the intensity, duration and direction of the effect. You can also set if it should shake the camera out of bounds or not.
2016-04-09 02:57:16 +01:00
photonstorm
460c444acf
Camera lerp TS defs update.
2016-04-09 01:35:58 +01:00
photonstorm
896b32a28c
SoundManager.muteOnPause is a new boolean that allows you to control if the Sound system gets muted automatically when a Phaser game pauses, such as when it loses focus. You may need to set this to false
if you wish to control the audio system from outside of your Phaser game, i.e. from DOM buttons or similar ( #2382 )
2016-04-06 02:09:22 +01:00
slash
fbdf8073ad
Add "maxLines" style attribute to Text object, maximum number of lines
...
to be shown for wrapped text or 0 for no limit. (default).
2016-04-03 10:08:35 -05:00
Richard Davey
0c48c2d6a8
* Added P2.Body.thrustLeft which will move the Body to the left by the speed given (thanks James Pryor)
...
* Added P2.Body.thrustRight which will move the Body to the right by the speed given (thanks James Pryor)
2016-03-01 22:31:58 +00:00
photonstorm
9acf7c223e
Docs and TS updates.
2016-02-18 13:05:00 +00:00
photonstorm
882c8b8d40
InputHandler.consumePointerEvent has been removed, as it was never used internally anyway, so was misleading (thanks @GregoryAveryWeir #2227 )
2016-02-04 16:46:35 +00:00
photonstorm
5bcfa08af6
Text.useAdvancedWrap allows you to swap between the Basic and the Advanced word wrapping functions. In Advanced it will wrap long-words and condense and trim excess white space (thanks @soldoutactivist #1811 )
2016-02-04 16:00:21 +00:00
Richard Davey
87318ee0fe
TS defs fix.
2016-02-03 22:22:17 +00:00
Richard Davey
90ddfc2aa2
Updated sow #2316
2016-02-03 11:41:37 +00:00
Richard Davey
75d6bbb251
Updated defs and improved jsdocs for #2277
2016-02-02 23:37:08 +00:00
Richard Davey
741cf1e0ed
Huge TypeScript defs update (thanks to @clark-stevenson - this is all of the changes from #2156 merged into the current build)
2016-02-02 23:30:03 +00:00
Stafford Williams
b904efeb4f
allow state to be passed to constructor
2016-02-02 13:47:21 +11:00
Stafford Williams
02c0f27d64
fixed getter
2016-02-02 13:26:47 +11:00
Stafford Williams
4a0aaa8914
added RandomDataGenerator.state() typescript definitions
2016-02-02 13:21:45 +11:00
Richard Davey
cd68f9f9cd
Defs udpate #2211
2016-02-01 16:54:25 +00:00
Richard Davey
5170ad0d46
Merge pull request #2211 from juanmirod/dev
...
Fix in typescript definition file: Pointer definition
2016-02-01 18:52:52 +02:00
Richard Davey
c1169b35d4
Merge pull request #2252 from milkey-mouse/fix-blendmode-tsdefs
...
Fix issue #2188 : BitmapData.copy() blendMode type from number to string in TS defs
2016-02-01 18:47:01 +02:00
Richard Davey
a74edd1ee9
Docs and defs.
2016-02-01 16:38:06 +00:00
Richard Davey
37d9b3402d
Merge pull request #2226 from milkey-mouse/fix-retrofont-smoothed
...
Change RetroFont.smoothed from string to boolean
2016-02-01 18:32:22 +02:00
Richard Davey
3350c537c7
Defs update and README update.
2016-02-01 16:30:41 +00:00
Richard Davey
1f664af97c
Merge pull request #2255 from PixelWaffles/fix-ts-d-export
...
Fix issue with typescript module import/require.
2016-02-01 18:28:59 +02:00
zimpy
13ffb7d1ce
Typescript definitions - fixed return types on some functions of Arcade.Body
2016-01-15 19:30:29 +01:00
pixelwaffles
08be1e9b2e
Fix issue where importing the phaser module in typescript (ie "import * as phaser from 'phaser';" or "require('phaser');") fails, resulting in a "Cannot find module 'phaser'." typescript error.
2015-12-15 22:31:21 +08:00
Milkey Mouse
df48e37658
Fix issue #2188 : blendMode type from number to string
...
This fixes a minor TS definitions bug (issue #2188 ) where the blendMode
of BitmapData.copy, .copyRect, .draw, and .drawGroup all had the number
type instead of string.
2015-12-10 20:40:50 -08:00
Milkey Mouse
c59243b336
TS defs: RetroFont.smoothed from string to boolean
2015-11-22 21:38:09 -08:00
Juan Miguel Rodriguez Ceron
cbdd9bdfab
Update phaser.d.ts
2015-11-18 01:16:54 +01:00
Juan Miguel Rodriguez Ceron
e3ff1a3774
Fix Pointer leftbutton and rightButton definitions
...
Pointer properties rightButton and LeftButton are DeviceButton objects instead of booleans (http://phaser.io/docs/2.4.4/Phaser.Pointer.html#rightButton )
2015-11-18 01:15:09 +01:00
Clark Stevenson
13d4dfd9e3
TypeScript Definitions. PluginManager.add is now generic. Whatever class you pass in will come back out as an instance. Example var myAStar = this.game.plugins.add(Phaser.Plugin.AStar);
2015-10-06 15:34:26 +01:00