364 Commits

Author SHA1 Message Date
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 bb5d8ca170 a 2013-09-07 21:12:47 +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 0c97e8e151 Starting work on Group. 2013-09-05 21:07:44 +01:00
Richard Davey b2fa345c9d console banner maker 2013-09-05 03:35:12 +01:00
Richard Davey c552d86639 Added swapChildren to Phaser.World 2013-09-05 02:11:54 +01:00
Richard Davey 4d4f7d3d56 Now working across child sets too :) 2013-09-05 01:57:28 +01:00
Richard Davey aa0d8ff238 Swap Child appears to be working. Time to tested a deeply nested set. 2013-09-05 01:34:22 +01:00
Richard Davey 87d52bd85e Linked List node swap 2013-09-05 01:12:34 +01:00
Richard Davey 912d6e46aa ... 2013-09-05 00:24:01 +01:00
Richard Davey 55cf10a085 LL work 2013-09-04 22:53:13 +01:00
Richard Davey ca0d1eb8af More node manipulations .. nearly there! 2013-09-04 21:34:07 +01:00
Richard Davey f4dab1847e Working on Linked List node swapping. 2013-09-04 21:03:39 +01:00
Richard Davey 10bc22b717 Motion helper functions added to the ArcadePhysics class. 2013-09-04 16:12:58 +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 2a353a0327 Flixel physics optimised about as much as it can be. Also added world and local gravity support and flag to toggle it on / off. 2013-09-04 01:10:01 +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 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 923c2504ba One more text demo just for fun :) 2013-09-03 06:35:59 +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 5acb4e9f1b Borrowed the 'extends' system from jQuery and now the codebase will be considerably smaller :) TileSprite already updated to new format. 2013-09-03 04:58:30 +01:00
Richard Davey e28cdbeb6a Moving to using a small extend / mixin method to avoid code repeating now we're extending Pixi display objects. 2013-09-03 04:43:26 +01:00
Richard Davey 66e86e7d82 Tiling Sprite added 2013-09-03 03:19:42 +01:00
Richard Davey c18de53bab SoundManager converted and playing audio :) 2013-09-03 01:24:16 +01:00
Richard Davey ed13283f0f Tided up the cull / bounds demo. 2013-09-03 00:42:17 +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 6235f25184 LL 2013-09-01 22:02:42 +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 b742439db8 Now handles scaling and rotation. Time to get the offset. 2013-09-01 02:39:26 +01:00
Richard Davey 99e0934244 More late-night math. 2013-09-01 02:28:51 +01:00
Richard Davey 5d4da0ce66 Working out culling 2013-09-01 00:35:29 +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 70ee753859 The complete Phaser Input Manager suite is now ported across. Not tested in earnest yet, but all the grunt work is at least done. 2013-08-31 13:54:59 +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
Richard Davey a81a8effb4 Sprite Sheets now parse and render correctly too. 2013-08-30 02:18:00 +01:00