Commit graph

80 commits

Author SHA1 Message Date
Richard Davey
02c34cd64e Replace integer with number 2020-11-23 10:22:13 +00:00
Richard Davey
00c7b1d79e Destroy on reset! 2020-11-17 16:34:52 +00:00
Richard Davey
0658820b79 Clear post pipelines 2020-11-17 16:19:30 +00:00
Richard Davey
cd0a27acfa Fix #5308 2020-09-13 15:17:07 +01:00
Richard Davey
671c92e450 Added addedToScene and removedFromScene methods
* `GameObject.addedToScene` is a new method that custom Game Objects can use to perform additional set-up when a Game Object is added to a Scene. For example, Sprite uses this to add itself to the Update List.
* `GameObject.removedFromScene` is a new method that custom Game Objects can use to perform additional tear-down when a Game Object is removed from a Scene. For example, Sprite uses this to remove themselves from the Update List.
* Game Objects no longer automatically remove themselves from the Update List during `preDestroy`. This should be handled directly in the `removedFromScene` method now.
2020-08-24 19:18:29 +01:00
samme
981a4b1a0a Rename all setInteractive() arguments, and docs 2020-08-03 13:33:30 -07:00
samme
b7bc26d06f Correct types for GameObject#body? 2020-05-02 16:16:16 -07:00
Rex
307c2b1584 Add incData, toggleData method 2020-02-05 16:17:54 +08:00
Richard Davey
0b696ebc74 Added MatterJS.BodyType to GameObject.body type. Fix #4962 2020-02-04 21:13:44 +00:00
Richard Davey
20fabba0b9 Impact Physics is now removed from the core API 2020-02-04 14:52:04 +00:00
Richard Davey
ff65e69cd1 Changed copyright date to 2020 2020-01-15 12:07:09 +00:00
Richard Davey
5e027f7031 Added JSDocs 2020-01-02 16:45:28 +00:00
Richard Davey
33e15dca48 Marked argument as optional. Fix #4607 2019-06-22 11:38:24 +01:00
Richard Davey
c91ed91ce3 License link update 2019-05-10 16:15:04 +01:00
Richard Davey
290389c4ae Input Types 2019-05-09 12:02:03 +01:00
Richard Davey
b09ddc9048 GameObject Types 2019-05-09 12:01:00 +01:00
Richard Davey
3938675d9f Input typedefs 2019-02-13 14:17:36 +00:00
Richard Davey
e7b1d086e7 Moving all of the typedefs to properly namespaced scopes, rather than globals
\o/ ~ "Someone, save me!"
2019-02-13 12:35:12 +00:00
Richard Davey
36d86abd48 Added Camera Fade and Game Object Destroy events. 2019-01-18 14:21:45 +00:00
Richard Davey
aa341854c7 Happy New Year 2019-01-15 16:20:22 +00:00
Omar Shehata
9a77301e08 Fix jsdoc syntax 2018-12-26 10:43:57 -05:00
Richard Davey
ab85d480a7 Added setState method. 2018-11-21 02:24:54 +00:00
Richard Davey
43e76a7c45
Merge pull request #4129 from samme/docs/events
Docs for input and physics events
2018-11-07 16:18:17 +00:00
Richard Davey
979fc7341f The cameraFilter property of a Game Object will now allow full bitmasks to be set (a value of -1), instead of just those > 0 2018-11-07 16:12:28 +00:00
Richard Davey
601c7696c3 Game Objects have a new property called state. 2018-11-07 15:11:59 +00:00
samme
7ff8d51f98 Docs for input and physics events 2018-10-24 12:14:44 -07:00
Richard Davey
4b1c762296 Updated @memberOf to @memberof 2018-10-10 10:49:13 +01:00
Richard Davey
0a166f944f Game Objects no longer listen to Scene shutdown. Fix #4028 2018-09-13 09:28:33 +01:00
Richard Davey
6d7ca32e6d Game Objects would not remove themselves from the Scene's shutdown event handler when destroyed, leading to a build-up over time 2018-09-12 15:06:13 +01:00
Richard Davey
78ffd41704 More specific includes 2018-09-03 13:12:37 +01:00
Richard Davey
0dccc3a510 Updated jsdocs. Fix #3849 2018-08-21 23:48:03 +01:00
ampled
50c787a9c8 - add typedef for SpriteConfig extends GameObjectConfig
- allow update-function signature to be overriden by GameObject subclasses
2018-07-29 12:19:04 +02:00
Richard Davey
c1a4fb0092 typo 2018-07-20 17:49:49 +01:00
Richard Davey
ec5bd1912e GameObject.willRender now takes a Camera as its only argument and uses it within the check. This has allowed me to remove 23 duplicate checks spread across the various Game Objects, all of which did the same thing, saving both KB and CPU time as the flags were being checked twice in most cases. 2018-07-19 13:19:02 +01:00
Richard Davey
8af70d02d1
Merge pull request #3780 from TadejZupancic/patch-9
disableInteractive
2018-06-25 22:39:54 +01:00
Richard Davey
5a0fe89a7e Swap _id to id 2018-06-23 12:26:39 +01:00
TadejZupancic
5859979c96
Update GameObject.js 2018-06-21 14:07:18 +02:00
Daniel van den Brink
9a2c110c44
Fix GameObject typings for returning this 2018-06-17 08:54:28 +02:00
Richard Davey
5c7e624260 setInteractive will now take a configuration object as the only argument, allowing for easier setting of more complex input values 2018-06-11 11:35:31 +01:00
Richard Davey
c0ac1259ea Significant Data Manager overhaul.
Adds in values property, removes redundant functions, streamlines the event flow, adds features to the get and set handlers.
2018-06-05 01:01:13 +01:00
samme
0bbffdc965 Correct JSDoc type for GameObject#body 2018-05-15 08:04:44 -07:00
Richard Davey
672a535d88 Added disableInteractive and removeInteractive methods. #3621 2018-05-08 16:15:50 +01:00
Richard Davey
2037cf468b More clarity. #3622 2018-04-27 12:42:37 +01:00
Richard Davey
ce7d67297f Moving from 3.4.1 to 3.5.0 so we can release new camera fx and scene transitions 2018-04-15 12:44:47 +01:00
Richard Davey
59bc9dd0d9 Added GameObject.ignoreDestroy 2018-04-13 17:20:46 +01:00
Richard Davey
6b2307594a Scene plugin flow overhaul
Every Plugin has been updated to correctly follow the same flow through the Scene lifecycle. Instead of listening for the Scene 'boot' event, which is only dispatched once (when the Scene is first created), they will now listen for the Scene 'start' event, which occurs every time the Scene is started. All plugins now consistently follow the same Shutdown and Destroy patterns too, meaning they tidy-up after themselves on a shutdown, not just a destroy. Overall, this change means that there should be less issues when returning to previously closed Scenes, as the plugins will restart themselves properly.
2018-04-13 17:12:17 +01:00
Richard Davey
c57112414a eslint override 2018-04-12 02:18:01 +01:00
Richard Davey
9c0c037d79 Added getIndexList method. 2018-04-12 02:11:17 +01:00
Richard Davey
68ef6f8630 Removed parentContainer reference 2018-04-10 15:21:04 +01:00
Evan Cobb
4270660c31 adding documentation to some files with only one [description] tag 2018-04-08 14:13:02 -05:00