Richard Davey
|
f1fdc5dcf5
|
Changing TileSprite.width or TileSprite.height will now flag the texture as dirty and call updateDisplayOrigin , allowing you to resize TileSprites dynamically in both Canvas and WebGL.
|
2018-11-20 15:32:15 +00:00 |
|
Richard Davey
|
4b1c762296
|
Updated @memberOf to @memberof
|
2018-10-10 10:49:13 +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
|
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
|
dedc939fdd
|
initPipeline now defaults to the Texture Tint Pipeline if nothing else is specified.
|
2018-09-05 11:19:02 +01:00 |
|
Alexey Molchan
|
2aba731f4a
|
fixed incorrect properties assignment in setTileScale method
|
2018-09-04 22:19:42 +03:00 |
|
Richard Davey
|
54dbdce1c7
|
Now calls the correct frame resize method. Fix #3913
|
2018-08-20 17:06:06 +01:00 |
|
Richard Davey
|
2ab24c49c4
|
Tile Sprites updated to use new internal canvas and support crop
|
2018-08-03 19:14:06 +01:00 |
|
Richard Davey
|
ca68904953
|
The Canvas Renderer has a new batchSprite method that consolidates the process of drawing a texture-based Game Object to the canvas. It processes the alpha, blend mode and matrix calculations in a single function and now is used by nearly all Game Object canvas renderers.
|
2018-08-03 18:53:50 +01:00 |
|
Richard Davey
|
9f44896a3f
|
The Blend Mode is now set directly in all Canvas Renderers without comparing it to what's stored in the Canvas Renderer. This fixes problems where the blend mode would be lost between two different Game Objects because they restored the context, but didn't update the renderer flag. Game Objects in Canvas can now mix and match blend modes across the display list.
|
2018-08-03 01:29:18 +01:00 |
|
Richard Davey
|
ec5bd1912e
|
GameObject.willRender now takes a Camera as its only argument and uses it within the check. This has allowed me to remove 23 duplicate checks spread across the various Game Objects, all of which did the same thing, saving both KB and CPU time as the flags were being checked twice in most cases.
|
2018-07-19 13:19:02 +01:00 |
|
Richard Davey
|
13776e5116
|
Fixed argument order.
|
2018-07-11 16:54:48 +01:00 |
|
Richard Davey
|
ea53e832c2
|
Added tintEffect property
|
2018-07-02 13:33:15 +01:00 |
|
Richard Davey
|
217779604c
|
Added tileScaleX and tileScaleY support for Tile Sprites
|
2018-06-28 12:59:27 +01:00 |
|
Richard Davey
|
7a23378015
|
Unified use of roundPixels, antialias and pixelArt modes
|
2018-06-27 15:15:00 +01:00 |
|
Richard Davey
|
d02d6532fd
|
TileSprite was using the Size compontent instead of ComputedSize, meaning its getBounds and displayWidth and displayHeight results were incorrect. Fix #3789
|
2018-06-27 11:20:21 +01:00 |
|
Richard Davey
|
90ba2608fa
|
Added in Camera alpha support to all canvas renderers
|
2018-06-25 16:24:08 +01:00 |
|
Richard Davey
|
5a0fe89a7e
|
Swap _id to id
|
2018-06-23 12:26:39 +01:00 |
|
Chris Andrew
|
d6a13eb8db
|
Finished up TileSprite property descriptions, started on its class description.
|
2018-06-20 08:33:55 +01:00 |
|
Chris Andrew
|
c08dde33b1
|
Documented some remaining TileSprite descriptions.
|
2018-06-08 17:07:35 +01:00 |
|
Richard Davey
|
126ec196c1
|
TileSprite.destroy has been renamed to preDestroy to take advantage of the preDestroy callback system.
|
2018-05-22 15:54:53 +01:00 |
|
Richard Davey
|
0d0846a415
|
Calling a creator, such as GraphicsCreator, without passing in a config object, would cause an error to be thrown. All Game Object creators now catch against this.
|
2018-05-16 15:17:08 +01:00 |
|
Richard Davey
|
28251fd0f5
|
addToScene added to all Game Object Creators
|
2018-05-02 10:57:26 +01:00 |
|
Richard Davey
|
e3c28d3cd9
|
Removed un-needed arguments
|
2018-04-23 17:28:37 +01:00 |
|
Richard Davey
|
606ba6d8d7
|
Added new Mask component and added to all relevant Game Objects
|
2018-04-20 18:57:49 +01:00 |
|
Richard Davey
|
6299019838
|
Updated to use typeof DefinePlugin check.
|
2018-04-20 00:23:24 +01:00 |
|
José Maria
|
607ce3a9bb
|
Delete Texture only applicable on render.gl
There is no deleteTexture on this.renderer when running on canvas.
Destroying tilesprite (scene shutting down) would throw error.
|
2018-04-16 21:50:04 -03:00 |
|
Felipe Alfonso
|
d3beb043e2
|
Added parent to game objects that called CanvasPool.create2D
|
2018-04-13 12:48:34 -03:00 |
|
Felipe Alfonso
|
c232642a52
|
Parent matrix is applied to canvas context on each draw function
|
2018-04-04 14:05:59 -03:00 |
|
Felipe Alfonso
|
96b8db4685
|
Added parentMatrix to all canvas rendering functions
|
2018-04-04 13:14:55 -03:00 |
|
Felipe Alfonso
|
e0f678d1ff
|
Merge branch 'master' into containers
|
2018-03-28 20:49:00 -03:00 |
|
Richard Davey
|
747f09af86
|
jsdoc fixes
|
2018-03-28 15:04:09 +01:00 |
|
Felipe Alfonso
|
d544701495
|
parentMatrix added to individual game object render function
|
2018-03-27 14:49:09 -03:00 |
|
orblazer
|
5a518f2e5f
|
Fix "object" types on Camera and GameObjecs
|
2018-03-20 23:28:26 +01:00 |
|
orblazer
|
87633fdfad
|
Fix multiple types on GameObjects
|
2018-03-20 15:56:31 +01:00 |
|
orblazer
|
90def456f2
|
Update JSDoc on GameObjects
|
2018-03-19 12:54:31 +01:00 |
|
Richard Davey
|
24eec0ccd0
|
Merge pull request #3365 from samme/feature/tilesprite-settileposition
Add Phaser.GameObjects.TileSprite#setTilePosition
|
2018-03-16 12:55:03 +00: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
|
e2ad743b92
|
_this fix
|
2018-03-12 14:52:35 +00:00 |
|
samme
|
f4e843038c
|
Expect v3.3.0
|
2018-03-12 07:23:20 -07: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 |
|
samme
|
aebce8a695
|
Add Phaser.GameObjects.TileSprite#setTilePosition
Both arguments are optional.
|
2018-03-10 11:41:22 -08:00 |
|
Tom Catshoek
|
74b18921e8
|
Added rotation, scaling and flipping to TileSpriteCanvasRenderer
|
2018-03-09 15:16:34 +01:00 |
|
Richard Davey
|
4d16b0c00a
|
eslint fixes
|
2018-03-05 01:45:28 +00:00 |
|
Richard Davey
|
fdc1f3cab3
|
Added canvas roundPixels support for Text, Particles and TileSprites
|
2018-02-28 22:40:08 +00:00 |
|
Felipe Alfonso
|
14399d6910
|
TileSprite can now set frame of the pattern texture
|
2018-02-28 17:04:57 -03:00 |
|
Richard Davey
|
5b4b5de075
|
TileSprite was missing a gl reference, causing it to fail during a context loss and restore.
|
2018-02-16 18:54:33 +00:00 |
|
Richard Davey
|
86f00eeb52
|
eslint fixes
|
2018-02-16 18:17:51 +00:00 |
|