Commit graph

1541 commits

Author SHA1 Message Date
photonstorm
7c9f079ce5 Group.setProperty will now check if the property exists before setting it, this applies to Group.setAll and anything else using setProperty internally. 2014-04-17 12:11:37 +01:00
photonstorm
b77c034f61 World.wrap will take a game object and if its x/y coordinates fall outside of the world bounds it will be repositioned on the opposite side, for a wrap-around effect. 2014-04-16 22:59:19 +01:00
photonstorm
089dfbb960 Group.resetCursor will reset the Group cursor back to the start of the group, or to the given index value. 2014-04-16 21:39:04 +01:00
photonstorm
6979103634 Fix for #732 (Timer.onComplete not firing).
jsdoc updates across Math and InputHandler.
2014-04-16 18:50:54 +01:00
Richard Davey
b569f920bd Merge pull request #729 from garyyeap/fix-timer-event
Fixed that the TimerEvent should flag as pendingDelete before calling the callback, because callback might trigger the reorder function
2014-04-16 00:25:15 +01:00
Gary
1cf9ff9f2f Fixed that the TimerEvent should flag as pendingDelete before calling the callback, because callback might trigger the reorder function 2014-04-16 05:46:03 +08:00
Richard Davey
18c524c433 Merge pull request #728 from clark-stevenson/patch-1
Update phaser.d.ts
2014-04-15 21:36:17 +01:00
clark-stevenson
0063c85c86 Update phaser.d.ts
Recent additions.
2014-04-15 20:11:24 +01:00
photonstorm
1326e40598 Build files + docs update. 2014-04-15 15:39:23 +01:00
photonstorm
5f455791d4 TypeScript defs update (thanks @cheshirepuss42, ping to @clark-stevenson to ensure merge with his master version :) 2014-04-15 03:24:54 +01:00
photonstorm
3b73c17997 ArcadePhysics.Body.phase is checked in postUpdate to prevent it from being called multiple times in a single frame. 2014-04-15 02:50:25 +01:00
photonstorm
1164bf85ac Line.angle and Math.angleBetween used Math.atan2 arguments in the wrong order (thanks @jotson, fix #724) 2014-04-15 02:12:33 +01:00
Richard Davey
d9e5b4078d Merge pull request #724 from jotson/dev
Math.atan2 calls are using arguments in the wrong order
2014-04-15 02:08:53 +01:00
John Watson
252032359d Merge branch 'dev' of github.com:jotson/phaser into dev 2014-04-14 17:15:09 -07:00
John Watson
27bdbbafaa Fixed Math.atan2 arguments in wrong order
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/atan2
2014-04-14 17:14:31 -07:00
photonstorm
563e581049 Tidied up jsdoc blocks. 2014-04-15 00:57:35 +01:00
photonstorm
eeff786eb2 StateManager.restart incorrectly skipped the first additional parameter after clearCache (thanks @mariusbrn, fix #722) 2014-04-14 23:34:13 +01:00
photonstorm
25a93cf4af AnimationManager.play will now call Animation.stop on the current animation before switching to the new one (thanks @nihakue, #713) 2014-04-14 23:29:09 +01:00
photonstorm
5d0ea6453b AnimationManager.destroy now iterates through child animations calling destroy on all of them, avoiding a memory leak (thanks stauzs)
Animation.destroy didn't correctly clear the onStart, onLoop and onComplete signals.
2014-04-14 22:53:05 +01:00
photonstorm
a7f6165e39 InputManager.resetLocked - If the Input Manager has been reset locked then all calls made to InputManager.reset, such as from a State change, are ignored.
Keyboard.reset has a new `hard` parameter which controls the severity of the reset. A soft reset doesn't remove any callbacks or event listeners.
Key.reset has a new `hard` parameter which controls the severity of the reset. A soft reset doesn't remove any callbacks or event listeners.
2014-04-14 21:53:08 +01:00
photonstorm
055cb8058d Device.crosswalk detects if your game is running under Intels Crosswalk XDK. 2014-04-14 16:40:14 +01:00
photonstorm
e9cb345261 P2.World.convertTilemap now correctly checks the collides parameter of the tiles as it converts them. 2014-04-14 13:52:53 +01:00
photonstorm
f70e4d7d90 Fixed the use of the destroy parameter in Group.removeAll and related functions (thanks @AnderbergE, fix #717) 2014-04-14 12:57:29 +01:00
Richard Davey
2fd704062d Merge pull request #718 from clark-stevenson/patch-1
Update phaser.d.ts
2014-04-14 11:52:34 +01:00
photonstorm
f33ba5dcc7 Timer has removed all use of local temporary vars in the core update loop.
Timer.clearPendingEvents will purge any events marked for deletion, this is run automatically at the start of the update loop.
The main Timer loop could incorrectly remove TimeEvent if a new one was added specifically during an event callback (thanks @garyyeap, fix #710)
2014-04-14 11:51:50 +01:00
clark-stevenson
af42813a36 Update phaser.d.ts
#715

Added OnFileStart signal to loader
2014-04-14 11:44:32 +01:00
Richard Davey
286882b1ee Merge pull request #705 from codevinsky/Loader-onFileStart
Added OnFileStart signal to loader
2014-04-14 11:27:32 +01:00
Richard Davey
ddf401e2a4 Merge pull request #714 from clark-stevenson/patch-2
Update phaser.d.ts
2014-04-14 11:22:23 +01:00
clark-stevenson
4167e9ab00 Update phaser.d.ts
#95b0532
#770ced8
#780fb48
#a01cc2e
#b7b1e74  <-- Not sure how to handle src/utils/Utils.js Array.prototype.forEach
2014-04-13 19:43:13 +01:00
jdowell
c9a67936d8 Added OnFileStart signal to loader
We've had a number of people in the channel ask for the ability to know when a file has started loading and to get the file names of said files.

Added the OnFileStart signal to do just that.
2014-04-11 13:17:26 -05:00
photonstorm
4c31623e6e Fixed changelog case. 2014-04-11 14:32:37 +01:00
photonstorm
c1ff6ef0df Changed md. 2014-04-11 14:31:54 +01:00
photonstorm
0d15350755 Preparing for 2.0.4 development. 2014-04-11 14:29:38 +01:00
photonstorm
cdff873cf7 Updated change log and readme headers. 2014-04-11 13:28:17 +01:00
photonstorm
7b2c3e8e0f Updated header styles in readme. 2014-04-11 13:15:41 +01:00
photonstorm
4cea8d7bcc Preparing for final 2.0.3 release. Updated docs, readme and build files. 2014-04-11 13:09:28 +01:00
photonstorm
eb23903174 Corrected initial particle scale. 2014-04-11 03:26:14 +01:00
photonstorm
a2b2d558a5 jsdoc and jshint fixes. 2014-04-11 03:02:19 +01:00
photonstorm
3d7ca639c3 Fixed the vectors used in the BlurX and BlurY filters (thanks @nickryall, fix #668) 2014-04-11 01:01:47 +01:00
photonstorm
77f8e5eefc P2 Fixtures Collection Class (@georgiee please test it works ok! #704) 2014-04-11 00:43:30 +01:00
photonstorm
3a1c202e24 jsdoc fixes for SignalBindings. 2014-04-11 00:19:37 +01:00
Richard Davey
b7b1e7428a Merge pull request #704 from georgiee/fixture-list
P2 Fixtures Collection Class
2014-04-11 00:19:05 +01:00
Richard Davey
7424ef7c7a Merge pull request #703 from STuFF/dev
Dev
2014-04-11 00:12:09 +01:00
photonstorm
a01cc2e1ca Objects with an InputHandler now deactivate it when the object is removed from a Group but not destroyed (fix #672)
Lots of jsdoc fixes in Body and World.
Removed un-used events from World (such as onImpact).
2014-04-11 00:06:22 +01:00
STuFF
3376956657 re-generated documentation 2014-04-11 00:13:43 +02:00
STuFF
c24b6e6f1c documentation template : classes names indentation 2014-04-11 00:11:26 +02:00
Georgios Kaleadis
b61f19cf76 added fixture list files to grunt 2014-04-10 23:51:07 +02:00
Georgios Kaleadis
b4a1816245 added fixture list files to grunt 2014-04-10 23:50:05 +02:00
Georgios Kaleadis
13e5cacd71 added a p2 fixture collections helper class 2014-04-10 23:45:35 +02:00
Georgios Kaleadis
1213cae0a4 additionally save fixtures by key 2014-04-10 21:28:14 +02:00