photonstorm
2b40c8a7c7
Pointer.type and Pointer.exists properties added.
...
QuadTree.retrieve can now accept either a Sprite with a physics body or a Phaser.Rectangle as its parameter.
ArcadePhysics.getObjectsUnderPointer will return all children from a Group that overlap with the given Pointer.
2014-05-06 02:45:10 +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
c8e63582a4
Lots of small tweaks to pass jshint.
2014-03-13 16:49:52 +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
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
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
0896c2fac7
Updating copyright year and README.
2014-02-05 16:54:59 +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
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
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
305b12d76b
Adding docs.
2013-10-01 15:01:46 +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
Richard Davey
b2263c16c6
Patched the QuadTree, now working a whole lot better but am worried it's still working out too many collisions.
2013-09-04 04:54:43 +01:00
Richard Davey
3f3b6bfd35
Brand new highly optimised QuadTree added, populated by the game loop and world ready to be queried as often as you want in your game loop, without creating hundreds of new QuadTrees each frame.
2013-09-04 03:48:15 +01:00
Richard Davey
6235f25184
LL
2013-09-01 22:02:42 +01:00