Christian Wesselhoeft
04d88b6c35
Fix jshint issues in src/geom
2014-03-25 14:56:05 -07:00
Christian Wesselhoeft
61f18b675c
Trim trailing whitespace.
2014-03-25 14:56:04 -07:00
photonstorm
344ab46d78
Line.fromSprite now sets "fromCenter" to false by default as Sprite.center is deprecated in 2.x. Documentation and Examples updated to reflect this.
2014-03-25 12:44:20 +00:00
photonstorm
901a7f13d1
Updated docs for 2.0 release and updated README.
2014-03-14 06:36:05 +00:00
photonstorm
017a017b96
TilemapLayer.getRayCastTiles will let you get all tiles that hit the given line for further processing.
...
Fixed Tilemap collision. Added new TILE_BIAS const to aid with fast/small sprites.
2014-03-14 02:33:58 +00:00
photonstorm
f678d1fd31
Line now has x, y, width, height, top, bottom, left and right properties, so you can effectively get its bounds.
2014-03-14 00:19:45 +00:00
photonstorm
a83a76bc5d
Line.coordinatesOnLine will return all coordinates on the line using Bresenhams line algorithm.
2014-03-14 00:05:03 +00:00
photonstorm
c8e63582a4
Lots of small tweaks to pass jshint.
2014-03-13 16:49:52 +00:00
photonstorm
22b1ce9b9d
Added Phasers new Physics Manager and restored the pre-1.1.4 ArcadePhysics system. The new manager can handle multiple physics systems running in parallel, which could be extremely useful for lots of games.
2014-03-05 02:36:08 +00:00
photonstorm
9fcab5ef26
Lots of doc fixes (thanks nhowell)
2014-02-20 03:44:44 +00:00
photonstorm
08e5f18257
Fixed some doc typos.
...
You can now pass a physicsConfig object with the game constructor that is given to p2.World, allowing you to set the broadphase, etc.
2014-02-19 03:51:48 +00:00
photonstorm
d44775c095
Phaser.Ellipse added. A fully compatible port of the PIXI.Ellipse class, can be used in Sprite/Image hitArea tests.
...
Phaser.Polygon added. A fully compatible port of the PIXI.Polygon class, can be used in Sprite/Image hitArea tests.
2014-02-10 01:37:50 +00:00
photonstorm
f9f2f2a9ae
Converted the Pixi.Ellipse class.
2014-02-10 01:18:53 +00:00
photonstorm
bc3a3fd43d
You can now use the hitArea property on Sprites and Image objects. hitArea can be a geometry object (Rectangle, Circle, Polygon, Ellipse) and is used in pointerOver checks.
2014-02-07 17:14:10 +00:00
photonstorm
ddc255382d
Updated Rectangle to use prototype based getters and setters (re: iOS speed discussion on the forum).
2014-02-07 02:31:29 +00:00
photonstorm
e88b10323a
Updated Phaser geometry classes so they over-ride the PIXI native ones, means we can do away with a whole bunch of over-rides and object changes in Sprite, etc.
2014-02-06 12:29:07 +00:00
photonstorm
0896c2fac7
Updating copyright year and README.
2014-02-05 16:54:59 +00:00
photonstorm
8e77e8cedb
Lots of TypeScript defs updates for the new Physics / Body classes.
2014-02-05 16:54:58 +00:00
photonstorm
45b6d5a741
Removed: Debug.renderSpriteTouching, Debug.renderLocalTransformInfo, Debug.renderWorldTransformInfo, Debug.renderSpriteCollision and Debug.dumpLinkedList.
...
Debug.renderPhysicsBody(body, color) is extremely useful for debugging the new physics bodies. Will draw the outline + points in the color given.
Debug.renderBodyInfo(sprite, x, y, color) will display lots of Sprite body data.
2014-01-31 05:42:20 +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
d51a37211c
Phaser.Line added to the group of geometry classes, with full point on line/segment and intersection tests (see new examples)
2014-01-29 00:21:28 +00:00
photonstorm
82cb66f47b
Updated intersects code, tilemap collision is running again. Still finding gravity pushing sprites through tiles.
2014-01-28 06:52:56 +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
1f513a333e
Fixed an issue where passing null as the Group parent wouldn't set it to game.world as it should have (thanks tito100).
...
Continued work on the tilemap collision - again, please don't use this version if you need working tilemaps.
2013-12-06 01:07:25 +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
Richard Davey
6a24d6116b
Lots of renderTexture updates and examples added
2013-11-13 06:49:24 +00:00
photonstorm
3f99b691c9
Added in a Group.sort demo, also updated the documentation and build files.
2013-11-07 06:10:15 +00:00
Román Jiménez
35dd98c72f
Added some docstring to the Polygon class
2013-11-05 20:31:33 +01:00
Román Jiménez
06e33bc8e4
Polygon & drawPolygon method
2013-11-05 20:25:06 +01:00
Stuart Lee
903c2e73fa
added getMagnitude, setMagnitude, normalize and isZero methods to Point
2013-10-31 14:11:03 +00:00
photonstorm
1f28d328a7
Commit before refactoring Sprite guts.
2013-10-24 21:21:00 +01:00
photonstorm
a6fac64248
Loads of issues reported on Github resolved (sprite crop, music resume, etc).
2013-10-24 04:27:28 +01:00
photonstorm
a97f271de7
Fixed Animation index 0 issue and hooked TilemapLayer to camera.
2013-10-16 02:09:12 +01:00
photonstorm
fd5eeb9088
Fixed Rectangle intersection issue and tilemap collision is working again. Win!
2013-10-15 15:24:07 +01:00
photonstorm
83a00862be
Lots of new examples and updates.
2013-10-09 04:31:08 +01:00
Richard Davey
852e82d0ca
More docs.
2013-10-02 12:11:22 +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
Richard Davey
257cbe3be8
Much more stable collision, just need to refactor the Tilemap handling - see if I can optimise it a bit too.
2013-09-23 03:26:08 +01:00
Richard Davey
d9a49797c4
1.0.4 release
2013-09-18 06:34:56 +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
e41e35fd09
Fixed an error that stopped 2 tweens from being able to run on the same object. Also refactored a lot of the classes to remove prototype properties and move them to local instance properties.
2013-09-10 20:40:34 +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
bdc1c2ceb9
Sorted out the bounds for when sprites are in trimmed texture atlases to stop the physics checks going insane. Also bundled in Advanced Physics lib, although not hooked up yet.
2013-09-03 15:35:40 +01:00
Richard Davey
d31777972c
Camera culling
2013-09-01 19:52:50 +01:00
Richard Davey
99e0934244
More late-night math.
2013-09-01 02:28:51 +01:00
Richard Davey
22847f6ade
DebugUtils converted, re-name spaced the Input classes and started on Camera culling.
2013-08-31 21:50:34 +01:00
Richard Davey
6bf7bab917
Fixed some errors in Rectangle and more Pixi hooks added, now creating the Stage properly and rendering sprites.
2013-08-29 19:20:04 +01:00
Richard Davey
8a09469798
Final methods added.
2013-08-28 19:18:34 +01:00
Richard Davey
9289f690eb
Rectangle mostly done, needs the prototype functions adding and some test cases made.
2013-08-28 17:19:13 +01:00
Richard Davey
89fe2855e4
Fixed a few things in Circle and added the Point object.
2013-08-28 15:58:37 +01:00
Richard Davey
0f58945212
Circle and Math converted
2013-08-28 15:27:22 +01:00