Commit graph

52 commits

Author SHA1 Message Date
Richard Davey
f4002471d7 Updated context lost / restored handlers 2019-07-17 16:38:00 +01:00
Richard Davey
c91ed91ce3 License link update 2019-05-10 16:15:04 +01:00
Richard Davey
e017691c68 The ScaleMode Component has been removed from every Game Object, and along with it the scaleMode property and setScaleMode method. These did nothing anyway as they were not hooked to the render pipeline and scale mode should be set on the texture, not the Game Object. Fix #4413 2019-03-24 23:07:27 +00:00
Richard Davey
f8c4252fcb Tweaked setTileScale arguments 2019-02-08 12:13:01 +00:00
Cédric Lesquir
e40cb21fc8
Bail out updateTileTexture if no renderer 2019-01-22 11:23:40 -05:00
Cédric Lesquir
cd6488e8db
Headless tilesprite crash fix
Fixes issue https://github.com/photonstorm/phaser/issues/4297
2019-01-19 16:50:36 -05:00
Richard Davey
3e48021903 Clarified docs 2019-01-16 12:13:04 +00:00
Richard Davey
aa341854c7 Happy New Year 2019-01-15 16:20:22 +00:00
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
217779604c Added tileScaleX and tileScaleY support for Tile Sprites 2018-06-28 12:59:27 +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
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
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
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
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
Richard Davey
4d16b0c00a eslint fixes 2018-03-05 01:45:28 +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
Richard Davey
d1f5f8a82b Added jsdocs 2018-02-12 16:01:21 +00:00
Richard Davey
a71998d682 Updated origin call. 2018-02-09 15:23:26 +00:00
Richard Davey
40689d1e35 Updated jsdocs. 2018-02-07 15:27:21 +00:00
Richard Davey
5c0872485c Added jsdocs 2018-02-06 22:56:27 +00:00
Richard Davey
d457373287 Added Depth component and tidied up redundant parts of Transform 2018-02-01 00:50:15 +00:00
Felipe Alfonso
71a6360a7b Pipeline components added 2018-01-29 18:46:48 -03:00
Felipe Alfonso
42482ecb26 TileSprite webgl rendering 2018-01-24 21:15:51 -03:00
Felipe Alfonso
99d850346f Text rendering added 2018-01-23 21:40:20 -03:00
Felipe Alfonso
2b043fff65 Removed RenderTarget and Shader from components 2018-01-22 18:53:15 -03:00
Richard Davey
d8f1ba03e9 Moved repository location 2018-01-09 21:43:56 +00:00
Richard Davey
0d90f75b5f Splitting the dev branch up into versions. 2016-11-22 01:36:56 +00:00