Commit graph

68 commits

Author SHA1 Message Date
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
Richard Davey
183896f8ff Added parentContainer property 2018-04-05 14:56:43 +01:00
Richard Davey
747f09af86 jsdoc fixes 2018-03-28 15:04:09 +01:00
Richard Davey
8e7944a1b4 Updated EventEmitter reference 2018-03-21 14:09:58 +00:00
orblazer
7fba122321 Fix "any" types 2018-03-20 17:15:49 +01:00
Richard Davey
cb5b12e9d3 The GameObject destroy event is now emitted at the start of the destroy process, before things like the body or input managers have been removed, so you're able to use the event handler to extract any information you require from the GameObject before it's actually disposed of. Previously, the event was dispatched at the very end of the process. 2018-03-20 01:05:53 +00:00
orblazer
b4a30b8e43 Add callbacks on GameObjects 2018-03-19 22:27:16 +01:00
orblazer
bf630f7d57 Fix types in JSDocs 2018-03-19 19:49:14 +01:00
Richard Davey
a712dea197 eslint fix 2018-03-05 22:25:55 +00:00
Hua
baeca90ae8 Add destroy event
Add destroy event of gameobject, also add a checking to prevent re-enter this destroy function.
2018-03-02 10:50:20 +08:00
Richard Davey
acc4922027 Fixes to the InputPlugin re: drop zones and addition of setInteractive argument. 2018-03-01 02:46:17 +00:00
Richard Davey
d72c7d501a Destroying a Game Object will now call destroy on its physics body. 2018-02-14 19:33:13 +00:00
Richard Davey
d1f5f8a82b Added jsdocs 2018-02-12 16:01:21 +00:00