Commit graph

76 commits

Author SHA1 Message Date
Richard Davey
9911802272 Removed resize handling.
* The `Game.resize` method has been removed as it's no longer required. You should now call `ScaleManager.resize` instead.
* The Game will no longer dispatch the `resize` event. You should now listen for this event from the Scale Manager instead.
2019-01-11 16:47:27 +00:00
Richard Davey
ab75b1ad27 Refactoring Game.resize 2019-01-10 13:43:17 +00:00
Richard Davey
09bd56bd8e Removed Game.isOver property 2018-11-28 13:09:48 +00:00
Richard Davey
19a0638fb3 Added Game.getFrame and Game.getTime methods. 2018-11-23 16:19:18 +00:00
Richard Davey
d6bee1bbd1 Working through event debugging - don't pull this version unless you want logs everywhere! 2018-11-22 17:18:31 +00:00
Richard Davey
6634a439af :) 2018-10-26 19:38:08 +01:00
Richard Davey
0050f4686f Removed Spine Plugin from experimental flag 2018-10-23 13:30:01 +01:00
Richard Davey
557955e057 Merging Scale Manager and Spine Plugin back into master 2018-10-18 14:59:27 +01:00
Richard Davey
ae9c3b6f56 Tidying up for 3.15 release 2018-10-16 15:10:49 +01:00
Richard Davey
861de841b0 Commented out logs for beta build 2018-10-16 11:45:01 +01:00
Richard Davey
fc9b6f7504 Adding preBoot step 2018-10-10 13:53:49 +01:00
Richard Davey
4b1c762296 Updated @memberOf to @memberof 2018-10-10 10:49:13 +01:00
Richard Davey
3c4604127a Shorter error 2018-10-10 10:46:47 +01:00
Richard Davey
953422a059 Exposed Scale Manager via global reference 2018-10-09 18:14:09 +01:00
Richard Davey
a9063604dc Replace @readOnly with @readonly 2018-10-09 13:40:00 +01:00
Richard Davey
dea2ee89f0 Moving out of experimental 2018-10-08 17:03:00 +01:00
Richard Davey
51b36573aa Preparing for ScaleManager move 2018-10-08 15:23:20 +01:00
Richard Davey
41956c4625 Added FB plugin conditional 2018-09-20 14:14:29 +01:00
Richard Davey
d6ff9cfa5a FB Plugin moved to its own build file 2018-09-20 11:50:09 +01:00
Richard Davey
5fe6dbbe0c Added more jsdocs 2018-09-13 08:09:44 +01:00
Richard Davey
a103b0e6a6 Fixed FB Plugin paths to avoid build errors if plugin is enabled. 2018-09-04 12:35:23 +01:00
Richard Davey
7765496b19 Moved FB plugin behind build flag 2018-08-23 18:10:20 +01:00
Richard Davey
8a9cfdf83b Added properties and methods to Scale Manager ready for integration 2018-08-07 16:25:45 +01:00
Richard Davey
73524df816 The Game boot event flow has changed slightly. The Game will now listen for a texturesready event, which is dispatched by the Texture Manager when the default textures have finished processing. Upon receiving this, the Game will emit the ready event, which all the other systems listen for and respond to. The difference is that the Renderer uses the texturesready event to ensure that it is the first thing to be activated, before any other system. 2018-08-01 13:18:28 +01:00
Richard Davey
7e73024d83 Added new noReturn destroy boolean for when you absolutely want to nuke the site from orbit. 2018-07-31 10:29:11 +01:00
Richard Davey
c65e3c7428 Added FB Instant Games Plugin to core (will prepare for moving to unique build once feature complete) 2018-07-27 08:33:51 +01:00
Richard Davey
c741469894 Added optional DOM Container parent and config values 2018-07-18 17:22:52 +01:00
Richard Davey
e6e33f5e21 Added Game.isOver and mouseover and mouseout events. 2018-06-11 12:32:25 +01:00
Richard Davey
56888fd5db Game will now auto-focus and prevent focus loss for the keyboard when clicking away and back again
* Game has a new property `hasFocus` which is a read-only boolean that lets you know if the window the game is embedded in (including in an iframe) currently has focus or not.
* Game.Config has a new property `autoFocus`, which is `true` by default, and will automatically call `window.focus()` when the game starts.
* Clicking on the canvas will automatically call `window.focus`. This means in games that use keyboard controls if you tab or click away from the game, then click back on it again, the keys will carry on working (where-as before they would remain unfocused)
2018-05-18 17:37:45 +01:00
Richard Davey
32818ee9cd jsdoc fixes 2018-05-17 15:10:23 +01:00
Richard Davey
6d1166a9c2 lint fixes 2018-05-15 14:28:27 +01:00
Richard Davey
350cb037b7 All systems now register themselves with the new PluginCache 2018-05-15 12:51:50 +01:00
Richard Davey
4741ee02b1 Updated docs and lint fixes 2018-05-11 18:55:44 +01:00
Richard Davey
ade37dd35e Game.step now uses more events and less direct calls. 2018-05-11 01:50:16 +01:00
Richard Davey
be330e609e Moved PluginManager to new location 2018-05-10 17:14:33 +01:00
Richard Davey
cc9d3160b1 Update type 2018-05-10 13:07:49 +01:00
Richard Davey
7a4b29872e Allow for custom canvas and context game config options. Game.context now set in WebGL mode. Allows WebGL2 contexts to be passed in. Fix #3653 2018-05-10 12:25:33 +01:00
Richard Davey
8f54932f93 Remove canvas from parent node. 2018-04-19 14:23:55 +01:00
Richard Davey
5ccac599a6 Updated docs and destroy properties 2018-04-16 17:14:12 +01:00
Richard Davey
b28a7276f4 Fixed Game.destroy 2018-04-16 17:02:32 +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
d838097763 Game.destroy now checks to see if the renderer exists before calling destroy on it. Fix #3498 2018-04-03 15:41:02 +01:00
Richard Davey
91008232ad jsdoc fixes 2018-03-29 13:12:07 +01:00
Richard Davey
747f09af86 jsdoc fixes 2018-03-28 15:04:09 +01:00
orblazer
0d58832e5f Fix types on Animations and Boot 2018-03-27 13:30:00 +02:00
Richard Davey
f500f5509b Added DeviceConf def 2018-03-21 14:40:30 +00:00
orblazer
37b6fc5862 Fix many multiple types 2018-03-20 15:58:02 +01:00
orblazer
33e49a4416 Add callbacks on Boot, Actions and Create 2018-03-19 22:37:47 +01:00
Richard Davey
cc0998660e Updated jsdocs 2018-03-18 13:43:37 +00:00
Rafael Barbosa Lopes
61fbbdacd9 Removed a few blank lines along the way. 2018-03-05 13:15:16 -03:00