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
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
6979103634
Fix for #732 (Timer.onComplete not firing).
...
jsdoc updates across Math and InputHandler.
2014-04-16 18:50:54 +01: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
Christian Wesselhoeft
428505f600
Enable jshint immed
flag.
2014-03-25 14:56:05 -07:00
Christian Wesselhoeft
61f18b675c
Trim trailing whitespace.
2014-03-25 14:56:04 -07:00
photonstorm
eec9f70c1c
Math.removeRandom allows you to remove (and return) a random object from an array.
...
Updated TypeScript defs to fix getRandom (fix #583 )
2014-03-18 16:51:58 +00:00
Kimmo Salmela
97a838edbb
Added support for radians in wrapAngle
...
My first time proposing a change in GitHub, so I hope I did it correctly.
2014-03-18 13:40:07 +02:00
photonstorm
c8e63582a4
Lots of small tweaks to pass jshint.
2014-03-13 16:49:52 +00:00
alvinsight
c9f89f5a3b
New examples for ninja physics, bitmap text, and documented the map function
2014-03-13 13:25:39 +00:00
photonstorm
cb5a8c7515
Renamed px2p and p2px to: pxm and mpx (px to meters and meters to px). Also removed from Math.
2014-03-12 00:07:27 +00:00
photonstorm
6bddf1a914
The main Game class has been modified so that the update methods no longer have any if/else checks in them. Now split into coreUpdate, etc.
...
Put QuadTree back into Debug class.
Debug class now clears down on WebGL.
Updated RetroFont.type.
Fixed QuadTree example.
2014-03-11 16:14:01 +00:00
photonstorm
170776ada1
rnd updated so the array picks use length -1 ( fixes #541 )
2014-03-11 10:56:54 +00:00
photonstorm
8fff38618d
Tidied up the Examples, fixed Arcade Physics Body, added Body enable support to Group and fixed QuadTree.
2014-03-10 03:06:28 +00:00
photonstorm
4db1fc0079
Restored Phaser.QuadTree - should get all remaining Arcade Physics examples working again.
2014-03-07 15:14:53 +00:00
photonstorm
8c2502d37d
Group.xy(index, x, y) allows you to set the x and y coordinates of a Group child at the given index.
...
Group.reverse() reverses the display order of all children in the Group.
New labs demo.
Fixed some Easing docs issues.
2014-03-04 01:27:57 +00:00
photonstorm
0eb23d4b11
RandomDataGenerator.integerInRange(min, max) now includes both min
and max
within its range ( #501 )
2014-03-02 11:21:30 +00:00
photonstorm
9fcab5ef26
Lots of doc fixes (thanks nhowell)
2014-02-20 03:44:44 +00:00
photonstorm
1d3616f52c
Do not invert (physics) shape size data for circle, rectangle, capsuel & line #445
2014-02-19 15:21:03 +00:00
photonstorm
14646e811c
QuadTree deprecated and moved to plugins. Body.collideWorldBounds added back and working. CollisionGroups pretty much finished.
2014-02-19 02:12:27 +00:00
photonstorm
5968dd053b
CollisionGroup and collision masks working. Need to refine a little, but all the essentials are there.
2014-02-19 01:51:14 +00:00
photonstorm
43d9fc4f52
Fixed issue where loadTexture would sometimes incorrectly try to apply the texture update twice. Also fixed bug in Math.angleBetween.
2014-02-11 04:08:32 +00:00
photonstorm
47e23096bd
Integrating p2.js.
2014-02-10 16:01:30 +00:00
photonstorm
0896c2fac7
Updating copyright year and README.
2014-02-05 16:54:59 +00:00
photonstorm
651858372c
Added Game core loop stepping support. Super-useful for debugging, and helped me track down the issue with jittery physics collision. Double-win!
2014-01-29 17:10:13 +00:00
photonstorm
e3aaec8ac0
Removed Time delta cap, removed drag references from Emitter and tested doing a custom polygon collision.
2014-01-24 03:53:11 +00:00
photonstorm
7a0e9a478c
New Math functions added.
2014-01-22 10:54:49 +00:00
photonstorm
15a002e720
Finally getting there! Body collision almost as good as it can be (without a full-on physics system). Just a few last tweaks to do.
2014-01-21 16:12:50 +00:00
photonstorm
128c7143d5
Lots more physics tests and updates.
...
PLEASE DO NOT upgrade to this release if you need your game working and it uses any of the physics functions, as they're nearly all broken here.
Just pushing up so I can share it with someone.
2014-01-20 20:14:34 +00:00
photonstorm
011d2d8e05
The way the collision process callback works has changed significantly and now works as originally intended.
...
The World level quadtree is no longer created, they are now built and ripped down each time you collide a Group, this helps collision accuracy.
Bodies are no longer added to a world quadtree, so have had all of their quadtree properties removed such as skipQuadtree, quadTreeIndex, etc.
QuadTree.populate - you can pass it a Group and it'll automatically insert all of the children ready for inspection.
Removed ArcadePhysics binding to the QuadTree, so it can now be used independantly of the physics system.
2014-01-14 02:43:09 +00:00
photonstorm
ce4cf531d4
Added class constructors, fixed Stripshader, added relative Tween example and updated Tween source.
2013-12-30 16:54:00 +00:00
photonstorm
299115ca5d
The entire Phaser library has been updated to match the new JSHint configuration.
2013-11-25 04:40:04 +00:00
photonstorm
13a2cc2feb
Updating all files to adhere to the JSHint settings and fixing lots of documentation errors on the way.
2013-11-25 03:13:04 +00:00
TheJare
8015194daa
Fix normalizeAngle and wrapAngle (again?)
2013-11-23 02:58:02 +01:00
TheJare
f115a2dbf8
Remove references to GameMath, it's just Math now
...
Throw exceptions if wrong format given to tilemap or textureatlas. Previously, old onload remained active and error happened in the wrong (and hard to diagnose) place.
2013-11-20 00:12:37 +01:00
Richard Davey
ebe441666c
BitmapData object added
2013-11-13 20:57:09 +00:00
photonstorm
29acf7fb4b
Enemy tanks, now firing.
2013-10-09 07:11:36 +01:00
photonstorm
83a00862be
Lots of new examples and updates.
2013-10-09 04:31:08 +01:00
Richard Davey
1c577d3674
Fixed RandomDataGenerator.sow
2013-10-08 22:55:27 +01:00
Richard Davey
47e1b1b54b
Sprite optimisations.
2013-10-04 19:00:55 +01:00
Richard Davey
96da57cac0
Fixed up the namespace in the documentation and finished off all sections other than Game Objects and Physics (yuck).
2013-10-03 02:38:35 +01:00
Richard Davey
868ae81bab
Input, Loader and Math docs tidied up.
2013-10-02 15:05:55 +01:00
Richard Davey
ca113b85aa
More docs coming on.
2013-10-01 16:39:39 +01:00
Richard Davey
305b12d76b
Adding docs.
2013-10-01 15:01:46 +01:00
TheJare
557160c3c2
Fixes to math library
2013-09-22 03:43:10 +02:00
Richard Davey
cf26f68693
Added Math.numberArray
2013-09-18 14:08:26 +01:00
Richard Davey
92e86494e3
Tilemap Collision in and working :) Needs testing against Groups now.
2013-09-12 15:39:52 +01:00
Richard Davey
f260108433
Tidying up source code for release. Also refactored World to use a Group instance, rather tha duplicate functions.
2013-09-11 13:21:07 +01:00
Richard Davey
fe6664eac7
Fixed the Body collide issues and optimised the process at the same time. Now the QuadTree appears to work perfectly as a result. Bonus!
2013-09-08 01:24:59 +01:00
Richard Davey
128bdccd79
Sorted out the QuadTree issues and resolved a small but vital bug in separateX, also re-organised the collision flags in Body.
2013-09-04 13:54:55 +01:00