Commit graph

954 commits

Author SHA1 Message Date
Richard Davey
f10147809f
Merge pull request #6815 from lgtome/fix-parent-parameter-type
JSDoc and type for parent property
2024-06-06 15:12:37 +01:00
Richard Davey
023d9fb0ba Added all of the missing Loader Config values (such as imageLoadType) to LoaderConfig, so they now appear in the TypeScript defs. 2024-06-06 14:32:58 +01:00
lgtome
370cfbb52c Fix jsdoc and type for parent property 2024-05-09 23:31:10 +03:00
Richard Davey
c445303ffb Revert define changes as they don't work 2024-02-21 13:23:52 +00:00
Richard Davey
7aaa976a4e Updated webpack config DefinePlugin use and corresponding defs to allow those crazy souls who import source directly on node to have a better life #6644 2024-02-21 12:57:48 +00:00
Richard Davey
1f8276ac76 Updated copyright year, company and author 2024-02-19 17:12:24 +00:00
Richard Davey
d2ce0f9358 Config#snapWidth and Config#snapHeight are new properties in the Game Config that hold the parsed snap config values, as used by the Scale Manager. 2024-02-19 16:35:27 +00:00
Richard Davey
9bf53dd7c9 Added WebGLPipeline[] as a valid type for the pipeline property 2024-01-31 21:18:11 +00:00
Richard Davey
0b32610e56 Updated version to 3.70 2023-11-10 15:04:01 +00:00
Richard Davey
1afb2810bf Expose new system ready event 2023-11-09 13:40:45 +00:00
Richard Davey
4e19417657 Create SYSTEM_READY_EVENT.js 2023-11-09 13:40:39 +00:00
Richard Davey
3b190360f1 During Game.runDestroy it will now check for this.domContainer.parentNode before trying to remove it, preventing errors if the DOM Container has already been removed. Fix #6559 2023-11-08 16:49:39 +00:00
Richard Davey
cc931f869c Added disablePreFX and disablePostFX flags 2023-11-08 12:34:46 +00:00
Richard Davey
71e9e517a8 The Game Config roundPixels property is now true by default. This means that all Game Objects will be positioned and rendered with pixel-perfect precision, which is by far the most common use-case for Phaser games. This will prevent sub-pixelation when rendering at non-integer offsets and smoother scrolling, especially at high Camera zoom scales. If you wish to disable this, you can do so via the Game Config, or by setting the roundPixels property in the Game Config to false. 2023-11-07 18:41:00 +00:00
Richard Davey
8e1809688c The WebGLRenderer will now validate that the mipmapFilter property in the Game Config is a valid mipmap before assigning it. 2023-08-01 13:44:58 +01:00
Richard Davey
bba300b866 Update Config.js 2023-07-21 16:18:15 +01:00
William Pederzoli
f89ea401d5 add proper key value to scale width and height 2023-05-11 20:36:27 +02:00
Richard Davey
43a20e571e Added glowFXQuality and glowFXDistance config options 2023-02-27 13:48:31 +00:00
Richard Davey
86d557b84b Game.isPaused is a new boolean that tracks if the Game loop is paused, or not (and can also be toggled directly). Fix #6373 2023-01-29 22:05:06 +00:00
Richard Davey
5619f4ddde Update PhysicsConfig.js 2023-01-27 17:46:22 +00:00
Richard Davey
49efda3d9b Default mipmapFilter is now an empty string. 2023-01-23 20:58:43 +00:00
Richard Davey
51d10677b1 The Game.registry, which is a DataManager instance that can be used as a global store of game wide data will now use its own Event Emitter, instead of the Game's Event Emitter. This means it's perfectly safe for you to now use the Registry to emit and listen for your own custom events without conflicting with events the Phaser Game instance emits. 2023-01-06 17:19:45 +00:00
Richard Davey
468bf7821d Updated copyright year 2023-01-02 17:36:27 +00:00
Richard Davey
4346113fee
Merge pull request #6238 from ubershmekel/master
Introduce `SceneType` for ease and correctness
2022-11-29 14:33:39 +00:00
Richard Davey
fa6963319a The Game.headlessStep method will now reset SceneManager.isProcessing before PRE_RENDER. This fixes issues in HEADLESS mode where the Scene Manager wouldn't process additionally added Scenes created after the Game had started. Fix #5872 #5974 2022-11-23 16:14:15 +00:00
Richard Davey
e608c2caf1 The CONTEXT_RESTORED Game Event has been removed and the WebGL Renderer no longer listens for the contextrestored DOM event, or has a contextRestoredHandler method. This never actually worked properly, in any version of Phaser 3 - although the WebGLRenderer would be restored, none of the shaders, pipelines or textures were correctly re-created. If a context is now lost, Phaser will display an error in the console and all rendering will halt. It will no longer try to re-create the context, leading to masses of WebGL errors in the console. Instead, it will die gracefully and require a page reload. 2022-11-17 18:04:51 +00:00
Richard Davey
1657f9e843 If in debug mode, add to window 2022-10-28 17:53:41 +01:00
Richard Davey
5dd3a40342 Fixed data types 2022-10-09 18:11:00 +01:00
Yuval Greenfield
7a4dd97793 Fix the typescript types in the js
This generates the desired phaser.d.ts
2022-10-04 10:48:21 -07:00
Richard Davey
fea000cf94 Added defaultPipeline and autoMobilePipeline configs 2022-10-04 18:04:01 +01:00
Richard Davey
083100163b Updates stableSort and added autoMobilePipeline 2022-10-04 17:08:34 +01:00
Richard Davey
023343c789 All events have a type of string. Fix #6136 2022-09-21 22:01:03 +01:00
Richard Davey
71703ff19c GameConfig.stableSort is a new optional property that will control if the internal depth sorting routine uses our own StableSort function, or the built-in browser Array.sort one. Only modern browsers have a _stable_ Array.sort implementation, which Phaser requires. Older ones need to use our function instead. Set to 1 to use the legacy version, 0 to use the ES2019 version or -1 to have Phaser try and detect which is best for the browser
Ref #6217
2022-09-21 17:52:57 +01:00
Richard Davey
7c9d6a180b Testing native stable sort 2022-09-21 16:34:08 +01:00
Richard Davey
783254f47a
Merge pull request #6213 from vzhou842/delta-smoothing-max-fix
Fix delta history array length
2022-09-07 18:26:20 +01:00
Richard Davey
2482eab664 Added Game.pause and Game.resume methods 2022-09-07 16:11:13 +01:00
Victor Zhou
213dc394bc Fix delta history array length 2022-09-06 14:36:04 -07:00
Richard Davey
42b1afb784 Fixed fps rate limit 2022-08-29 16:58:54 +01:00
Richard Davey
9017d29d52 Update FPSConfig.js 2022-08-29 16:31:58 +01:00
Richard Davey
f776037f8e Lots of jsdoc updates. Fixed time reset. Split limit fps up. 2022-08-29 16:29:37 +01:00
Richard Davey
7fdaa08343 Testing new fps limit system 2022-08-26 18:54:55 +01:00
Richard Davey
593aaced12 The TimeStep no longer calculates or passes the interpolation value to Game.step as it was removed several versions ago, so is redundant. 2022-08-26 17:56:54 +01:00
Richard Davey
b1f03649bb LoaderPlugin.localSchemes is a new array of scheme strings that the Loader considers as being local files. This is populated by the new Phaser.Core.Config#loaderLocalScheme game / scene config property. It defaults to [ 'file://', 'capacitor://' ] but additional schemes can be defined or pushed onto this array. Based on #6010 2022-05-09 18:34:56 +01:00
Richard Davey
21bdac8a29
Merge pull request #6010 from Azim-Palmer/bugfix/cordova-webaudio-fix
Fix WebAudio for Crodova based apps
2022-05-09 16:56:37 +01:00
Richard Davey
201bfabf00 Setting scale.mode in the Game Config would be ignored. It now accepts either this, or scaleMode directly. Fix #5970 2022-05-06 18:21:28 +01:00
Krzysztof Głogocki
726c874c10 Merge remote-tracking branch 'origin/master' into bugfix/cordova-webaudio-fix 2022-04-07 14:08:05 +02:00
Richard Davey
59fbcc5ca3 Updated copyright year 2022-02-28 14:29:51 +00:00
Krzysztof Głogocki
897d2444f5 Fixing WebAudio for Cordova by introducing localScheme configuration 2022-02-15 12:07:48 +01:00
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