samme
731b006ec3
Add active
to Group create methods
...
- Adds `active=true` argument to Group#create
- Adds `active=true` config value to Group#createMultiple etc.
2018-03-14 12:22:08 -07:00
Richard Davey
1d23aad976
TextStyle has two new properties: baselineX
and baselineY
which allow you to customize the 'magic' value used in calculating the text metrics.
2018-03-13 13:21:51 +00:00
Richard Davey
247e8b9337
Text.setFixedSize was incorrectly setting the text
property instead of the parent
property. Fix #3375
2018-03-12 16:34:21 +00:00
Richard Davey
1ebf639de3
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-03-12 16:30:16 +00:00
Felipe Alfonso
be81ddfd51
Fixed issue on RenderTexture canvas clear. The clearRect was affected by previous transformations
2018-03-12 13:30:05 -03:00
Richard Davey
267e8b4b84
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-03-12 16:27:49 +00:00
Felipe Alfonso
9585a1c78b
Fixed issue of render texture only rendering the first frame. It should've read the cut properties
2018-03-12 13:27:32 -03:00
Felipe Alfonso
e0a4577938
Fixed issue of TileSprite rendering pattern based on the power of 2 dimension on canvas.
2018-03-12 13:18:38 -03:00
Richard Davey
70d9c7d728
Always return the parent Text object, no matter the flow
2018-03-12 16:13:42 +00:00
Richard Davey
e2ad743b92
_this fix
2018-03-12 14:52:35 +00:00
Richard Davey
0368473b95
The SetFrame method now has two optional arguments: updateSize
and updateOrigin
(both true by default) which will update the size and origin of the Game Object respectively. Fix #3339
2018-03-12 14:45:18 +00:00
Richard Davey
edf1aa7cc1
The onContextRestored
callback won't be defined any more unless the WebGL Renderer is in use in the following objects: BitmapMask, Static Tilemap, TileSprite and Text. This should allow those objects to now work in HEADLESS mode. Fix #3368
2018-03-12 13:37:13 +00:00
Richard Davey
935a89342d
Calling setText
on a BitmapText object will now recalculate its display origin values. Fix #3350
2018-03-09 17:08:12 +00:00
Richard Davey
87f2d0f831
Merge pull request #3335 from iamchristopher/fix-group-clear-from-scene
...
Fixed Group doesn't remove children from Scene when cleared
2018-03-09 15:54:44 +00:00
Richard Davey
3ed077a6d7
Merge pull request #3358 from delftswa2018/3231-CANVAS-tilesprite-rotation-flip-scaling
...
Added rotation, scaling and flipping to TileSpriteCanvasRenderer
2018-03-09 15:51:35 +00:00
Richard Davey
2ee4f581f5
Merge pull request #3355 from rexrainbow/master
...
Add reference of GameObject class
2018-03-09 15:45:46 +00:00
Tom Catshoek
74b18921e8
Added rotation, scaling and flipping to TileSpriteCanvasRenderer
2018-03-09 15:16:34 +01:00
Hua
4719589382
Add reference of BuildGameObject, BuildGameObjectAnimation
2018-03-09 15:13:42 +08:00
Hua
cf8d4703b3
Add reference of GameObject class
2018-03-09 12:31:37 +08:00
Felipe Alfonso
9a21b4c7f4
Fixed issue with render texture tint
2018-03-06 15:56:33 -03:00
iamchristopher
1d402a732e
Fixed Group doesn't remove children from Scene when cleared
2018-03-05 19:04:01 -05:00
Richard Davey
a712dea197
eslint fix
2018-03-05 22:25:55 +00:00
Richard Davey
9ad7aeef1d
Merge pull request #3304 from rexrainbow/master
...
Add destroy event of gameobject
2018-03-05 21:56:07 +00:00
Richard Davey
c2f25b3742
Merge pull request #3240 from Twilrom/arc-fix
...
Update WebGL Graphics.arc to work more like on Canvas
2018-03-05 21:54:46 +00:00
Richard Davey
bfabe35cdf
eslint fixes
2018-03-05 21:49:08 +00:00
Felipe Alfonso
ddc85cfdc7
Added support for tint and alpha to RenderTexture
2018-03-05 16:57:41 -03:00
Lukas Jakob Hafner
97bfe2e752
Quick fix for missing lineSpacing
...
Reads lineSpacing if passed as attribute to `style` within text config.
2018-03-05 16:35:42 +02:00
Richard Davey
8d85a9bc72
Added jsdocs
2018-03-05 14:19:53 +00:00
Richard Davey
4c59d9a35d
Added jsdocs
2018-03-05 02:24:47 +00:00
Richard Davey
4d16b0c00a
eslint fixes
2018-03-05 01:45:28 +00:00
Richard Davey
ef3df149c6
Fixed RenderTexture flipY
2018-03-05 01:42:37 +00:00
Richard Davey
ae1c91cf6a
eslint fixes
2018-03-05 01:40:11 +00:00
Richard Davey
7341d7a6cf
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-03-02 17:49:01 +00:00
Richard Davey
4de9690f98
The setFrame
method of the Texture component has been updated so that it will now automatically reset the width
and height
of a Game Object to match that of the new Frame. Related, it will also adjust the display origin values, because they are size based. If the Frame has a custom pivot it will set the origin to match the custom pivot instead.
2018-03-02 16:23:43 +00:00
Felipe Alfonso
865f0a604e
Small fix on the MatrixStack rotation function
2018-03-02 11:29:04 -03:00
Hua
baeca90ae8
Add destroy event
...
Add destroy event of gameobject, also add a checking to prevent re-enter this destroy function.
2018-03-02 10:50:20 +08:00
Richard Davey
acc4922027
Fixes to the InputPlugin re: drop zones and addition of setInteractive argument.
2018-03-01 02:46:17 +00:00
Richard Davey
9a561ff385
Added roundPixels support to BitmapText canvas
2018-02-28 23:07:30 +00:00
Richard Davey
fdc1f3cab3
Added canvas roundPixels support for Text, Particles and TileSprites
2018-02-28 22:40:08 +00:00
Richard Davey
252a76f416
The Headless render mode has been implemented. You can now set HEADLESS as the renderType
in the Game Config and it will run a special game step that skips rendering. It will still create a Canvas element, as lots of internal systems (like input) rely on it, but it will not draw anything to it. Fix #3256
2018-02-28 21:57:32 +00:00
Felipe Alfonso
14399d6910
TileSprite can now set frame of the pattern texture
2018-02-28 17:04:57 -03:00
Richard Davey
8ae3493296
setText updates
...
BitmapText.setText will check if the value given is falsey but not a zero and set to an empty string if so.
BitmapText.setText will now cast the given value to a string before setting.
BitmapText.setText will not change the text via `setText` unless the new text is different to the old one.
2018-02-27 15:14:03 +00:00
Richard Davey
b447665533
Text.setText will check if the value given is falsey but not a zero and set to an empty string if so.
2018-02-27 15:13:39 +00:00
Richard Davey
34e5a282d2
AnimationComponent.play now calls setSizeToFrame()
and updateDisplayOrigin()
on the parent Game Object in order to catch situations where you've started playing an animation on a Game Object that uses a different size to the previously set frame.
2018-02-27 01:09:09 +00:00
Felipe Alfonso
7c96e93c47
Canvas RenderTexture rendering added
2018-02-23 21:05:15 -03:00
Felipe Alfonso
9dbb4db4c6
Added inverted alpha to bitmap mask
2018-02-23 14:09:27 -03:00
Felipe Alfonso
ef8e92dc01
RenderTexture base webgl implementation
2018-02-23 00:44:22 -03:00
Richard Davey
fe5bd7e6bb
Fixed jsdoc errors
2018-02-21 22:51:05 +00:00
Felipe Alfonso
4b9b4c91a3
Dynamic BitmapText's origin is used on rendering the text
2018-02-19 18:20:30 -03:00
Felipe Alfonso
41bcaba43a
Dynamic BitmapText now uses origin component to render the text.
2018-02-19 18:16:57 -03:00