photonstorm
7e12075be1
Buttons are now cleanly destroyed if part of a Group without leaving their InputHandler running.
...
You can now safely destroy a Group and the 'destroyChildren' boolean will propogate fully down the display list.
Calling destroy on an already destroyed object would throw a run-time error. Now checked for and aborted.
Calling destroy while in an Input Event callback now works for either the parent Group or the calling object itself.
In Group.destroy the default for 'destroyChildren' was false. It's now `true` as this is a far more likely requirement when destroying a Group.
All GameObjects now have a 'destroyChildren' boolean as a parameter to their destroy method. It's default is true and the value propogates down its children.
2014-02-27 20:05:16 +00:00
photonstorm
57796a60be
TileSprites can now receive full Input events, dragging, etc and be positioned in-world and fixed to cameras ( fixes #321 )
2014-02-21 19:21:00 +00:00
photonstorm
a61d030256
Display Objects now clean-up their children properly on destroy.
2014-02-21 13:25:08 +00:00
photonstorm
e5e643b103
fixedToCamera now works across all display objects. When enabled it will fix at its current x/y coordinate, but can be changed via cameraOffset.
...
fixedToCamrea now works for Groups as well :) You can fix a Group to the camera and it will influence its children.
Also fixed the issue with World.preUpdate/postUpdate not being called and various small documentation issues.
2014-02-15 01:27:42 +00:00
photonstorm
3e99391cbf
Updated all Game Objects so they all have preUpdate, update and postUpdate functions (even if empty). Updated World so when it iterates through them all it no longer checks if those functions are present before calling them. Was wasting a lot of time doing that before.
2014-02-14 01:09:52 +00:00
photonstorm
35e4c03bad
TileSprites are now much more tidy and can run from a frame in a texture. They can also be animated. New TileSprite.autoScroll function added.
2014-02-13 23:13:10 +00:00
photonstorm
90e9edbf05
Updated TileSprite so it just directly extends the Pixi original. This means no input events or body for a TileSprite.
...
Removed un-needed stuff from Graphics.
Removed un-used events.
Made docs in StateManager more clear re: shutdown (#410 )
2014-02-13 15:03:46 +00:00
photonstorm
0896c2fac7
Updating copyright year and README.
2014-02-05 16:54:59 +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
dd7ae12271
ArcadePhysics.overlap and collide now recognise TileSprites in the collision checks.
2013-12-17 16:48:03 +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
Webeled
ce04ade458
Lots of JSDocs updates in the gameobjects folder
2013-10-25 15:22:45 +01:00
Richard Davey
305b12d76b
Adding docs.
2013-10-01 15:01:46 +01:00
Richard Davey
9f687b4f8a
Adding Type support for collision checks.
2013-09-12 21:54:41 +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
66e86e7d82
Tiling Sprite added
2013-09-03 03:19:42 +01:00