Richard Davey
e72a3b27e4
Call new unbind method
2020-11-03 18:04:57 +00:00
Richard Davey
26421bde82
Removed Graphics.setTexture
and related commands as no longer supported
2020-11-03 11:47:42 +00:00
Richard Davey
ebe5ba1a0a
New attributes, removed un-used properties, fixed JSDocs
2020-11-03 11:32:05 +00:00
Richard Davey
93948f5b29
JSDocs fixes
2020-11-03 11:31:52 +00:00
Richard Davey
f4b95ab2c3
New simplified Graphics shaders
2020-11-03 11:31:32 +00:00
Richard Davey
6af80708d0
Fixed all of the Shape WebGL rendering issues
2020-11-03 11:22:30 +00:00
Richard Davey
e0295e8521
Make use of GetCalcMatrix and remove texture related stuff
2020-11-02 22:40:12 +00:00
Richard Davey
881019e55d
No longer requires temp matrices
2020-11-02 22:39:42 +00:00
Richard Davey
10673da96b
Graphics is as Graphics does
2020-11-02 22:39:30 +00:00
Richard Davey
9e1b8c4b2f
Don't look-up properties from uniforms that aren't cached
2020-11-02 22:39:20 +00:00
Richard Davey
d05afa988f
Added batchVert method to help make customization easier
2020-11-02 22:39:08 +00:00
Richard Davey
47ec3d33c7
Remove texture setters
2020-11-02 16:20:22 +00:00
Richard Davey
3caa51a938
Update GraphicsPipeline.js
2020-11-02 16:20:16 +00:00
Richard Davey
a5ae67e1a6
Added Camera Pipeline
2020-10-30 17:55:56 +00:00
Richard Davey
4c3a5223fe
Added onFlush and onPostFlush
2020-10-30 17:55:36 +00:00
Richard Davey
ca4168e5d0
New Camera Pipeline, better boot handling, tidied up docs
2020-10-30 17:50:58 +00:00
Richard Davey
52d8140b4f
New onResize callback and better matrix handling
2020-10-30 17:50:38 +00:00
Richard Davey
5dbec83a8b
Using new Camera Pipeline (renderTexture todo)
2020-10-30 17:50:19 +00:00
Richard Davey
b73067a7a7
Implemented full uniform caching and setting handling. So much faster!
2020-10-30 17:50:06 +00:00
Richard Davey
4e7e5629d2
You can forceZero via the config now
2020-10-30 17:49:39 +00:00
Richard Davey
0a006e4c20
Tidied up parameters
2020-10-29 17:22:57 +00:00
Richard Davey
ebf7b19062
Removed unused code
2020-10-29 17:22:47 +00:00
Richard Davey
d39968e0a1
Parameter not needed
2020-10-29 17:22:39 +00:00
Richard Davey
6353496751
Added the ability for a pipeline to be locked or unlocked
2020-10-29 17:22:29 +00:00
Richard Davey
bf7e7f352a
Container can how set a pipeline that overrides all children
2020-10-29 17:22:16 +00:00
Richard Davey
ce69c22e86
Added new private forcePipeline
property and pipeline methods
2020-10-29 17:22:04 +00:00
Richard Davey
c9d56f5f1d
Removed unused matrices and method
2020-10-29 14:41:22 +00:00
Richard Davey
9a0f33d24c
Cause a full bind on first set
2020-10-29 14:41:04 +00:00
Richard Davey
4b48baea79
Removed all of the uniform code
2020-10-29 14:40:49 +00:00
Richard Davey
4badd54160
Added resetProgram and changed return values
2020-10-29 14:40:33 +00:00
Richard Davey
024f13f2ba
No longer use uViewMatrix or uModelMatrix
2020-10-29 14:37:52 +00:00
Richard Davey
b74351a87d
Update WebGLPipeline.js
2020-10-29 08:22:38 +00:00
Richard Davey
9e4141e18b
Pass the Game Object
2020-10-28 18:13:34 +00:00
Richard Davey
b1b44cd7f0
onBoot and setShader methods
2020-10-28 18:13:27 +00:00
Richard Davey
e1452b9ce7
Update WebGLShader.js
2020-10-28 17:40:21 +00:00
Richard Davey
48c0ba26c2
Better flush handling
2020-10-28 17:40:06 +00:00
Richard Davey
c5b538afcd
Added the new Graphics Pipeline
2020-10-28 17:39:54 +00:00
Richard Davey
d6ecea8d4d
Use the new attributes format
2020-10-28 17:39:31 +00:00
Richard Davey
60c834e2c8
Use the new Graphics Pipeline
2020-10-28 17:39:06 +00:00
Richard Davey
92c365a881
Removed all Graphics methods and related properties.
2020-10-28 16:53:31 +00:00
Richard Davey
4ba2b0eb7b
All swapped to using renderer matrices to make pipelines smaller
2020-10-28 16:52:59 +00:00
Richard Davey
8c6e67ecfc
Added attributes and other shader specific properties and methods
2020-10-28 16:15:56 +00:00
Richard Davey
e52def85be
All vertex values now set during boot, after shaders are created. Added batchQuad/Tri methods.
2020-10-28 16:15:35 +00:00
Richard Davey
389b480777
Using new easier attribute config + moved some methods to WebGLPipeline
2020-10-28 16:15:09 +00:00
Richard Davey
15d8eabf17
Single pipeline updated so it can easily extend Multi now
2020-10-28 16:14:42 +00:00
Richard Davey
93b1775aaa
Added new WebGL consts for easier shader configs
2020-10-28 16:14:05 +00:00
Richard Davey
9aeb765696
Updated type defs
2020-10-28 16:13:46 +00:00
Richard Davey
120f2c87cb
The WebGL.Utils.getComponentCount
function has been removed as this is no longer required internally.
2020-10-28 16:13:29 +00:00
Richard Davey
4b3cc7145e
Testing new pipelineData object.
2020-10-27 18:06:53 +00:00
Richard Davey
88d2ecd760
Pipeline passes attributes off to Shader. Also fixed multi-shader setup.
2020-10-27 18:06:45 +00:00
Richard Davey
39c77f431f
Flush here, rather than in renderer
2020-10-27 18:06:28 +00:00
Richard Davey
a5d6016e64
Move sequence so the renderer is clean
2020-10-27 18:06:13 +00:00
Richard Davey
f42f0ce0d6
Shader needs attributes
2020-10-27 18:06:00 +00:00
Richard Davey
8092460ce7
Docs update
2020-10-27 18:05:47 +00:00
Richard Davey
962c900e5a
* Utils.Object.DeepCopy
is a new function that will recursively deep copy an array of object.
2020-10-27 18:05:41 +00:00
Richard Davey
7b5d6076b2
Added max size value
2020-10-27 14:41:43 +00:00
Richard Davey
f50560eba8
The WebGLRenderer.getMaxTextures
method has been removed. This is no longer needed as you can use the WebGLRenderer.maxTextures
property instead.
2020-10-27 14:36:43 +00:00
Richard Davey
93b569c5ca
Look-up based on string or instance
2020-10-27 14:05:48 +00:00
Richard Davey
ba9b837739
You can now pass a pipeline instance to the GameObject.setPipeline
method, as well as a string.
2020-10-27 14:05:37 +00:00
Richard Davey
d670edd708
No need to reference via game
2020-10-27 13:55:27 +00:00
Richard Davey
ef1ddb29d9
Improved docs
2020-10-27 13:55:09 +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
7e30ff32be
Phaser.Scene.renderer
is a new property available in every Phaser.Scene that gives you a reference to the renderer, either Canvas or WebGL.
2020-10-27 13:42:45 +00:00
Richard Davey
98b4319436
Bind needs to return this
2020-10-27 12:26:01 +00:00
Richard Davey
4ebdc637a9
Tidied up method flow
2020-10-27 12:25:53 +00:00
Richard Davey
d2c025e38a
Added target fbo and all of the shader setters back in
2020-10-27 12:25:42 +00:00
Richard Davey
b278916b3e
No need to reset during destroy
2020-10-27 11:38:34 +00:00
Richard Davey
2b3863272e
Removed 'nativeTextures' and added new reset parameter
...
* The `WebGLRenderer.nativeTextures` array has been removed and any WebGLTextures created by the renderer are no longer stored within it. All WebGLTexture instances are stored in the `TextureSource` objects anyway, or by local classes such as RenderTexture, so there was no need to have another array taking up memroy.
* The `WebGLRenderer.deleteTexture` method has a new optional boolean parameter `reset` which allows you to control if the `WebGLRenderer.resetTextures` method is called, or not, after the texture is deleted.
2020-10-27 11:38:21 +00:00
Richard Davey
efbc256a1f
Added target fbo
2020-10-26 17:13:24 +00:00
Richard Davey
3c7062ca6a
Common strings.
2020-10-26 17:00:23 +00:00
Richard Davey
bc34d01535
Update WebGLPipeline.js
2020-10-26 15:19:21 +00:00
Richard Davey
1e80f53f1d
Better docs
2020-10-26 15:00:25 +00:00
Richard Davey
7c929e52bc
Finished method docs and added clone
2020-10-26 15:00:17 +00:00
Richard Davey
ec4751ddc6
Finished all method docs
2020-10-26 15:00:07 +00:00
Richard Davey
55cbda85b8
Removed debug code
2020-10-26 14:24:15 +00:00
Richard Davey
f87bd7d384
Removed all of the shader setters. This should be done via the WebGLShader class now.
2020-10-26 14:24:06 +00:00
Richard Davey
fba97afcb6
Update dirty uniforms
2020-10-26 14:05:49 +00:00
Richard Davey
f32b4c7ecd
Fixed config setter and added mvp matrices
2020-10-26 14:05:39 +00:00
Richard Davey
1e8b1cc583
Removed ProjectOrtho and optimized setters
2020-10-26 14:05:26 +00:00
Richard Davey
7ad02d6c0d
Removed mvp component
2020-10-26 14:05:07 +00:00
Richard Davey
371425a5d2
Use new pipeline resize method
2020-10-26 14:04:55 +00:00
Richard Davey
14e90c60d8
Don't resize to zero dimensions and run proper compare
2020-10-26 14:04:45 +00:00
Richard Davey
291f588110
Removed the mvp component. Pipelines no longer need this.
2020-10-26 14:04:01 +00:00
Richard Davey
af01b23696
JSDocs fix
2020-10-26 14:03:35 +00:00
Richard Davey
8c85887479
Removed all of the mvp functions as they're no longer needed
2020-10-26 14:03:18 +00:00
Kshitiz Srivastava
4941ca3b64
Added loadMediaStream method
2020-10-25 01:24:55 +05:30
samme
be558d2dca
Scale damping
2020-10-22 13:59:49 -07:00
Richard Davey
0b3011add3
Update PointLight-frag.js
2020-10-21 18:15:34 +01:00
Richard Davey
272727459f
Use new shader property
2020-10-21 18:15:28 +01:00
Richard Davey
9531124903
Typo fix
2020-10-21 18:15:19 +01:00
Richard Davey
da47c776fa
New shader class to allow one pipeline to set multiple shaders
2020-10-21 18:15:13 +01:00
Richard Davey
180b29be98
The pipeline can now handle multiple shaders all sharing the same attributes
2020-10-21 18:15:02 +01:00
Richard Davey
c730272ba7
Updated the configs to handle multiple shaders
2020-10-21 18:12:40 +01:00
Richard Davey
4b1c5c1a0b
Improved docs
2020-10-21 11:30:49 +01:00
Richard Davey
7ffa615831
The WebGLPipeline.flushLocked
property has been removed. A pipeline can never flush in the middle of a flush anyway, so it was just wasting CPU cycles being set.
2020-10-21 11:19:12 +01:00
Richard Davey
6ed84e2f34
Added Mesh.ignoreDirtyCache
flag.
2020-10-21 10:15:12 +01:00
Richard Davey
774b6987c4
Added Face.alpha getter and setter
2020-10-21 10:14:56 +01: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
Rex
34635c582e
Don't add white space when measure last word
2020-10-20 14:52:20 +08:00
Richard Davey
8bb1151aca
Fixed RenderTexture.fill rgb order. Fix #5364
2020-10-20 00:50:49 +01:00
Richard Davey
9972594e60
Updated docs. FIx #4229
2020-10-17 12:11:35 +01:00
Richard Davey
faec17f4b0
Cameras.Scene2D.Events.FOLLOW_UPDATE
is a new Event that is dispatched by a Camera when it is following a Game Object. It is dispatched every frame, right after the final Camera position and internal matrices have been updated. Use it if you need to react to a camera, using its most current position and the camera is following something. Fix #5253
2020-10-17 11:37:27 +01:00
Richard Davey
48d9eb6321
The GameObjects.Graphics.fillGradientStyle
method can now accept a different alpha value for each of the fill colors. The default is still 1. If you only provide a single alpha, it'll be used for all colors. Fix #5044
2020-10-16 18:08:31 +01:00
Richard Davey
675e43350d
Physics.Arcade.Body.setDamping
is a new method that allows you to set the useDamping
property of a Body in a chainable way. Fix #5352
2020-10-16 17:57:26 +01:00
Richard Davey
85a284d095
Particles.EmitterOp
now cleanly separates between the different types of property configuration options. start | end
will now ease between the two values, min | max
will pick a random value between them and random: []
will pick a random element. They no longer get mixed together. Fix #3608
2020-10-16 17:52:59 +01:00
Richard Davey
1aaecbe703
Particles.EmitterOp.setMethods
will now reset both onEmit
and onUpdate
to their default values. This allows you to reconfigure an emitter op with a new type of value and not have it stuck on the previous one. Fix #3663
2020-10-16 17:32:22 +01:00
Richard Davey
605ea31146
SceneManager.start
will now reset the SceneSystems.sceneUpdate
reference to NOOP
. This gets set back to the Scene update method again during bootScene
(if it has one) and stops errors with external plugins and multi-part files that may trigger update
before create
has been called. Fix #4629
2020-10-16 16:39:30 +01:00
Richard Davey
0fad1861ae
Update GeometryMask.js
2020-10-16 15:07:32 +01:00
Richard Davey
75f857b645
Update WebGLRenderer.js
2020-10-16 14:11:21 +01:00
Richard Davey
e50339b144
Updated to use new filtered children list
2020-10-16 14:11:15 +01:00
Richard Davey
d35ff331b2
Now takes a pre-filtered list of children to render
2020-10-16 11:36:00 +01:00
Richard Davey
84c1344f63
CameraManager.getVisibleChildren
is a new method that is called internally by the CameraManager.render
method. It filters the DisplayList, so that Game Objects that pass the willRender
test for the given Camera are added to a sub-list, which is then passed to the renderer. This avoids the renderer having to do any checks on the children, it just renders each one in turn.
2020-10-16 11:35:45 +01:00
Richard Davey
653c2ee600
Parallel and divide by zero fix
2020-10-15 18:08:35 +01:00
Richard Davey
ae6112297a
Default tint value should now be 0xffffff. Fix #5358
2020-10-15 12:19:17 +01:00
Richard Davey
37c9b0884d
Updated Polygon points type. Fix #5357
2020-10-15 12:01:13 +01:00
Richard Davey
8a01ae1cb7
Call the component directly to avoid lots of function diving
2020-10-15 11:47:24 +01:00
Richard Davey
536f08a4bf
Avoid deep diving into loads of functions
2020-10-15 11:47:11 +01:00
Richard Davey
67b787ab7c
Update GetTilesWithinWorldXY.js
2020-10-15 11:09:52 +01:00
Richard Davey
db2fdc14d1
Update GetTileAt.js
2020-10-15 11:09:37 +01:00
Richard Davey
f130f5e9a3
Fixed incorrect parameter type
2020-10-15 11:09:19 +01:00
Richard Davey
b4fed98aa2
Update SetCollisionBetween.js
2020-10-15 11:08:18 +01:00
Richard Davey
8d2e7b08c5
Update World.js
2020-10-15 11:07:51 +01:00
Richard Davey
417e57c199
Update Collider.js
2020-10-15 11:07:27 +01:00
Richard Davey
0f87981f47
Improved docs
2020-10-15 11:07:22 +01:00
Richard Davey
c03b5af079
Use mesh size
2020-10-15 10:09:02 +01:00
Richard Davey
020cfab2d6
Fixed issue with no mesh specified and texture getting
2020-10-15 09:58:54 +01:00
Richard Davey
f17743dadf
Changed updateProjectionMatrix
to setPerspective
and added setOrtho
counterpart
2020-10-14 16:32:29 +01:00
Richard Davey
e79ec0c96c
Generate Grid can now calculate w/h based on ortho texture
2020-10-14 16:32:06 +01:00
Richard Davey
675eec8103
Better attenuation
2020-10-14 15:16:35 +01:00
Richard Davey
cc167e158f
Much better effect from the light shader
2020-10-14 11:57:58 +01:00
Richard Davey
d3d0c71fe4
Fixed shader for clip-space
2020-10-13 22:34:26 +01:00
Richard Davey
b1a5ce7f55
Testing new batched lights
2020-10-13 18:17:30 +01:00
Richard Davey
61c0e1c499
Moved Text out of 'static' folder, as it doesn't need to be in there
2020-10-13 11:04:46 +01:00
Richard Davey
8708255948
Removed Layer3D Game Object and old MeshPipeline
2020-10-13 10:56:21 +01:00
Richard Davey
9d23735a23
Lint fix
2020-10-13 10:51:17 +01:00
Richard Davey
19f581327e
Removed Animation component because it would reset the UV coords every frame, so makes things overly complex
2020-10-13 10:50:42 +01:00
Richard Davey
98e877aaeb
Preparing for beta 10
2020-10-12 16:29:39 +01:00
Richard Davey
b3a74a6d5d
ParseTilesets
will now correctly handle non-consequtive tile IDs. It also now correctly sets the maxId
property, fixing a bug where tiles wouldn't render if from IDs outside the expected range. Fix #4367
2020-10-12 13:52:31 +01:00
Richard Davey
e526af7cb9
Lint fix
2020-10-12 13:38:57 +01:00
Richard Davey
3e2041a3c5
Overhauled createFromObjects to make it much more useful. Fix #3817 #4613
2020-10-12 13:31:30 +01:00
Richard Davey
80287f6ee4
Path fixes
2020-10-12 11:51:05 +01:00
Richard Davey
04d80a8b5c
Allow use of old method calls for now
2020-10-12 11:50:13 +01:00
Richard Davey
24777aa327
No need for isoCullDistances
, just use existing cullPadding
properties
2020-10-12 11:42:01 +01:00
Richard Davey
607fec9450
Use a cached Rectangle for speed
2020-10-12 11:40:52 +01:00
Richard Davey
0ba1f08f80
The Static and Dynamic Tilemap Layer objects have been removed and consolidated into the new TilemapLayer class.
2020-10-12 11:40:40 +01:00
Richard Davey
fb11821730
Fixed lots of missing JSDocs
2020-10-12 11:33:33 +01:00
Richard Davey
ae4c45f14a
Fixed renderer so it draws multi tileset isometric tiles properly
2020-10-11 23:05:08 +01:00
Richard Davey
f00bb446f8
Formating fix
2020-10-11 23:04:11 +01:00
Richard Davey
9e68f41118
Formatting
2020-10-11 23:04:00 +01:00
Richard Davey
39f74d2e95
Use a cached vector to save constant allocation and fixed y culling limit
2020-10-11 23:03:52 +01:00
Richard Davey
2e50061699
Opps :)
2020-10-10 11:38:16 +01:00
Richard Davey
7403887099
Preparing for beta 9
2020-10-09 17:56:37 +01:00
Richard Davey
5639862010
Update GenerateGridVerts.js
2020-10-09 17:20:40 +01:00
Richard Davey
2801d3d804
Added setUVs method
2020-10-09 16:22:27 +01:00
Richard Davey
acfb6c469f
Much more powerful grid generation now
2020-10-09 16:22:19 +01:00
Richard Davey
caa69b673d
Better debug rendering
2020-10-09 14:57:07 +01:00
Richard Davey
65e4a7734a
Updated docs
2020-10-09 12:07:37 +01:00
Richard Davey
50a0f0705f
Face is now responsible for determining if it can be rendered, or not. Split the update and load process into two.
2020-10-09 11:55:00 +01:00
Richard Davey
abdd62dd57
Will no longer render Faces it cannot see in the Camera
2020-10-09 11:54:37 +01:00
Richard Davey
88feadb577
Fixed JSDocs, added totalRendered
property.
2020-10-09 11:54:19 +01:00
Richard Davey
f77a5de32c
Geom.Mesh.RotateFace
is a new function that will rotate a Face by a given amount, based on an optional center of rotation.
2020-10-09 11:53:57 +01:00
Richard Davey
bf8cd60aab
Added ability to rotate data on import
2020-10-08 15:53:13 +01:00
Richard Davey
c05cec3ba0
Added JSDocs
2020-10-08 14:40:32 +01:00
Richard Davey
79a1264f8b
Fixed property name
2020-10-08 14:40:25 +01:00
Richard Davey
af0a4dbd37
Updated Mesh to include new functions and docs
2020-10-08 13:24:23 +01:00
Richard Davey
e46ba609a8
Expose new functions
2020-10-08 13:24:09 +01:00
Richard Davey
2f85c8a8ba
Added normals parameters
2020-10-08 13:24:01 +01:00
Richard Davey
e3f7048e22
Removed moved defs
2020-10-08 13:23:44 +01:00
Richard Davey
8838781aa1
Create GenerateGridVerts.js
2020-10-08 13:23:24 +01:00
Richard Davey
d2ea1c45c3
Create GenerateObjVerts.js
2020-10-08 13:23:20 +01:00
Richard Davey
8a73523d6c
Create GenerateVerts.js
2020-10-08 13:23:17 +01:00
Richard Davey
b3f1a7986e
Create GenerateGridConfig.js
2020-10-08 13:23:13 +01:00
Richard Davey
d09764518d
Create GenerateGridVertsResult.js
2020-10-08 13:23:09 +01:00
Richard Davey
20f4e8a66b
Create GenerateVertsResult.js
2020-10-08 13:23:05 +01:00
Richard Davey
1df4661487
Camera.roundPixels now rounds worldView matrix
2020-10-08 11:07:21 +01:00
Richard Davey
114201f497
Fixed tilemaps with missing function
2020-10-08 11:07:05 +01:00
Richard Davey
2e988801ce
Made obj material parsing external
2020-10-08 10:45:03 +01:00
Richard Davey
c0ab4d4ae9
OBJFile can now optionally load a material file along with the model data
2020-10-08 10:44:49 +01:00
Richard Davey
82c87ee814
Create materials
container
2020-10-08 10:44:32 +01:00
Richard Davey
f191283928
Moved ParseObjMaterial to Geom namespace
2020-10-08 10:44:23 +01:00
Richard Davey
727383d4f3
Loader.MultiFile
will now parse the given files array and only add valid entries into the file list, allowing multifiles to now have optional file entries.
2020-10-08 10:44:02 +01:00
Richard Davey
5bb73b5c95
In the Loader.FileTypes.TextFile
config you can now override the type and cache destination for the file.
2020-10-08 10:43:13 +01:00
Richard Davey
324fa6a3b2
Removed MeshCamera, updated Mesh to focus on ortho projections
2020-10-07 22:27:04 +01:00
Richard Davey
9e07e5a27b
Expose RGB
2020-10-07 18:06:39 +01:00
Richard Davey
8f67ffca5f
Starting to add materials
2020-10-07 18:06:33 +01:00
Richard Davey
90824e1485
Removed normalMatrix
2020-10-07 18:06:22 +01:00
Richard Davey
dda4431366
Merged the Layer3D Game Object and pipeline back in for now
2020-10-07 17:44:36 +01:00
Richard Davey
c3fe480905
Finished all docs and added some missing methods and made use of setValues
2020-10-07 17:42:19 +01:00
Richard Davey
75fd64ace7
Modified cam layout
2020-10-07 13:16:24 +01:00
Richard Davey
f6a0a8d96b
Transform based on z value
2020-10-07 13:16:10 +01:00
Richard Davey
55d7b36217
Pass in the z value
2020-10-07 13:16:01 +01:00
Richard Davey
2137e3413d
Added cameraZ parameter
2020-10-07 13:15:53 +01:00
Richard Davey
c6d25c9559
Added z parameter
2020-10-07 13:15:44 +01:00
Richard Davey
8ff78ef08a
Fixed addVerts face addition
2020-10-07 12:45:31 +01:00
Richard Davey
e331638b05
Updated to use transformed values
2020-10-07 12:04:58 +01:00
Richard Davey
caf545d042
Added position, rotation and scale vectors, caching and removed old methods
2020-10-07 12:04:46 +01:00
Richard Davey
a367799da1
Update Vertex.js
2020-10-07 12:04:16 +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
619fd18028
MouseManager.preventDefaultWheel
is a new boolean property, set via the inputMousePreventDefaultWheel
config option that allows you to toggle capture of mouse wheel at runtime.
2020-10-07 10:14:02 +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
7a0b056fef
Trying out MeshCamera
2020-10-06 18:05:14 +01:00
Richard Davey
4b7c344497
Added parseOBJMaterial
method and set default texture to __WHITE
2020-10-06 16:00:22 +01:00
Richard Davey
dff414fe82
Added Grid Config typedefs
2020-10-06 13:47:49 +01:00
Richard Davey
1f1edd3742
addGrid
now takes config object and works with texture frames, with or without repeating
2020-10-06 13:42:44 +01:00
Richard Davey
440c33deb8
Use config object
2020-10-06 11:11:28 +01:00
Richard Davey
bbaa5c3eae
Added OBJFileConfig defs
2020-10-06 10:42:22 +01:00
Richard Davey
7287a760ae
Added ParseOBJ type defs
2020-10-06 10:38:21 +01:00
Richard Davey
816c45937d
Removed the Quad Game Object. Mesh can do it better now.
2020-10-06 10:16:46 +01:00
Richard Davey
f0348126de
Improved docs
2020-10-06 09:59:16 +01:00
Richard Davey
b285b2b5bb
Expose manager functions. Fix #5345
2020-10-06 09:59:16 +01:00
Richard Davey
00b8bb4e0f
Merge pull request #5344 from samme/fix/collisions-update-center
...
Correct Arcade Body center after separations
2020-10-06 09:45:41 +01:00
Richard Davey
a0020b2ad4
Fixed paths and addGrid
2020-10-05 17:40:42 +01:00
Richard Davey
b774df9426
More documentation
2020-10-05 17:25:24 +01:00
Richard Davey
57974c120a
Updated docs
2020-10-05 17:12:18 +01:00
Richard Davey
4d7ff23159
Device.Audio.wav
now uses audio/wav
as the canPlayType
check string, instead of audio/wav; codecs="1"
, which should allow iOS13 to play wav files again.
2020-10-05 17:12:09 +01:00
Richard Davey
eb6d342607
Merged the Mesh Geometry functions back in and completed the JSDocs
2020-10-05 16:52:44 +01:00
Richard Davey
6c5a83b862
Added the OBJFile type
2020-10-05 16:52:23 +01:00
Richard Davey
270c2f425d
Create OBJFile.js
2020-10-05 16:52:15 +01:00
Richard Davey
7aaf77a2c6
Merged the Mesh Game Object back in
2020-10-05 16:52:01 +01:00
Richard Davey
8091f09c10
Don't set OutlineStyle if undefined
2020-10-05 13:53:11 +01:00
Richard Davey
706d02873a
Fixed issue with camera flash/fade not working
2020-10-05 13:44:29 +01:00
Richard Davey
468b1ba255
Added 2nd conditional back
2020-10-05 13:43:54 +01:00
Richard Davey
a16ab01e22
MouseManager.isTop
is a new boolean read-only property that flags if the mouse event listeners were attached to window.top
(true), or just window
(false). By default Phaser will attempt window.top
, but this isn't possible in all environments, such as cross-origin iframes, so it will fall back to window
in those cases and set this property to false
2020-10-05 10:40:35 +01:00
Richard Davey
0fb0c094c6
Removed inner loop
2020-10-05 08:07:06 +01:00
Richard Davey
30d80bb74b
Added keyframe
2020-10-05 08:06:53 +01:00
samme
130160f825
Update center after world bounds collision
2020-10-03 13:46:11 -07:00
Richard Davey
c8a99f00f2
Improved JSDocs
2020-10-03 10:15:19 +01:00
Richard Davey
2b99623cdc
Group
now extends EventEmitter
, allowing you to emit custom events from within a Group.
2020-10-03 10:05:38 +01:00
Richard Davey
d9d4d74c89
Updated docs
2020-10-02 14:03:32 +01:00
Richard Davey
42d6188b7a
Now using the GetCullTilesFunction
#4922
2020-10-02 13:53:20 +01:00
Richard Davey
c0c00b66be
Tilemaps.Components.IsometricCullTiles
is a new function that culls tiles in a isometric map.
2020-10-02 13:48:52 +01:00
Richard Davey
ab753ffe10
Tilemaps.Components.StaggeredCullTiles
is a new function that culls tiles in a staggered map.
2020-10-02 13:48:42 +01:00
Richard Davey
0b8b9fb3ba
Tilemaps.Components.HexagonalCullTiles
is a new function that culls tiles in a hexagonal map.
2020-10-02 13:48:33 +01:00
Richard Davey
c44c43a553
Tilemaps.Components.StaggeredCullBounds
is a new function that calculates the cull bounds for a staggered map.
2020-10-02 13:48:22 +01:00
Richard Davey
e42b407721
Tilemaps.Components.HexagonalCullBounds
is a new function that calculates the cull bounds for a hexagonal map.
2020-10-02 13:48:13 +01:00
Richard Davey
2450a16911
Tilemaps.Components.GetCullTilesFunction
is a new function that returns the correct culling function to use.
2020-10-02 13:48:01 +01:00
Richard Davey
c66df4b94b
Deleted unused files
2020-10-02 13:47:49 +01:00
Richard Davey
9c92fccd3a
Updated to use new components
2020-10-02 13:47:36 +01:00
Richard Davey
f58ec09489
Tilemaps.Components.CullBounds
is a new function that calculates the cull bounds for an orthogonal map.
2020-10-02 13:47:27 +01:00
Richard Davey
b11e5fe1fb
Tilemaps.Components.RunCull
is a new function that runs the culling process from the combined bounds and tilemap.
2020-10-02 13:47:10 +01:00
Richard Davey
7980beaeab
Fixed references and docs #4922
2020-10-02 12:09:58 +01:00
Richard Davey
da651dc650
Fixed require filename
2020-10-02 12:06:07 +01:00
Richard Davey
1839e58581
Tidied up formatting #4922
2020-10-02 12:05:52 +01:00
Richard Davey
8ea29b6cf2
Removed console warnings
2020-10-02 12:02:48 +01:00
Richard Davey
89cec01b39
Updated types
2020-10-02 12:02:40 +01:00
Richard Davey
04ecc38a61
Fixed JSDocs and const path #4922
2020-10-02 11:57:37 +01:00
Richard Davey
b09197d8cb
Added proper JSDocs and fixed private accessors #4922
2020-10-02 11:53:23 +01:00
Richard Davey
d5561ad97a
Use cached vec2s to avoid constant vector creation
2020-10-02 11:41:11 +01:00
Richard Davey
aafd5c6cee
Use cached vec2s to avoid constant vector creation
2020-10-02 11:36:44 +01:00
Richard Davey
f03ddf033b
Formatting fix #4992
2020-10-02 11:27:50 +01:00