Richard Davey
5147fb281a
Added new Blend Modes.
2018-11-13 15:10:25 +00:00
Richard Davey
76918e76b0
ERASE tests
2018-11-13 10:32:24 +00:00
Richard Davey
a1273e42b8
Added ERASE blend mode
2018-11-13 10:31:56 +00:00
Richard Davey
06688eedd8
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-11-10 04:22:51 +00:00
Richard Davey
ceb9910780
Added erase
method for clearing parts of a Render Texture.
2018-11-10 04:22:47 +00:00
samme
83e2de2baf
Docs for Group
...
Add GroupClassTypeConstructor type
2018-11-07 09:40:31 -08:00
Richard Davey
43e76a7c45
Merge pull request #4129 from samme/docs/events
...
Docs for input and physics events
2018-11-07 16:18:17 +00:00
Richard Davey
885e45391c
Merge pull request #4136 from Waclaw-I/dead-particles-pool-fix
...
Array of dead particles is now being filled up with dead particles.
2018-11-07 16:15:02 +00:00
Richard Davey
929aca014a
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-11-07 16:13:10 +00:00
Richard Davey
01bcb6b91f
Merge pull request #4144 from stuartkeith/patch-1
...
fixed - cameraFilter bitmask doesn't work for values < 0
2018-11-07 16:12:37 +00:00
Richard Davey
979fc7341f
The cameraFilter
property of a Game Object will now allow full bitmasks to be set (a value of -1), instead of just those > 0
2018-11-07 16:12:28 +00:00
Richard Davey
8ea2bffb9c
Render Textures created larger than the size of the default canvas would be automatically clipped when drawn to in WebGL. They now reset the gl scissor and drawing height property in order to draw to their full size, regardless of the canvas size. Fix #4139
2018-11-07 16:01:21 +00:00
Richard Davey
601c7696c3
Game Objects have a new property called state
.
2018-11-07 15:11:59 +00:00
Stuart Keith
3b422260ea
Update DOMElementCSSRenderer.js
2018-11-04 11:22:02 +00:00
Richard Davey
e34d759928
Removed sortGameObjects
and getTopGameObject
methods
2018-11-01 12:12:06 +00:00
Richard Davey
d912189b91
Added the Extern Game Object
2018-10-29 23:07:30 +00:00
Piotr 'Waclaw I' Hanusiak
893310d5bb
array of dead particles is now being filled up with dead particles.
2018-10-29 22:19:57 +01:00
Richard Davey
d740ca2302
Use QR decomposition or it all goes wrong!
2018-10-26 19:38:30 +01:00
Richard Davey
7441ff90ae
The Dynamic Bitmap Text Canvas Renderer was creating a new data object every frame for the callback. It now uses the callbackData
object instead, like the WebGL renderer does.
2018-10-25 14:11:23 +01:00
Richard Davey
4c73be9dbd
The data object being sent to the Dynamic Bitmap Text callback now has a new property parent
, which is a reference to the Bitmap Text instance that owns the data object (thanks ornyth)
2018-10-25 14:10:12 +01:00
samme
7ff8d51f98
Docs for input and physics events
2018-10-24 12:14:44 -07:00
Richard Davey
d13984f460
Added jsdocs
2018-10-19 18:32:10 +01:00
Richard Davey
0b3d54a198
Added jsdocs
2018-10-19 18:29:36 +01:00
Richard Davey
104eeabbf6
Removed verticalAdjust property as it never worked and isn't needed now
2018-10-19 18:29:28 +01:00
Richard Davey
c14fb4b764
Updated formatting.
2018-10-19 13:35:30 +01:00
Richard Davey
38743135eb
Merge pull request #4101 from DotTheGreat/TextStyle_setStyle-fix
...
Text style setStyle/setFont fix
2018-10-19 13:31:15 +01:00
Richard Davey
8bbe96d610
Merge pull request #4111 from darkwebdev/patch-1
...
Fix Phaser.GameObjects.Shape#setStrokeStyle JSDoc
2018-10-19 13:17:43 +01:00
Richard Davey
c9a4a240f8
The Rectangle Shape object wouldn't render if it didn't have a stroke, or any other objects on the display list
2018-10-19 13:08:05 +01:00
Richard Davey
4c4421c47f
Docjam merge
2018-10-19 12:32:43 +01:00
Richard Davey
d41a01ac39
Updated docs
2018-10-18 13:27:56 +01:00
Timur Manyanov
9020e64d7b
Fix Phaser.GameObjects.Shape#setStrokeStyle JSDoc
...
This should fix TypeScript definitions, that at the moment lead to unexpected behavior (cause color is passed instead of a line width).
At the moment definition looks like this:
```setStrokeStyle(color?: number, alpha?: number): this;```
2018-10-14 00:44:01 +02:00
Richard Davey
a0d3137f76
Shapes and Graphics now set textures correctly (after batch texture changes)
2018-10-12 15:09:21 +01:00
Richard Davey
9dc53d1e5a
The WebGLRenderer method canvasToTexture
has a new optional argument noRepeat
which will stop it from using gl.REPEAT
entirely. This is now used by the Text object to avoid it potentially switching between a REPEAT and CLAMP texture, causing texture black-outs
2018-10-12 15:08:53 +01:00
Richard Davey
4b1c762296
Updated @memberOf to @memberof
2018-10-10 10:49:13 +01:00
Richard Davey
a9063604dc
Replace @readOnly with @readonly
2018-10-09 13:40:00 +01:00
Taran van Groenigen
c841adcba4
Removed whitespaces from empty lines
2018-10-09 11:50:21 +02:00
Taran van Groenigen
af664dc699
Removed two tabs
2018-10-09 11:32:52 +02:00
Taran van Groenigen
4e2bd36ca5
A string now uses the same default values as an object passed into setFont
2018-10-09 11:28:02 +02:00
Taran van Groenigen
9a2a0ad45f
TextStyle.setStyle & TextStyle.setFont now set fontSize, fontStyle & fontFamily when font is a string
...
TextStyle.setFont now sets fontFamily, fontSize, and fontStyle when "font" is a string.
TextStyle.setStyle calls TextStyle.setFont when "font" is overridden.
This fixes an issue where TextStyle.update(true) overrides TextStyle._font
2018-10-09 11:13:23 +02:00
Richard Davey
4d13702c33
The Particle Emitter Manager has been given a NOOP method called setBlendMode
to stop warnings from being thrown if you added an emitter to a Container in the Canvas renderer. Fix #4083
2018-10-05 16:31:43 +01:00
Richard Davey
0f929bf0cc
TileSprites that were set to be interactive before they had rendered once wouldn't receive a valid input hit area, causing input to fail. They now define their size immediately, allowing them to be made interactive without having rendered. Fix #4085
2018-10-05 16:27:42 +01:00
Richard Davey
66445c9fb1
If you set pixelArt
to true in your game config (or antialias
to false) then TileSprites will now respect this when using the Canvas Renderer and disable smoothing on the internal fill canvas.
2018-10-02 13:30:45 +01:00
Richard Davey
e48d6bfb01
If you pass zero as the width or height when creating a TileSprite it will now use the dimensions of the texture frame as the size of the TileSprite. Fix #4073
2018-10-02 13:13:51 +01:00
Richard Davey
143957d24a
You can now set the maxLights
value in the Game Config, which controls the total number of lights the Light2D shader can render in a single pass. The default is 10. Be careful about pushing this too far. More lights = less performance. Close #4081
2018-10-02 11:09:58 +01:00
Richard Davey
8b5d0a3af1
Text.setFont
, Text.setFontFamily
, Text.setFontStyle
and Text.setStroke
will no longer re-measure the parent Text object if their values have not changed.
2018-09-29 11:21:31 +01:00
TadejZupancic
da5ed417b5
Update RenderTexture.js
2018-09-28 14:51:54 +02:00
TadejZupancic
d77f39aaa1
Update RenderTexture.js
2018-09-28 14:36:59 +02:00
TadejZupancic
9ceb1847b1
Update RenderTextureFactory.js
2018-09-28 14:32:35 +02:00
TadejZupancic
52bae7e235
Update RenderTextureCreator.js
2018-09-28 14:31:50 +02:00
Richard Davey
37076516e2
Merge branch 'master' into docs/arcade-physics-2
2018-09-28 11:07:44 +01:00
Richard Davey
3944e580cc
Fixed an error in the batchSprite
methods in the Canvas and WebGL Renderers that would incorrectly set the frame dimensions on Sprites with the crop component. This was particularly noticeable on Sprites with trimmed animation frames
2018-09-27 16:49:52 +01:00
Richard Davey
5ad4c8dc2b
All of the Animation Events now pass the Game Object as the final argument, this includes animationstart
, animationrestart
, animationrepeat
, animationupdate
and animationcomplete
.
2018-09-27 15:55:16 +01:00
Richard Davey
d8fcde46c3
When using CanvasTexture.refresh
or Graphics.generateTexture
it would throw WebGL warnings like 'bindTexture: Attempt to bind a deleted texture'. This was due to the Frames losing sync with the glTexture reference used by their TextureSource. Fix #4050
2018-09-27 14:16:22 +01:00
Richard Davey
b45df05ddb
Updated to get the frame names
2018-09-27 14:15:58 +01:00
samme
adb2181a8a
Add docs for groups and Arcade.Factory
2018-09-26 12:25:09 -07:00
Richard Davey
684838aabe
Polygon.setTo
can now take a string of space separated numbers when creating the polygon data, i.e.: '40 0 40 20 100 20 100 80 40 80 40 100 0 50'
. This update also impacts the Polygon Shape object, which can now also take this format as well.
2018-09-26 11:01:48 +01:00
Richard Davey
ef3f6c0348
The Shape.Line
object was missing a lineWidth
property unless you called the setLineWidth
method, causing the line to not render in Canvas only. Fix #4068
2018-09-26 09:33:09 +01:00
Richard Davey
91f15a9046
Merge pull request #4060 from felipeprov/master
...
Fixed possible typo on UpdateList#shutdown
2018-09-25 15:56:43 +01:00
Richard Davey
2812bff0ee
Sprites now have preDestroy
method, which is called automatically by destroy
. The method destroys the Animation component, unregistering the remove
event in the process and freeing-up resources. Fix #4051
2018-09-25 15:11:15 +01:00
Richard Davey
e94d92518d
GameObjects added to and removed from Containers no longer listen for the shutdown
event at all
2018-09-25 15:00:23 +01:00
Felipe Provenzano
731a495c24
Fixed possible typo on UpdateList#shutdown
2018-09-23 22:03:18 +02:00
Richard Davey
7f835da1e1
Fixed Rectangle hit area coordinates
2018-09-20 11:49:24 +01:00
Richard Davey
deb14bdb60
Correct ellipse sizing
2018-09-18 17:21:55 +01:00
Richard Davey
9b812f8394
Calling setFrame
on a TileSprite wouldn't change the frame, it would just change the frame size. Fix #4039
2018-09-18 11:18:00 +01:00
Richard Davey
754fc4f622
RenderTexture.resize
wouldn't correctly resize the texture under WebGL. Fix #4034
2018-09-17 11:48:34 +01:00
Richard Davey
9aaa640601
Finished Shape documentation
2018-09-15 11:18:09 +01:00
Richard Davey
fcaa2bfc4f
Completing Game Object jsdocs
2018-09-15 10:31:10 +01:00
Richard Davey
7722207dbd
Remove texture deletion.
2018-09-13 13:23:24 +01:00
Richard Davey
f285cf4854
Trim the font style
2018-09-13 13:23:11 +01:00
Richard Davey
2f98bd5092
DisplayList now destroys children directly.
2018-09-13 09:29:48 +01:00
Richard Davey
e19c307252
The UpdateList will now clear out its internal _list
, _pendingRemoval
and _pendingInsertion
lists on shutdown. Before, it would only clear _list
.
2018-09-13 09:29:33 +01:00
Richard Davey
0a166f944f
Game Objects no longer listen to Scene shutdown
. Fix #4028
2018-09-13 09:28:33 +01:00
Richard Davey
1ac48afd5f
Added Grid Shape type with WebGL renderer
2018-09-13 01:02:59 +01:00
Richard Davey
00518eca39
Fixed geom references
2018-09-12 16:58:32 +01:00
Richard Davey
1aa7287062
eslint fix
2018-09-12 16:32:50 +01:00
Richard Davey
0a152949cb
Added setLineSpacing
method and docs.
2018-09-12 16:29:38 +01:00
Richard Davey
6d7ca32e6d
Game Objects would not remove themselves from the Scene's shutdown
event handler when destroyed, leading to a build-up over time
2018-09-12 15:06:13 +01:00
Richard Davey
14881bbe24
Renamed data
to geom
to avoid DataManager clash. Added preDestroy
.
2018-09-12 12:37:18 +01:00
Richard Davey
490ca9c4b6
Added setSize method
2018-09-12 01:03:36 +01:00
Richard Davey
640d90cb09
Added jsdocs
2018-09-11 15:34:03 +01:00
Richard Davey
a68469dc5b
Added jsdocs
2018-09-11 15:21:22 +01:00
Richard Davey
2c4b38a794
Missing path join
2018-09-11 13:51:03 +01:00
Richard Davey
41d09fe646
Typo
2018-09-11 13:50:55 +01:00
Richard Davey
855e6babeb
Lines use strokeColor only
2018-09-11 13:50:43 +01:00
Richard Davey
2816f29bd1
Fixed pathData
2018-09-11 13:50:18 +01:00
Richard Davey
83fa5261e6
Added missing Shape canvas render functions
2018-09-11 13:50:01 +01:00
Richard Davey
30d51e5179
Moved closePath to Shape
2018-09-10 23:30:36 +01:00
Richard Davey
4b1c0eb697
Added Canvas rendering functions
2018-09-10 23:30:19 +01:00
Richard Davey
dfa40b866f
Moved the common fill and stroke functions out
...
Also started finishing jsdocs
2018-09-10 22:47:39 +01:00
Richard Davey
ecbee17c53
Fixed property name
2018-09-07 17:19:40 +01:00
Richard Davey
1f4c0b5809
Added Curve Shape object
2018-09-07 17:19:33 +01:00
Richard Davey
8bc4d06831
Added IsoTriangle and project setting
2018-09-07 14:23:25 +01:00
Richard Davey
266f993f62
Added Line Shape
2018-09-07 12:43:49 +01:00
Richard Davey
c5fa4efa57
Added face toggle support
2018-09-07 12:10:19 +01:00
Richard Davey
0d183143a7
Removed tint component
2018-09-07 12:10:08 +01:00
Richard Davey
b04d82d17f
Added getters and setters for properties
2018-09-07 12:09:57 +01:00
Richard Davey
687ec04802
Added Star shape
2018-09-06 22:40:56 +01:00
Richard Davey
04b5e917e0
Bail if not filled
2018-09-06 17:18:05 +01:00
Richard Davey
270864d974
Added setFillStyle override
2018-09-06 17:16:56 +01:00
Richard Davey
d25ad0cf68
Added IsoBox shape
2018-09-06 16:52:00 +01:00
Richard Davey
fb5bf5d9c1
Added stroke rendering to all shapes
2018-09-06 15:49:42 +01:00
Richard Davey
a508cd2195
Added support for stroke rendering path data
2018-09-06 15:09:15 +01:00
Richard Davey
2f5f5542fd
Added more global properties
2018-09-06 15:08:51 +01:00
Richard Davey
0918bc15c2
Support for stroke rendering added
2018-09-06 15:08:41 +01:00
Richard Davey
aac783064f
Added per Shape factories
2018-09-06 15:08:15 +01:00
Richard Davey
19a50eaa98
Moving Shapes to their own folders to keep things tidy
2018-09-06 11:26:50 +01:00
Richard Davey
d3181b41c5
Added smooth method
2018-09-06 00:17:07 +01:00
Richard Davey
7d4906bf73
Added smoothing function
2018-09-05 17:44:12 +01:00
Richard Davey
9820eb4e2d
Added Ellipse
2018-09-05 17:27:48 +01:00
Richard Davey
356e6f0753
Added Polygon support
2018-09-05 17:11:46 +01:00
Richard Davey
40a53f75b7
Added Arc rendering and fixed version numbers
2018-09-05 16:50:33 +01:00
Richard Davey
9f9043d881
Added the new Shape base class and the Arc, Rectangle and Triangle primitives
2018-09-05 16:20:25 +01:00
Richard Davey
dedc939fdd
initPipeline
now defaults to the Texture Tint Pipeline if nothing else is specified.
2018-09-05 11:19:02 +01:00
Richard Davey
dff9bdef9f
The Graphics Canvas Renderer will now automatically call beginPath
on the target context before processing the command stack. This has the effect of clearing off any sub-paths that may have persisted on the stack from previous Graphics objects or frames.
2018-09-04 23:33:38 +01:00
Richard Davey
424a1e328e
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-09-04 22:43:28 +01:00
Richard Davey
5b98386677
Calling Text.setStyle
would make the Text vanish if you didn't provide a resolution
property in the style configuration object. Calling setStyle
now only changes the properties given in the object, leaving any previously changed properties as-is. Fix #4011
2018-09-04 22:43:25 +01:00
Alexey Molchan
2aba731f4a
fixed incorrect properties assignment in setTileScale method
2018-09-04 22:19:42 +03:00
Richard Davey
78ffd41704
More specific includes
2018-09-03 13:12:37 +01:00
Richard Davey
0a4fc5b026
Calling setTimeScale
on the Sprite's Animation component will now set the time scale value and keep it set until you change it again. Previously it would be reset to 1 when a new animation was loaded into the component, but this no longer happens - once the time scale is set it remains in effect, regardless of which animations are played on the Sprite.
2018-08-31 18:45:50 +01:00
Richard Davey
e4a7977bb9
The Transform Matrix has a new method applyInverse
which will take an x/y position and inverse translate it through the current matrix.
2018-08-29 16:11:59 +01:00
Richard Davey
91f7e27ae8
Transform.getWorldTransformMatrix
has been recoded to iterate the transform parents correctly, applying the matrix multiplications as it goes. This (along with some changes in the Input Manager) fix the issue with Game Objects inside of Containers failing hit tests between certain angles. Fix #3920
2018-08-29 16:10:48 +01:00
hypertrifle
37da44f9c9
Updated @param notation that cause issues generating docs
...
there was a double pipe - now there isn't
2018-08-26 12:54:18 +01:00
Sean Bohan
f406b68739
Fix graphics moveFxTo and lineFxTo not work
2018-08-25 08:19:23 +08:00
Richard Davey
a585df3abf
DOM Elements moved behind experimental flag for now
2018-08-23 18:11:10 +01:00
Richard Davey
beb286297c
Camera3D Plugin moved out of the main src folder to optional plugin
2018-08-23 13:18:25 +01:00
Richard Davey
f24204ee03
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-08-23 12:31:59 +01:00
Richard Davey
5443f9cf5a
Fixed the way the arc overshoot works.
2018-08-23 12:31:55 +01:00
samme
408b2df350
Correct LightsManager#addLight docs
...
All arguments are optional
2018-08-22 13:07:41 -07:00
TadejZupancic
1fa16f00df
RenderTexture: Texture is always destroyed (canvas)
...
Forgot to check the flag for canvas renderer.
2018-08-22 15:57:57 +02:00
Richard Davey
0dccc3a510
Updated jsdocs. Fix #3849
2018-08-21 23:48:03 +01:00
Richard Davey
198f353c9a
The default Container Blend Mode is now SKIP_TEST
. This allows you to either set a blend mode for a Container, in which case all children use that blend mode. Or, you can set a blend mode on the children and the children will render using their own blend modes, as the Container doesn't have one set. The WebGL and Canvas Renderer functions have also been updated to support this change. Fix #3684
2018-08-21 22:07:35 +01:00
Richard Davey
01290afda9
A Game Object couldn't have a blend mode of SKIP_TEST
set by using the getter or the setBlendMode
method.
2018-08-21 21:54:38 +01:00
TadejZupancic
bff7f99fe1
Update RenderTexture.js
2018-08-21 15:40:10 +02:00
TadejZupancic
50a3555cad
RenderTexture: Texture is always destroyed
...
Texture is now destroyed only if it was not saved to the TextureManager, so it can be reused.
2018-08-21 15:32:10 +02:00
Richard Davey
8d1caff0a4
Updated argument name
2018-08-21 02:29:54 +01:00
Richard Davey
0eef6f1bb9
Updated scroll factor docs to clarify impact on physics bodies #3810
2018-08-20 19:19:53 +01:00
Richard Davey
e71d72ec66
Merge pull request #3927 from TadejZupancic/patch-11
...
Wrong bounds/displayOrigin on BitmapText text change
2018-08-20 18:21:15 +01:00
Richard Davey
27c3cc30ac
Previously, changing a Text object by setting its text
property directly wouldn't change the text being rendered as using setText
was the expected way to change what was being displayed. Internally the text
property has been renamed to _text
and flagged as private, and a new getter / setter for text
has been added, which hands over to the setText
method, meaning you can now use both ways of setting the text. Fix #3919
2018-08-20 17:41:05 +01:00
Richard Davey
54dbdce1c7
Now calls the correct frame resize method. Fix #3913
2018-08-20 17:06:06 +01:00
TadejZupancic
7992924aae
Wrong bounds/displayTextOrigin on BitmapText text change
...
updateDisplayOrigin needs current width and height, which are not recalculated if the _dirty is not set to true.
2018-08-14 12:15:59 +02:00
Richard Davey
fe2ddcf934
Updated jsdocs
2018-08-08 17:03:08 +01:00
Richard Davey
84ef115c67
Remove un-used code
2018-08-08 15:01:41 +01:00
Richard Davey
25268d2a40
Recalc size on content change.
2018-08-08 15:01:29 +01:00
Richard Davey
353b7b5edd
RenderTexture destroy working. Fix #3901
2018-08-08 13:56:43 +01:00
Richard Davey
f9e498353d
Fixed lack of TempMatrix for Graphics generateTexture
2018-08-06 16:19:30 +01:00
Richard Davey
26cc84522d
The CanvasRenderer.BlitImage
function has been removed, as has the associated blitImage
property from the Canvas Renderer as they're no longer used.
2018-08-06 15:29:27 +01:00
Richard Davey
50821c29ac
Updated jsdocs
2018-08-06 13:45:56 +01:00
Richard Davey
7eda747230
Merge pull request #3891 from FelixNemis/retrofont-line-spacing
...
Add lineSpacing option to RetroFont Config
2018-08-06 11:46:05 +01:00
Richard Davey
41c9f8b1e1
Docs update
2018-08-06 00:41:34 +01:00
Charles Burnham
6a1c677677
Add lineSpacing option to RetroFont Config
2018-08-04 12:52:27 -05:00