Commit graph

46 commits

Author SHA1 Message Date
Richard Davey
011ebb5968 Destroy resorts children and sets invisible 2017-12-02 04:03:06 +00:00
Richard Davey
d1cc12693c If a GameObject has a preDestroy method then call it before running the standard destroy calls. 2017-11-30 01:20:22 +00:00
Richard Davey
b3c40f51c0 Adding JSDoc blocks. 2017-10-04 17:05:26 +01:00
Richard Davey
d50aeb0039 Added getData and setData for better chaining and consistency. 2017-09-29 11:41:10 +01:00
Richard Davey
669f2e8350 Fixed callbacks not firing if an event nukes an interactive Game Object. 2017-09-25 16:06:16 +01:00
Richard Davey
3b268569f1 More comments work. 2017-09-13 02:02:49 +01:00
Richard Davey
6f3ec9fb9e All Game Objects now use GameObject.RENDER_MASK to compare against instead of a local property. 2017-09-13 00:58:25 +01:00
Richard Davey
ebce6346ab Lets get this comments show on the road 2017-09-12 17:08:43 +01:00
Richard Davey
f8eecb31a9 Testing jsdocs 2017-09-12 00:28:53 +01:00
Richard Davey
d8e08406ea GameObjects now have a data property again, which is a light-weight DataProxy object which interfaces with the DataStore. 2017-09-08 01:59:53 +01:00
Richard Davey
038f4fd0cb Removed parent property as no longer needed and fixed GameObject.destroy 2017-09-01 19:47:26 +01:00
Richard Davey
36cde5c6a2 Merge branch 'master' of https://github.com/photonstorm/phaser 2017-08-15 23:39:28 +01:00
Richard Davey
562eb4ab1a All GameObjects now have a physics body property (which is null by default) 2017-08-15 23:35:16 +01:00
Felipe Alfonso
9856200fdf Added camera gameobject filtering 2017-08-15 16:42:04 -03:00
photonstorm
e19e9758f5 Fixed issue with UpdateList trying to destroy items it manages. 2017-08-07 17:14:13 +01:00
photonstorm
52bb355429 Removing old and incorrect jsdoc blocks ready for first documentation pass. 2017-08-01 13:10:08 +01:00
photonstorm
e20d4b1156 Now possible to clear interactive objects. 2017-07-28 01:17:18 +01:00
photonstorm
8e8d43dcf1 Added setName method. 2017-07-27 17:39:46 +01:00
photonstorm
b2713fa017 Added GameObject.willRender method. 2017-07-27 14:22:05 +01:00
photonstorm
c3ba02aaaa Removing hitArea in place of input (InteractiveObject) 2017-07-18 13:54:43 +01:00
photonstorm
d804e056ed Renaming from State to Scene internally.
This is one monster update.
2017-07-14 14:50:51 +01:00
photonstorm
dd3fa23bab Modified setHitArea to pass the GO via the State Input Manager. 2017-07-13 15:49:06 +01:00
Richard Davey
6efeb2c90f Added hitArea property and setHitArea method 2017-07-13 02:05:32 +01:00
photonstorm
423326c71b Added empty update method so that default GameObjects can be added to Pools. 2017-07-07 18:26:03 +01:00
photonstorm
1c4ad2400a Triggered z-depth sort on creation. 2017-07-07 18:12:57 +01:00
Richard Davey
ff864409fc Added Active property and toggle method. 2017-07-07 01:56:02 +01:00
photonstorm
991ab2576d Broke the lists apart into DisplayList and UpdateList, as the vast majority of Game Objects don't ever need to have their preUpdate methods called as they are empty. 2017-07-04 16:44:16 +01:00
Richard Davey
f770712c2a Huge refactoring of States, plugins and object factories 2017-07-04 01:59:31 +01:00
Richard Davey
9d1640063b Added tabIndex property. 2017-05-01 01:27:35 +01:00
Richard Davey
81c6124a4d Added more toJSON GameObject functions. 2017-04-13 00:35:27 +01:00
Richard Davey
929d6fc8ef Enforced GameObjects to specify their type (a string based const) 2017-04-13 00:05:12 +01:00
Richard Davey
ea0af28983 Default preUpdate function. 2017-04-04 23:59:27 +01:00
Richard Davey
168ce84a01 GameObject.destroy calls Children.remove. 2017-03-30 13:28:40 +01:00
Richard Davey
63b2b55cf8 Brand new components and Class structure for Game Objects. Cleaner, leaner and more powerful than ever before. Whoop whoop! :) 2017-02-23 03:10:48 +00:00
photonstorm
f083699986 Removed transform from Children.
Added parent property.
2017-02-22 16:37:49 +00:00
photonstorm
9f9a49ec8c GO update. 2017-02-22 16:30:53 +00:00
Felipe Alfonso
efdc4898f3 Removed global scene graph. New system works with camera system 2017-02-20 21:38:22 -03:00
Richard Davey
05ff84f282 dirtyLocal test. 2017-01-31 18:27:43 +00:00
photonstorm
9371753b2c New Anchor component.
DrawImage now takes anchor arguments.
GameObject.angle fixed and all the other Transform accessors added back in (except Pivot).
Wrap fixed to not wrap if value is within range already.
2017-01-31 14:55:15 +00:00
Felipe Alfonso
371e779b11 Fixed issue when trying to render image on canvas with new transform 2017-01-31 10:32:03 -03:00
Richard Davey
7d83c9971f Fixed new Transform Component integration with Canvas Renderer. 2017-01-31 00:56:13 +00:00
Richard Davey
ebf4a50ca6 Updated so Game Objects and States are using the new experimental Transform 2. 2017-01-30 23:58:29 +00:00
photonstorm
6ee499132c Huge refactor to sort out the game loop flow. 2017-01-25 17:10:19 +00:00
Richard Davey
270504923d Fixed Scale Mode references. 2017-01-18 14:48:02 +00:00
photonstorm
275badf1ed Removed Phaser global use from modules. 2016-12-13 16:38:47 +00:00
Richard Davey
82d1ceeba4 Adding in WebGL Renderer. 2016-12-07 02:28:22 +00:00