Commit graph

68 commits

Author SHA1 Message Date
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
Rafael Barbosa Lopes
20e3825e1f Pass game instance as boot callback arguments.
It may be useful to run some operations while the game is booting.
However, if a living instance of the game is necessary during this
process, only way possible is using a global variable at the moment.

This commit aims to amend that so whenever needed the game instance
reference is passed down and can be used inside the {pre,post}Boot
callbacks.
2018-03-05 13:09:12 -03:00
Richard Davey
252a76f416 The Headless render mode has been implemented. You can now set HEADLESS as the renderType in the Game Config and it will run a special game step that skips rendering. It will still create a Canvas element, as lots of internal systems (like input) rely on it, but it will not draw anything to it. Fix #3256 2018-02-28 21:57:32 +00:00
Richard Davey
cf01056913 Game.resize now resizes the SceneManager and emits an event. 2018-02-28 17:18:25 +00:00
Richard Davey
d4d2b21d6c Added Game.resize to help with resizing the game config, renderer and input in one 2018-02-28 14:26:24 +00:00
Richard Davey
8425629165 jsdoc fixes. 2018-02-12 23:51:47 +00:00
Richard Davey
e607d14171 Added jsdocs. 2018-02-12 23:13:16 +00:00
Richard Davey
2813ac8162 Moved PluginManager and merged configs into single root file for easier changing. 2018-02-12 23:03:48 +00:00
Richard Davey
d1f5f8a82b Added jsdocs 2018-02-12 16:01:21 +00:00