Commit graph

1676 commits

Author SHA1 Message Date
photonstorm
87bcb6677d Group.classType allows you to change the type of object that Group.create or createMultiple makes to your own custom class. 2014-04-23 21:49:58 +01:00
Richard Davey
9aefc65d73 Merge pull request #754 from clark-stevenson/patch-1
Update phaser.d.ts
2014-04-23 12:20:01 +01:00
clark-stevenson
4e2afcc270 Update phaser.d.ts
Fixed typo. I must have been having fun without knowing it.
2014-04-23 10:47:00 +01:00
Richard Davey
9bcd0cee70 Merge pull request #753 from clark-stevenson/patch-1
Update phaser.d.ts
2014-04-23 10:39:26 +01:00
clark-stevenson
b00e60a996 Update phaser.d.ts
Couple of updates for last week of dev.
2014-04-23 08:26:26 +01:00
photonstorm
4ec5665148 Fixed #750 - Invalid typescript mapping for TileSprite.autoScroll function in TS defs.
Game checks if window.console exists before using it (should fix IE9 issues when dev tools are closed), however it is still used deeper in Pixi.
Body.loadData flagged as deprecated.
2014-04-22 23:31:07 +01:00
photonstorm
944e03ddb8 P2.Body.loadPolygon has been updated to correct center of mass issues (thanks @georgiee, fix #749) 2014-04-22 22:33:25 +01:00
Richard Davey
7788365a74 Merge pull request #749 from georgiee/fix-loadPolygon
fixed loadPolygon center of mass
2014-04-22 22:08:53 +01:00
Georgios Kaleadis
c0189c02c1 fixed loadPolygon center of mass 2014-04-22 19:56:25 +02:00
photonstorm
e0f850bc21 jshint fix 2014-04-22 11:33:03 +01:00
photonstorm
06878407e8 RandomDataGenerator.integerInRange uses a new method of rounding the value to an integer to avoid distribution probability issues (thanks PhaserFan) 2014-04-22 11:01:15 +01:00
photonstorm
5aaac8fbd4 Lots of jsdocs updates in the State class to make it more clear what the various properties and methods do. 2014-04-22 02:52:58 +01:00
photonstorm
e4887c8177 If Tween.yoyo was true but repeat was 0 then it wouldn't yoyo. Now if yoyo is set, but not repeat, the repeat count gets set to 1 (thanks @hilts-vaughan, fix #744) 2014-04-22 02:12:21 +01:00
photonstorm
6ace9e6031 Made jsdocs clear that Point.set/setTo 2nd parameter is optional (fix #743) 2014-04-22 02:02:56 +01:00
Richard Davey
333b34b91e Merge pull request #742 from metrofun/point.rotate.d.ts
fix wrong definition for Phaser.Point.rotate
2014-04-22 01:54:56 +01:00
photonstorm
f3922002a1 Circle.distance used an incorrect Math call if you wanted a rounded distance value (thanks @OpherV, fix #745)
Point.distance used an incorrect Math call if you wanted a rounded distance value (thanks @OpherV, fix #745)
2014-04-22 01:52:24 +01:00
photonstorm
0b1fb5a637 Destroying an object with an input handler during its onDown event would throw Signals dispatch errors (thanks @jflowers45, fix #746)
InputHandler._setHandCursor private var wasn't properly set, meaning the hand cursor could sometimes remain (during destroy sequence for example)
All Game Objects have a new property: destroyPhase (boolean) which is true if the object is in the process of being destroyed, otherwise false.
The PIXI.AbstractFilter is now included in the Phaser Pixi build by default, allowing for easier use of external Pixi Filters.
2014-04-22 01:43:22 +01:00
Dmytrii Shchadei
d8e158ba87 fix wrong definition for Phaser.Point.rotate 2014-04-20 22:42:37 +02:00
photonstorm
a582f21a02 Fixed jsdoc and started extractAlpha 2014-04-20 21:17:01 +01:00
photonstorm
f24622191d Small jsdoc fix. 2014-04-20 10:47:09 +01:00
Richard Davey
bf10cfa58f Added ghosting info to Keyboard docs. 2014-04-20 01:57:32 +01:00
Richard Davey
e033ec9e86 The Emitter no longer checks minParticleScale = maxParticleScale, allowing for fixed scale particles again 2014-04-20 01:57:32 +01:00
Richard Davey
b124f02767 Merge pull request #738 from qdrj/dev
Dev
2014-04-20 00:59:51 +01:00
Richard Davey
92f1030363 Merge pull request #739 from OpherV/patch-1
Fixed typo in world.setMaterial
2014-04-20 00:57:13 +01:00
Opher Vishnia
22b62726ad Fixed typo in world.setMaterial
The function contained a typo: bodies is an Array and so bodies.setMaterial is undefined
2014-04-19 19:39:50 +03:00
qdrj
c8f1a15be2 Fix phaser.d.ts
Add missing semicolons from d.ts file. Now it's working with WebStorm 8.
2014-04-19 12:11:26 +04:00
qdrj
52a2c2612b Revert "Add missing semicolons. Now working with WebStorm 8."
This reverts commit 01b7a5957a.
2014-04-19 12:05:43 +04:00
qdrj
01b7a5957a Add missing semicolons. Now working with WebStorm 8. 2014-04-19 11:53:42 +04:00
photonstorm
7da28172e0 Tidied up the 2D logos and added one without glow effect. 2014-04-17 17:39:04 +01:00
photonstorm
90b9fafa29 New build files for the weekend :) 2014-04-17 14:59:04 +01:00
photonstorm
3e6a88fff6 Group.remove now checks the child to see if it's a member of the root Group before removing it, otherwise Pixi throws an Error. 2014-04-17 12:47:36 +01:00
Richard Davey
82e23d852d Merge pull request #734 from georgiee/fix-animation-destroy
Phaser.Animation#destroy fixed null reference of game
2014-04-17 12:33:01 +01:00
photonstorm
713bd203ee ArcadePhysics.collideSpriteVsGroup checks if Sprite has a body before carrying on, now safely skips sub-groups or other non-Sprite group children.
QuadTree.retrieve now checks to see if the given Sprite has a body before carrying on.
2014-04-17 12:31:14 +01:00
photonstorm
ce592d48bf Group.destroy checks parent before removing (thanks @clark-stevenson, fix #733) 2014-04-17 12:18:39 +01:00
Georgios Kaleadis
41095c2933 change order in destroy method, first clear references then null all values 2014-04-17 13:16:24 +02:00
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