Commit graph

64 commits

Author SHA1 Message Date
Richard Davey
59fbcc5ca3 Updated copyright year 2022-02-28 14:29:51 +00:00
Richard Davey
c1b36610fb Update TileSprite.js 2022-02-03 21:50:52 +00:00
Richard Davey
9d7a575a4f Added FX component 2021-10-16 15:23:19 +01:00
Richard Davey
2f8d6a023d Updated version number 2021-09-20 11:41:47 +01:00
Rex
a6c75a36c8 Turn off context restore event when game object is destroyed 2021-06-12 12:44:23 +08:00
Matt Jennings
72fd48abc4 safely check for renderer in TileSprite 2021-02-11 16:00:24 -06:00
Richard Davey
417f7684c3 More integer to number changes 2020-11-23 10:32:00 +00:00
Richard Davey
02c34cd64e Replace integer with number 2020-11-23 10:22:13 +00:00
Richard Davey
d670edd708 No need to reference via game 2020-10-27 13:55:27 +00:00
Richard Davey
ff65e69cd1 Changed copyright date to 2020 2020-01-15 12:07:09 +00:00
Richard Davey
c37058ef4b When calling TileSprite.setTexture or setFrame, if the new frame size didn't match the old one, the new fill pattern would become distorted and the potWidth and potHeight values would be incorrect. 2019-11-19 11:49:54 +00:00
Richard Davey
5b6d9895be TileSprites will now throw a console warning if you try to use a RenderTexture or GLTexture as their frame source. Fix #4719 2019-10-01 13:37:37 +01:00
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