Commit graph

956 commits

Author SHA1 Message Date
Richard Davey
063e8c78ef Including a render object within the Game Config will no longer erase any top-level config render settings. The render object will now take priority over the game config, but both will be used. Close #5935 2021-12-21 17:16:22 +00:00
Andy Mikulski
607bbe4ccd
TimeStep: Continue to use setTimeout after waking 2021-12-19 11:11:48 -07:00
Richard Davey
461e1ff4d0 Update PipelineConfig.js 2021-10-21 18:38:05 +01:00
Richard Davey
c8aeb4724a Added scale configs to game config #5840 2021-09-22 12:12:35 +01:00
Richard Davey
1e5542df92
Merge pull request #5740 from hanzooo/loader-type
feat: Add support for load image by HTMLImageElement
2021-09-21 11:52:28 +01:00
samme
ec8a629d1c Fix WEBGL-only selection and throw for unknown renderer type
Fixes #5583
2021-07-30 11:41:28 -07:00
Jm
28f58f4e5e
Merge branch 'photonstorm:master' into loader-type 2021-06-23 13:09:15 +08:00
Richard Davey
7d70bfbd57 Removed Config.domBehindCanvas property as it's never used internally. Fix #5749 2021-06-18 18:03:07 +01:00
Jm
c1e73c3c2f feat: add image load type 2021-06-10 13:24:29 +00:00
Richard Davey
72959cf953 Core.Config.domPointerEvents is a new config property set via dom: { pointerEvents } within the Game Config that allows you to set the pointerEvents css attribute on the DOM Element container. 2021-03-30 10:23:45 +01:00
Richard Davey
b7e678cf6c Update GameConfig.js 2021-03-24 16:30:33 +00:00
Richard Davey
20831604c7 Fixed missing backgroundColor property in GameConfig. 2021-03-24 15:42:55 +00:00
Richard Davey
8171c70bf5 Removed duplicate property 2021-03-08 15:06:05 +00:00
Richard Davey
c5cbb413d2 You can now set the boolean preserveDrawingBuffer in the Game Config (either directly, or in the Render Config). This is passed to the WebGL context during creation and controls if the buffers are automatically cleared each frame or not. The default is to clear them. Set to true to retain them. 2021-02-04 15:58:41 +00:00
Richard Davey
d1a08da63d Update RenderConfig.js 2021-02-04 15:28:35 +00:00
Richard Davey
a10919391a type fix 2021-02-01 15:17:59 +00:00
kainage
1e0bae4e21 Use transparent background for banner gameURL to support different browser color themes 2021-01-13 22:33:05 -08:00
Richard Davey
6e7a6bcec2 JSDoc Fix 2020-11-23 11:01:08 +00:00
Richard Davey
417f7684c3 More integer to number changes 2020-11-23 10:32:00 +00:00
Richard Davey
3f511a73cd Replace integer[] with number[] 2020-11-23 10:23:10 +00:00
Richard Davey
02c34cd64e Replace integer with number 2020-11-23 10:22:13 +00:00
Richard Davey
d852108154 JSDoc fixes 2020-11-23 10:19:39 +00:00
Richard Davey
40123f1a08 Updated docs 2020-11-10 12:01:25 +00:00
Richard Davey
59a215d643 * Types.Core.PipelineConfig is a new configuration object that you can set in the Game Config under the pipeline property. It allows you to define custom WebGL pipelines as part of the Game Config, so they're automatically installed and ready for use by all Scenes in your game. You can either set the pipeline object, or set it under the render sub-config. 2020-10-27 13:44:58 +00:00
Richard Davey
aada315bbc When setting both transparent: true and backgroundColor in the Game Config, it would ignore the transparency and use the color anyway. If transparent, the game is now fully transparent. Fix #5362 2020-10-20 14:01:31 +01:00
Richard Davey
9972594e60 Updated docs. FIx #4229 2020-10-17 12:11:35 +01:00
Richard Davey
cdc34ef3a8 inputMousePreventDefaultWheel is a new config option that allows you to control preventDefault calls specifically on mouse wheel events. Set it via input.mouse.preventDefaultWheel in the Game Config. It defaults to true, the same as the previous capture property did. 2020-10-07 10:14:28 +01:00
Richard Davey
2246b63504 inputMousePreventDefaultWheel is a new config option that allows you to control preventDefault calls specifically on mouse wheel events. Set it via input.mouse.preventDefaultWheel in the Game Config. It defaults to true, the same as the previous capture property did. 2020-10-07 10:13:50 +01:00
Richard Davey
bba88b32d8 Fixed property name 2020-09-23 17:15:32 +01:00
Richard Davey
63bac3a13d The Loader.maxParallelDownloads value is now set to 6 if running on Android, or 32 on any other OS. This avoids net::ERR_FAILED issues specifically on Android. You can still override this in the Game Config if you wish. Fix #4957 2020-09-23 13:04:18 +01:00
Richard Davey
fe4b706cb0 Setting the pixelArt config option will now set antialiasGL to false, as well as antialias. Fix #5309 2020-09-22 17:07:46 +01:00
Richard Davey
4795c56d79 Config.images.white is a new Game Config property that specifies the 4x4 white PNG texture used by Graphics rendering. You can override this via the config, but only do so if needed. 2020-09-14 14:57:08 +01:00
Richard Davey
c46c3e4c82 The Core.Config.resolution property has been removed. 2020-09-12 11:53:23 +01:00
Richard Davey
d844402d4d
Merge pull request #5298 from samme/feature/audio-config-default
Add default value for Phaser.Core.Config#audio
2020-09-11 16:25:50 +01:00
Richard Davey
0aea690497 Removed inputMouseCapture and added configs for inputMousePrventDefaultDown, Up and Move instead. 2020-09-11 10:59:20 +01:00
samme
ae5182be7d Default Phaser.Core.Config#audio; and refactor 2020-09-10 09:22:44 -07:00
Richard Davey
477b847f13 Config.render.maxTextures is a new game config setting that allows you to control how many texture units will be used in WebGL. 2020-07-15 16:51:40 +01:00
Richard Davey
85e6c229b3 Updated docs for #5191 2020-07-13 12:51:36 +01:00
Richard Davey
8c977bc391
Merge pull request #5127 from samme/fix/TimeStep-wake
Fix TimeStep#wake() when running
2020-07-13 11:52:10 +01:00
Adam Moore
341bc9b9d8
update docs for pixelArt to be more specific
For pixel art, we want the aliasing, so anti-aliasing should be off, or false.
2020-05-20 17:25:50 -07:00
samme
f8376c83bb Fix wake() when running
Should not sleep
2020-04-29 09:39:22 -07:00
Richard Davey
b14b60516a Fixed duplicate event introduced in #5038 2020-04-27 11:53:08 +01:00
halilcakar
43f26ad31f Update JSDocs for events 2020-03-10 11:11:43 +03:00
Richard Davey
20fabba0b9 Impact Physics is now removed from the core API 2020-02-04 14:52:04 +00:00
Richard Davey
0d263be52a Config.loaderWithCredentials is the new global setting for XHRSettings.withCredentials. 2020-01-22 16:30:11 +00:00
Richard Davey
ff65e69cd1 Changed copyright date to 2020 2020-01-15 12:07:09 +00:00
Richard Davey
1eec78375a Removed old comments 2020-01-07 12:39:38 +00:00
Richard Davey
d995cff36f
Merge pull request #4885 from rexrainbow/bug/game.destroy()
Fix bug of game.destroy()
2019-12-18 14:33:03 +00:00
Richard Davey
32b46b8e20 TimeStep.smoothStep is a new boolean property that controls if any delta smoothing takes place during the game step. Delta smoothing has been enabled in Phaser since the first version and helps avoid delta spikes and dips, especially after loss of focus. However, you can now easily toggle if this happens via this property and the corresponding FPSConfig property. 2019-12-17 13:04:50 +00:00
Hua
3010c005dc Fix bug of game.destroy() 2019-11-27 11:09:12 +08:00
Richard Davey
ffabf069e0 Added mipmapFilter to game config 2019-11-19 13:00:37 +00:00
Richard Davey
e5f93738ca
Merge pull request #4807 from jcyuan/master
fix TS issues and fix the condition to check video support.
2019-11-19 10:49:09 +00:00
Richard Davey
cc6cec5c83 Added in forceSetTimeout fps value (#4179) 2019-11-18 16:23:29 +00:00
J.C
9507ec7591 fix ts error, and update the output file. 2019-10-16 13:39:06 +08:00
samme
bc55428c49 Check pendingDestroy in headlessStep()
Fixes #4804
2019-10-15 12:00:44 -07:00
Richard Davey
e3039ffb64 Added antialiasGL option 2019-08-29 11:46:58 +01:00
Richard Davey
ca74b85b75 Better Sound Manager type 2019-08-07 18:20:19 +01:00
Richard Davey
b5662db113 New context lost / restored events 2019-07-15 15:28:23 +01:00
Richard Davey
12bcda98a6 Added support for a desynchronized context and alpha support in 2D 2019-06-04 19:13:49 +01:00
Richard Davey
d82b46c4d2 Updates TS Parser to handle Function[]
Fix #4522
2019-06-04 18:14:58 +01:00
Richard Davey
7aa3b3b07b TimeStep.now is a new property that holds the exact performance.now value, as set at the start of the current game step. Also, completed jsdocs. 2019-05-24 15:27:45 +01:00
Richard Davey
b86d737e2e Game.getTime would return NaN because it incorrectly accessed the time value from the TimeStep. 2019-05-24 15:27:33 +01:00
Richard Davey
ec5f3d3a33 The TimeStep.step method no longer uses the time value passed to the raf callback, as it's not actually the current point in time, but rather the time that the main thread began at. Which doesn't help if we're comparing it to event timestamps. 2019-05-24 14:40:11 +01:00
Richard Davey
22d6ec1e36 Removed inputQueue config option 2019-05-23 17:17:54 +01:00
Richard Davey
ee6506af8c The TimeStep will no longer set its frame property to zero in the resetDelta method. Instead, this property is incremented every step, no matter what, giving an accurate indication of exactly which frame something happened on internally. 2019-05-23 16:10:22 +01:00
Richard Davey
c91ed91ce3 License link update 2019-05-10 16:15:04 +01:00
Richard Davey
a6341a97a8 Fixed Types references 2019-05-09 15:32:53 +01:00
Richard Davey
1dca2c2c8a Scenes Types 2019-05-09 12:37:37 +01:00
Richard Davey
490dd62f2b Impact Types 2019-05-09 12:34:05 +01:00
Richard Davey
fbe2470f99 Arcade Physics Types 2019-05-09 12:33:37 +01:00
Richard Davey
a269816129 Core Types 2019-05-09 11:50:26 +01:00
Richard Davey
e0a9980fda Updated docs 2019-04-30 17:11:26 +01:00
Richard Davey
3c655bff3e Improved jsdocs 2019-04-30 11:08:34 +01:00
Richard Davey
813429d8dc Added getDuration and getDurationMS 2019-04-26 19:13:12 +01:00
Richard Davey
a47019b415 Keep the property but set to null by default. 2019-04-24 12:54:48 +01:00
Richard Davey
61921525f1 There is a new webpack config FEATURE_SOUND which is set to true by default, but if set to false it will exclude the Sound Manager and all of its systems into the build files. 2019-04-24 12:23:21 +01:00
Richard Davey
8c55844f6c
Merge pull request #4469 from samme/docs/scenes
Docs for scene config and optional scene methods
2019-04-16 13:24:49 +01:00
samme
f9797d0ed0 Add Phaser.Scenes.Types.CreateSceneFromObjectConfig 2019-04-10 12:43:44 -07:00
Richard Davey
950fc79e2e Took DOM Element out of experimental and hooked to the Scale Manager 2019-04-09 23:28:40 +01:00
samme
c83521ddae Fix GameConfig link 2019-04-09 13:01:38 -07:00
Bogdan Sikora
6e1db82a96 Transparent type added GameConfig 2019-03-09 16:05:36 +01:00
Richard Davey
9bfd1e28b0 Added missing audio config property 2019-02-24 22:12:11 +00:00
Richard Davey
341e78ce0d Added touch Window handlers and remove handlers 2019-02-22 02:26:52 +00:00
Richard Davey
c90ae09f9f Added window specific handlers
And game config option:

```
    input: {
        windowEvents: false
    },
```
2019-02-22 02:11:13 +00:00
Richard Davey
fd629fe783 Adding callback typedefs 2019-02-13 16:32:27 +00:00
Richard Davey
b4dbfea0a1 Impact typedefs 2019-02-13 15:05:16 +00:00
Richard Davey
3bb73c5664 Fixed Group defs and completed Arcade Physics defs 2019-02-13 14:45:36 +00:00
Richard Davey
f62ec4a739 Config typedefs done 2019-02-13 12:58:04 +00:00
Richard Davey
ccaae460a4 Added jsdoc version numbers to each event 2019-02-12 11:37:58 +00:00
Richard Davey
17d56bd8ac Moved jsdoc comment to stop weird TS module generation 2019-02-08 13:08:32 +00:00
Richard Davey
60542a25cc Numerous jsdoc and TS related fixes 2019-02-04 17:16:08 +00:00
Richard Davey
4d4f500629 Improved typedefs 2019-01-31 11:12:00 +00:00
Richard Davey
21c06668fb jsdoc fix 2019-01-29 23:21:24 +00:00
Richard Davey
cb7b335d7f Moved ScaleManager to its own namespace (Phaser.Scale) and out of DOM 2019-01-29 15:42:27 +00:00
Richard Davey
4182228e5a Updated DOM Container reference 2019-01-29 15:18:04 +00:00
Richard Davey
a9db477718 Moved to dom folder 2019-01-29 15:17:52 +00:00
Richard Davey
8d5a1fbd11 pixelArt if zoom !== 1 2019-01-29 15:17:41 +00:00
Richard Davey
f4e152747e Clarified parent setting in game config 2019-01-23 17:03:21 +00:00
Richard Davey
00e2f9a491 Added Input Queue flag. 2019-01-23 15:51:56 +00:00
Richard Davey
a75540a6c0 Updated docs. 2019-01-23 00:11:44 +00:00