Commit graph

971 commits

Author SHA1 Message Date
Richard Davey
e550202b28
v4.0.0 Alpha 1 merge 2024-11-14 11:40:26 +00:00
Richard Davey
833802c6e5
Added LOG_VERSION 2024-10-14 12:49:25 +01:00
Richard Davey
3057998965 TS defs issue fix #6904 2024-09-17 15:12:00 +01:00
Richard Davey
8091292439 Fix #6854 #6737 (PipelineConfig TS) 2024-09-03 14:35:02 +01:00
Richard Davey
5cc02afbd4 Update Config.js 2024-09-02 18:58:30 +01:00
Richard Davey
513e8b5429 Update RenderConfig.js 2024-09-02 16:10:24 +01:00
Richard Davey
6170a21938 Remove use of PipelineConfig 2024-09-02 16:05:50 +01:00
Andres
8b24e73d3d fix(typedefs): fixing some typo error 2024-08-22 21:49:51 -04:00
Richard Davey
ca4e2da432 loader.maxRetries is a new Game Config option to set the number of retries a file will attempt to load. The default is 2. 2024-08-07 15:43:25 +01:00
Richard Davey
24125ef4d9
Update Config.js 2024-08-06 22:48:49 +01:00
Richard Davey
49456a08b8
Merge pull request #6870 from samme/feature/timestep-pauseDuration-2
Pass pauseDuration 0 in `Phaser.Core.Events#RESUME` after manual game resume
2024-07-23 16:53:01 +01:00
samme
96bae29e62 Pass pauseDuration 0 for manual resume 2024-07-21 07:36:24 -07:00
Richard Davey
dc27d377f2 Include version in gameURL 2024-07-19 17:01:30 +01:00
Richard Davey
14429786a0
Merge pull request #6867 from samme/feature/timestep-pauseDuration
Add TimeStep#pauseDuration, pass in Phaser.Core.Events#RESUME
2024-07-18 20:34:57 +01:00
samme
2824185784 Add TimeStep#pauseDuration
Pass in Phaser.Core.Events#RESUME
2024-07-17 18:57:03 -07:00
zekechan
5ddd3bf8a2 Removed duplicate localScheme property 2024-07-17 23:30:53 +08:00
Richard Davey
ccf09b3019
roundPixels now defaults to false again 2024-07-16 21:24:43 +01:00
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