photonstorm
f6113ac6c4
Physics World events added.
...
Group has new 'addToWorld' parameter, which fulfills the same function as the old useStage.
Stage now extends PIXI.Stage rather than owns one.
2014-02-12 19:45:09 +00:00
photonstorm
c6cc2c9d71
Updated p2.js to latest build. Checked tests. Added Debug draw (needs rotation support).
2014-02-12 05:34:31 +00:00
photonstorm
2c100754bb
Body.setPolygon converted and working, along with some other p2 Body methods hoisted up.
2014-02-12 03:22:49 +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
ae74cb02dd
Fixes #382 Error when using InputHandler#onInputUp & sprite destroys itself during the event.
2014-02-10 02:14:59 +00:00
photonstorm
0294a4735d
Fixes issues reported in #389
2014-02-10 01:49:58 +00:00
photonstorm
f9f2f2a9ae
Converted the Pixi.Ellipse class.
2014-02-10 01:18:53 +00:00
photonstorm
e15bebd269
Text.lineSpacing allows you to control the spacing between each line that is rendered.
...
Text.inputEnabled allows you to enable all input events over Text objects: dragging, clicking, etc - anything that works on a Sprite works on Text now too.
2014-02-09 22:48:35 +00:00
photonstorm
bca64c2adb
Huge update to Phaser.Text. Much more lean, but loads of great new options added including drop shadows, gradient fills, fonts with spaces in the name, etc.
2014-02-09 13:36:02 +00:00
photonstorm
4aa945f991
Removed PixiPatch as it's no longer needed. Re-worked all of the Sprite autoCull and inWorld checks and cached the bounds. Fixed the Body calculations so physics is working again.
2014-02-09 03:48:31 +00:00
photonstorm
243820c973
Fixing up Pixis setBackgroundColor.
2014-02-08 09:14:44 +00:00
photonstorm
67bd653eb4
Graphics updated and restored. Working through fixing up Physics.
2014-02-07 19:44:14 +00:00
photonstorm
c429787877
Button now extends Phaser.Image not Phaser.Sprite, all the same functionality as before remains, just no animations or physics body.
2014-02-07 18:55:29 +00:00
photonstorm
bf13c7b569
Updated Sprite to use the new smaller, leaner code. Farewell insane cache objects and multiple point processing!
2014-02-07 18:44:58 +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
890e52008a
Mouse callback tests.
2014-02-07 07:32:11 +00:00
photonstorm
9b9baa83a9
Added Image.frame and Image.frameName support in.
2014-02-07 06:52:49 +00:00
photonstorm
d583b364bd
Game.add.renderTexture now has the addToCache parameter. If set the texture will be stored in Game.Cache and can be retrieved with Cache.getTexture(key).
...
Game.add.bitmapData now has the addToCache parameter. If set the texture will be stored in Game.Cache and can be retrieved with Cache.getBitmapData(key).
2014-02-07 06:25:28 +00:00
photonstorm
773b4d5ed1
More animation tests.
2014-02-07 04:12:23 +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
3cae06d1ad
Phaser.AnimationParser now sets the trimmed data directly for Pixi Texture frames. Tested across JSON Hash, JSON Data, Sprite Sheet and XML.
2014-02-07 00:57:41 +00:00
photonstorm
6cabb03a82
Sprite.crop() now takes a Phaser.Rectangle instead of explicit parameters.
...
Phaser.Image is a brand new display object perfect for logos, backgrounds, etc. You can scale, rotate, tint and blend and Image, but it has no animation, physics body or input events.
Previously if you used Sprite.crop() it would crop all Sprites using the same base image. It now takes a local copy of the texture data and crops just that.
2014-02-06 23:13:39 +00:00
photonstorm
4b7fc8d506
Change to boot order to try and resolve short-TTL timers.
2014-02-06 22:42:35 +00:00
photonstorm
3748811d11
Testing new Image object.
2014-02-06 19:34:05 +00:00
photonstorm
4ed20e0f77
Removed all intances of Sprite.group from Group and replaced with the already existing parent property.
2014-02-06 13:15:45 +00:00
photonstorm
4cfce8b4d2
Group now extends PIXI.DisplayObjectContainer, rather than owning a _container property, which makes life a whole lot easier re: nesting.
2014-02-06 02:31:36 +00:00
photonstorm
0896c2fac7
Updating copyright year and README.
2014-02-05 16:54:59 +00:00
photonstorm
1af86771ba
And we have level/ground jitter fixed :) Starstruck is running again properly now too. Time to commit and remove lots of debug data.
2014-02-05 16:54:58 +00:00
photonstorm
84f0f00f49
n-way collision checks and onBeginContact and onEndContact done and working. Also fixed issue in TweenManager.removeAll.
2014-02-05 16:54:58 +00:00
photonstorm
8315973c5d
Body/Group testing complete. Now focusing on n-way collision.
2014-02-03 04:09:45 +00:00
photonstorm
28f71ed86d
Fixed the Sprite / World / Group body issue. So invaders now works again, as do the new examples.
2014-02-03 04:09:45 +00:00
photonstorm
3488880956
Sprite vs. Sprite Group Body Tests.
2014-02-03 04:09:45 +00:00
photonstorm
5e182d317b
Fixed lots of examples and added the missing Line.js.
2014-01-31 14:12:20 +00:00
photonstorm
27fc447928
New polygon collision object examples and Body scale fixes.
2014-01-31 10:34:18 +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
9deb5514a2
ArcadePhysics.setBoundsToWorld implemented. Body.setCircle, setRectangle and setPolygon all working. Tidying up Body class. Need to add tile collision special case handler next.
2014-01-28 05:01:17 +00:00
photonstorm
90c09374af
Velocity integration tidied up. Now moving to sync Body with Sprite center point.
2014-01-28 01:29:35 +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
754219a978
Fixed some documentation typos.
2014-01-09 01:23:23 +00:00
photonstorm
5526a7322b
Warning: This version has a new ArcadePhysics handler in it. Don't upgrade if you need this for live game code, wait until we go to master. Otherwise, this commit contains lots of new physics demos and a new updateMotion and Body class to try and fix, once and for all, the physics issues with applied forces.
2014-01-02 23:28:22 +00:00
photonstorm
d1cd1df9a5
Lots of fixes and updates to the Button class, InputHandler for snap offsets, Sound looping and Stage scaling.
2013-12-31 17:03:09 +00:00
photonstorm
ba74bea4b4
New Group.destroy example and patched the desyrel font xml.
2013-12-30 21:36:50 +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
fdbdd81b7b
Updated some docs, added the new renderHidden parameter for Canvas and updated the RenderTexture examples as a result.
2013-12-27 00:26:21 +00:00
photonstorm
0acef49a7c
RenderTexture now displays correctly in Canvas games.
...
Stage.display property added. A direct reference to the root Pixi Stage object (very useful for RenderTexture manipulation)
2013-12-23 04:20:09 +00:00
photonstorm
63d90a0176
Sprites that are fixedToCamera can now be input dragged regardless of world position.
2013-12-22 03:46:08 +00:00
photonstorm
b2c680811b
New unified Tiled loader.
2013-12-18 13:02:01 +00:00
photonstorm
dd7ae12271
ArcadePhysics.overlap and collide now recognise TileSprites in the collision checks.
2013-12-17 16:48:03 +00:00