Commit graph

35 commits

Author SHA1 Message Date
zeh fernando
dc68c6aa8a Updated to Pixi 2.2.5
Updated definitions to be compatible with Pixi 2.2.5
2015-02-15 18:52:11 -05:00
photonstorm
9feea685ab Updated defs for drawGroup. 2015-01-05 14:34:06 +00:00
Richard Davey
481ca7e222 Merge pull request #1516 from clark-stevenson/patch-2
Update phaser.d.ts
2015-01-05 11:02:50 +00:00
photonstorm
1c9306f41f Added the new Line methods/props to the TypeScript defs. 2015-01-05 11:02:25 +00:00
Clark Stevenson
a511379e06 Update phaser.d.ts
A BitmapData alphaMask has an optional mask parameter.
2015-01-05 10:25:06 +00:00
Richard Davey
c48eb706fb Merge pull request #1507 from Schmavery/master
Fix small typescript definition issue with Emitter.setAlpha()
2015-01-03 00:30:44 +00:00
Avery Morin
dac4372072 Fix small typescript issue with Emitter.setAlpha() 2015-01-02 18:12:50 -05:00
Clark Stevenson
428dae564f Fixes #1497 and Minor Updates. 2015-01-02 18:22:11 +00:00
Clark Stevenson
dfc44c5286 Micro Update
BitmapData methods should take a number as a blendMode not a string..  GameObjectFactory and GameObjectCreator image methods parameter key is optional.
2014-12-19 16:01:46 +00:00
Clark Stevenson
ba71f3400e Removed static from properties #1435 2014-12-09 11:02:46 +00:00
Clark Stevenson
ce8a7c544a Fixed TypeScript: Device class definition #1435 2014-12-09 10:30:09 +00:00
Clark Stevenson
c43f26cfc7 Minor Updates 2014-12-02 14:11:43 +00:00
Clark Stevenson
cff41566e0 2.2.0 2014-12-02 13:31:07 +00:00
photonstorm
35e2893db4 Game.lockRender is a new property. If false Phaser will automatically render the display list every update. If true the render loop will be skipped. You can toggle this value at run-time to gain exact control over when Phaser renders. This can be useful in certain types of game or application. Please note that if you don't render the display list then none of the game object transforms will be updated, so use this value carefully. 2014-12-02 09:03:55 +00:00
photonstorm
1ca260562a Small TS defs update. 2014-12-02 09:03:55 +00:00
photonstorm
0744dddbc0 Small defs fix. 2014-11-29 19:40:50 +00:00
Clark Stevenson
977f576c11 Small Updates 2014-11-27 16:01:02 +00:00
Clark Stevenson
e0270fdbb9 Fixed #1368 2014-11-25 17:30:33 +00:00
Clark Stevenson
3c860a4ad5 Definition Updates 2014-11-24 15:53:47 +00:00
photonstorm
1928427bcb Phaser TypeScript defs fixes. 2014-11-23 11:32:13 +00:00
photonstorm
2589000435 Tweens have been completely rewritten. They're now much more flexible and efficient than before:
When specifying the ease in `Tween.to` or `Tween.from` you can now use a string instead of the Function. This makes your code less verbose. For example instead of `Phaser.Easing.Sinusoidal.Out` and you can now just use the string "Sine".The string names match those used by TweenMax and includes: "Linear", "Quad", "Cubic", "Quart", "Quint", "Sine", "Expo", "Circ", "Elastic", "Back", "Bounce", "Power0", "Power1", "Power2", "Power3" and "Power4". You can append ".easeIn", ".easeOut" and "easeInOut" variants. All are supported for each ease types.
Tweens now create a TweenData object. The Tween object itself acts like more of a timeline, managing multiple TweenData objects. You can now call `Tween.to` and each call will create a new child tween that is added to the timeline, which are played through in sequence.
Tweens are now bound to the new Time.desiredFps value and update based on the new Game core loop, rather than being bound to time calculations. This means that tweens are now running with the same update logic as physics and the core loop.
Tween.timeScale allows you to scale the duration of a tween (and any child tweens it may have). A value of 1.0 means it should play at the desiredFps rate. A value of 0.5 will run at half the frame rate, 2 at double and so on. You can even tween the timeScale value for interesting effects!
Tween.reverse allows you to instantly reverse an active tween. If the Tween has children then it will smoothly reverse through all child tweens as well.
Tween.repeatAll allows you to control how many times all child tweens will repeat before firing the Tween.onComplete event. You can set the value to -1 to repeat forever.
Tween.loop now controls the looping of all child tweens.
Tween.onRepeat is a new signal that is dispatched whenever a Tween repeats. If a Tween has many child tweens its dispatched once the sequence has repeated.
Tween.onChildComplete is a new signal that is dispatched whenever any child tweens have completed. If a Tween consists of 4 sections you will get 3 onChildComplete events followed by 1 onComplete event as the final tween finishes.
Chained tweens are now more intelligently handled. Because you can easily create child tweens (by simply calling Tween.to multiple times) chained tweens are now used to kick-off longer sequences. You can pass as many Tween objects to `Tween.chain` as you like as they'll all be played in sequence. As one Tween completes it passes on to the next until the entire chain is finished.
Tween.stop has a new `complete` parameter that if set will still fire the onComplete event and start the next chained tween, if there is one.
Tween.delay, Tween.repeat, Tween.yoyo, Tween.easing and Tween.interpolation all have a new `index` parameter. This allows you to target specific child tweens, or if set to -1 it will update all children at once.
Tween.totalDuration reports the total duration of all child tweens in ms.
There are new easing aliases:
* Phaser.Easing.Power0 = Phaser.Easing.Linear.None
* Phaser.Easing.Power1 = Phaser.Easing.Quadratic.Out
* Phaser.Easing.Power2 = Phaser.Easing.Cubic.Out
* Phaser.Easing.Power3 = Phaser.Easing.Quartic.Out
* Phaser.Easing.Power4 = Phaser.Easing.Quintic.Out
2014-11-20 06:06:26 +00:00
Richard Davey
babb8687c8 Merge pull request #1345 from clark-stevenson/dev
Definition Updates
2014-11-19 10:29:17 +00:00
Clark Stevenson
1f39f7e3ec Definition Updates 2014-11-18 12:54:07 +00:00
photonstorm
21479acd8e Sprite.autoCull now properly works if the camera moves around the world.
Sprite.inCamera uses a much faster check if auto culling or world bounds checks are enabled and properly adjusts for camera position.
2014-11-18 12:29:55 +00:00
Clark Stevenson
e0b8af7bdd Definition Updates 2014-11-18 11:41:50 +00:00
Clark Stevenson
4a4f0deece IPixiShader should be interface and not class 2014-11-16 13:13:07 +00:00
Clark Stevenson
0b399bb1e4 Definition Updates. 2014-11-14 20:16:46 +00:00
photonstorm
527934d909 Key.justPressed has bee renamed to Key.downDuration which is a much clearer name for what the method actually does. See Key.justDown for a nice clean alternative.
Key.justReleased has bee renamed to Key.upDuration which is a much clearer name for what the method actually does. See Key.justUp for a nice clean alternative.
Key.justDown allows you to test if a Key has just been pressed down or not. You can only call justDown once per key press. It will only return `true` once, until the Key is released and pressed down again. This allows you to use it in situations where you want to check if this key is down without using a Signal, such as in a core game loop (thanks @pjbaron #1321)
Key.justUp allows you to test if a Key has just been released or not. You can only call justUp once per key press. It will only return `true` once, until the Key is pressed down and released again. This allows you to use it in situations where you want to check if this key is up without using a Signal, such as in a core game loop (thanks @pjbaron #1321)
2014-11-13 13:01:58 +00:00
Clark Stevenson
1ba17ae086 Pixi updates now includes Spine. Phaser updates. 2014-11-10 21:15:52 +00:00
Clark Stevenson
6e648b8a46 updated readme 2014-11-05 21:53:50 +00:00
Clark Stevenson
9cd78d74be updated readme 2014-11-05 21:52:00 +00:00
Clark Stevenson
d775fa8711 Added webgl.d.ts for those who need it. Changed readme.txt to readme.md 2014-11-05 19:25:53 +00:00
Clark Stevenson
c3d2b7a90d Split pixi.d.ts and phaser.d.ts 2014-11-05 18:19:45 +00:00
Clark Stevenson
91bd2da5b6 Updated to 2014/11/05 preparing to separate 2014-11-05 15:20:08 +00:00
photonstorm
be8499fa49 Moved ts defs to new home. 2014-11-02 23:00:15 +00:00