photonstorm
312ec462bc
Sprite.exists now toggles the Body as well. Sprite.exists = false will remove an active Body from the World.
2014-02-13 09:55:46 +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
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
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
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
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
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
754219a978
Fixed some documentation typos.
2014-01-09 01:23:23 +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
886618c056
Tilemap collision fixed, regardless of rotation, number of overlapping tiles and speed (to a point anyway). Maps also don't crash if they are smaller than the render area. Layers can be positioned successfully anywhere in camera but collision isn't yet offset for this.
2013-12-06 04:34:27 +00:00
photonstorm
8e289e6b7c
Mostly working, just need to apply a max overlap to avoid tunneling, although a ray would be better.
2013-12-06 02:34:28 +00:00
photonstorm
c5c754725a
* When a Sprite is destroyed any active filters are removed as well.
...
* Updated Pixi.js so that removing filters now works correctly without breaking the display list.
2013-12-04 22:39:53 +00:00
photonstorm
666df67453
Tidying up the wip folder and updating pixi.
2013-12-03 20:50:34 +00:00
photonstorm
42c0bed502
Fixed World.scale and Group.scale.
2013-12-03 02:13:57 +00:00
photonstorm
f22159e257
Updated documentation.
2013-11-28 15:57:09 +00:00
photonstorm
a9a46bfbbf
Lots of documentation updates and new Loader examples.
2013-11-27 16:33:49 +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
373b97648d
Documentation updates
2013-11-24 23:52:31 +00:00
photonstorm
496639ff25
Added Phaser.Filter and started moving the shaders over into their own filter classes, so they won't all get bundled in unless needed.
2013-11-21 05:00:07 +00:00
Cameron Foale
7ef5ab8c98
Skip preupdate/update for PIXI hierarchies in which an ancestor doesn't exist
2013-11-19 16:29:02 +11:00
photonstorm
b63bd14172
ScaleMode fix, BitmapData change and Device updates.
2013-11-18 20:27:40 +00:00
photonstorm
7ad4164e3a
Expanding BitmapData
2013-11-17 04:33:16 +00:00
Richard Davey
ebe441666c
BitmapData object added
2013-11-13 20:57:09 +00:00
Richard Davey
6a24d6116b
Lots of renderTexture updates and examples added
2013-11-13 06:49:24 +00:00
photonstorm
787abc1e02
Updated debug header and added more info to the project template.
2013-11-01 04:58:08 +00:00
photonstorm
3c164b466c
* Updated: event.preventDefault() has been added to all Mouse event handlers.
...
* Updated: Sprite.deltaX/Y removed due to non-use. prevX/Y values moved to Sprite._cache.prevX/Y.
* Updated: Due to missing extends parameter the Sprite prototype was picking up functions from classes it never meant to (Button, TilemapLayer), now fully isolated.
2013-11-01 02:07:21 +00:00
photonstorm
24c809dd5f
Final body / physics / bounds fixes. Also updated various examples, optimised Sprite core loop and enhanced the Invaders example.
2013-10-30 03:46:52 +00:00
photonstorm
3de62907a0
Nearly fixed the tilemap / body issue. More tests needed but then can push to master.
2013-10-29 04:07:26 +00:00
photonstorm
a814cc26cc
* Fixed issue 135 - Added typeof checks into most ArcadePhysics functions to avoid errors with zero values.
...
* Fixed issue 136 - distanceTo using worldX/Y instead of x/y.
2013-10-28 10:17:36 +00:00
photonstorm
9f9e6a2a57
Lots of doc updates!
2013-10-25 16:54:40 +01:00
photonstorm
a08436abc3
Final Sprite documentation added.
2013-10-25 15:02:21 +01:00
photonstorm
d8a2b9d2af
Removed console.log
2013-10-25 05:43:10 +01:00
photonstorm
2921a6de2e
Pixel Perfect click detection now works even if the Sprite is part of a texture atlas.
2013-10-25 05:40:46 +01:00
photonstorm
1294b3a2b9
Input over now works regardless of rotation, anchor or scale.
2013-10-25 03:57:08 +01:00
photonstorm
427819c655
Sprite bounds finally correct, regardless of rotation, parenting, scale or anchor.
2013-10-25 03:50:15 +01:00
photonstorm
1469663ea5
Button fixes and Input coordinate fixes.
2013-10-25 02:19:16 +01: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
7e5f38d022
Phaser.Time physicsElapsed delta timer clamp added. Stops rogue iOS / slow mobile timer errors causing crazy high deltas.
2013-10-23 17:11:06 +01:00
photonstorm
4a51ac4671
Updated README and sorting out folder case issue.
2013-10-23 13:30:23 +01:00
photonstorm
8ed783802e
New examples page
2013-10-18 15:12:32 +01:00
photonstorm
9c1fdb371c
Nearly finished Tilemap integration into the core.
2013-10-16 06:33:39 +01:00
photonstorm
e98aa205ea
Sprite.destroy is back in business.
2013-10-13 01:29:57 +01:00
photonstorm
0201baef11
And Tilemaps are rendering again - and much better than ever before :) Just one final optimisation pass to do and then it's on to collision.
2013-10-11 18:18:27 +01:00
photonstorm
a7230aa769
Sprite.loadTexture added.
2013-10-10 09:03:38 +01:00
photonstorm
f10f9324ad
Animation.killOnComplete added and fixed a few issues in the Tanks game.
2013-10-09 13:36:57 +01:00
photonstorm
f5584bdfe5
Lots of fixes and updates to ArcadePhysics and Group, plus more examples.
2013-10-08 21:09:46 +01:00
photonstorm
c307f79102
Added Sprite.fixedToCamera, fixed Angular Velocity and Acceleration, fixed jittery Camera, added skipQuadTree flag and created lots more examples.
2013-10-08 00:58:20 +01:00
photonstorm
1bc6ac25fa
Preparing to merge new examples.
2013-10-07 22:15:28 +01:00
Richard Davey
47e1b1b54b
Sprite optimisations.
2013-10-04 19:00:55 +01:00
Richard Davey
455b18b7ec
Sprite optimisations :)
2013-10-04 18:09:56 +01:00
Richard Davey
e8bed83ac3
Making some major changes to Camera and World.
2013-10-04 14:41:15 +01:00
Richard Davey
54f073e5cb
Testing some new Camera tricks.
2013-10-03 23:20:24 +01:00
Richard Davey
ca113b85aa
More docs coming on.
2013-10-01 16:39:39 +01:00
Richard Davey
9b4b267e7a
Working through building the docs.
2013-10-01 16:15:45 +01:00
Richard Davey
305b12d76b
Adding docs.
2013-10-01 15:01:46 +01:00
Betsy Cottonflop
40b968028a
Fix for incorrect new particle positioning
2013-09-28 16:52:37 -07:00
Richard Davey
497d15b5bc
Sprite.play
2013-09-27 13:47:22 +01:00
Richard Davey
18c695e9dd
PixiPatch and other 1.0.7 features
2013-09-27 09:57:08 +01:00
Richard Davey
51049128f5
Collision fixes for testing
2013-09-23 22:23:17 +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
bc02a1a05e
Fixing collision issues
2013-09-23 01:06:09 +01:00
Richard Davey
a415e779d1
Final 1.0.5 release.
2013-09-20 13:55:33 +01:00
Richard Davey
d9a49797c4
1.0.4 release
2013-09-18 06:34:56 +01:00
Richard Davey
fd0a071cb3
Added Sprite.centerOn(x,y) and fixed the InputHander snap as a result.
2013-09-13 04:37:06 +01:00
Richard Davey
ecc91fb4e0
More collision test cases and fixing a few issues as I go :)
2013-09-13 03:07:39 +01:00
Richard Davey
9f687b4f8a
Adding Type support for collision checks.
2013-09-12 21:54:41 +01:00
Richard Davey
fba731e740
Added optional "pixel perfect" input checks and tested against static sprites, animated sprites, physics sprites and sprites positioned outside the screen (needing camera shift to appear).
2013-09-11 16:25:46 +01:00
Richard Davey
e79dd5856d
Added the ability to crop a sprite with a custom Rectangle.
2013-09-11 03:55:53 +01:00
Richard Davey
48ed27dfcc
Finished off RenderTexture. Sprites can now accept a RenderTexture or a key when you create them. RenderTextures are also now stored in the cache under their own key, making re-using them across other Sprites much easier. Also ported over all of the Tilemap classes, but need to get them rendering.
2013-09-11 02:57:36 +01:00
Richard Davey
f885f7b023
Added CSS3Filters plugin. Also modified Sprite to contain preUpdate call, so that update can be over-ridden by custom Classes + added an example for this.
2013-09-11 00:35:21 +01:00
Richard Davey
15fe5ed6c8
Fixed the Bring to Top bug and also fixed Group/World.swap when the child was a tail node. Also improved Group.dump significantly. Fixed Phaser.Utils namespace clash too.
2013-09-10 12:46:14 +01:00
Richard Davey
4f950ae801
Fixed a fantastic FrameData bug. Also added support to the Emitter to handle multiple image keys and/or frames.
2013-09-10 11:09:25 +01:00
Richard Davey
5d3fe891cd
Particle Emitter in and working. Nice and fast, and a lot more flexible than before.
2013-09-10 01:26:50 +01:00
Richard Davey
60f0e8967f
Added Phaser.Graphics and fixed the Out of World Bounds call.
2013-09-09 17:01:59 +01:00
Richard Davey
30fc4099c6
Out of bounds and Sprite events hooked up
2013-09-09 13:29:33 +01:00
Richard Davey
50624c1552
Input Handler working. Dragging, sliding, click detection, multi-touch. Appears to be an issue with bringToTop but it's most likely a problem with the swapChild function rather than Input.
2013-09-08 22:58:15 +01:00
Richard Davey
ebda1f99e3
Input Handler 90% there.
2013-09-08 22:38:19 +01:00
Richard Davey
90b1946c25
Input Handler mostly restored
2013-09-08 13:23:21 +01:00
Richard Davey
78598ae54a
Implemented my own LinkedList class to make the new Input Handler easier to work with. And also just generally useful to have too.
2013-09-08 11:24:41 +01:00
Richard Davey
eb7af3d2a2
Group nearly done. Sprite.anchor appears to be broken though, must fix.
2013-09-06 20:20:58 +01:00
Richard Davey
822a2df289
Lots of work on Group and also resolved the issue of the core game loop structure not being quite right.
2013-09-06 15:00:05 +01:00
Richard Davey
0f438d5221
separateX up and working sweet with gc spike removal too
2013-09-03 19:34:38 +01:00
Richard Davey
a27f6d6562
Forces working, collision half way there.
2013-09-03 17:28:12 +01:00
Richard Davey
2fe8a3a0a7
Physics integration and a fix to Tween that stopped the repeat/yoyo from working.
2013-09-03 17:07:05 +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
8a90a87492
Text converted and a couple of examples created. Using new extend system, so much smaller classes now.
2013-09-03 06:02:47 +01:00
Richard Davey
66e86e7d82
Tiling Sprite added
2013-09-03 03:19:42 +01:00
Richard Davey
7c597999d4
Camera culling now in and working, although you need to enable it on a per sprite basis. Also fixed a few small bugs in the Animation Manager.
2013-09-02 23:22:24 +01:00
Richard Davey
d31777972c
Camera culling
2013-09-01 19:52:50 +01:00
Richard Davey
7bdcbf5c2a
getBounds update.
2013-09-01 13:17:44 +01:00
Richard Davey
71b4cc532f
Added Sprite.getBounds function
2013-09-01 11:15:13 +01:00
Richard Davey
d54a92310d
Optimised sprite a tiny bit more and created a couple of fun demos :)
2013-09-01 06:21:39 +01:00
Richard Davey
fef28c6a6a
Optimised update loop to reduce calculations if the transform doesn't change.
2013-09-01 05:50:47 +01:00
Richard Davey
6ef89826df
Phew.. lots of transform matrix math over and I can finally get all 4 points of a Sprite, regardless of rotation, translation or scale of itself or any of its parents.
2013-09-01 05:29:53 +01:00
Richard Davey
12e5d2aceb
...
2013-09-01 05:22:08 +01:00
Richard Davey
801c2af9d4
Updated world so the update run uses the linked list. Sprite.getLocalPosition now almost working, but falls over for children.
2013-09-01 03:57:24 +01:00
Richard Davey
188d6239a3
Edge points in and working.
2013-09-01 03:15:27 +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
f9aa7f7339
Fixed small bug in Game where AUTO didn't detect the lack of WebGL properly. Tidied up Math a bit more.
2013-08-30 20:05:29 +01:00
Richard Davey
54d98944e4
Mummy attack :)
2013-08-30 18:56:10 +01:00
Richard Davey
e77f5da2cd
Fixed the TweenManager and added support to GameObjectFactory, so you can create tweens easily now all hooked in to the internal game clock. Also added the AnimationManager into Sprite, so you can create and play animations directly from sprites nice and easily.
2013-08-30 17:09:43 +01:00
Richard Davey
936118bd91
AnimationManager done and in, need to fix texture update bug, otherwise finished.
2013-08-30 04:20:14 +01:00