You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Finished off RenderTexture. Sprites can now accept a RenderTexture or a key when you create them. RenderTextures are also now stored in the cache under their own key, making re-using them across other Sprites much easier. Also ported over all of the Tilemap classes, but need to get them rendering.
* @param [key] {string} The image key as defined in the Game.Cache to use as the texture for this sprite
24
+
* @param [texture] {string|RenderTexture} The image key as defined in the Game.Cache to use as the texture for this sprite OR a RenderTexture
25
25
* @param [frame] {string|number} If the sprite uses an image from a texture atlas or sprite sheet you can pass the frame here. Either a number for a frame ID or a string for a frame name.
26
26
* @returns {Sprite} The newly created sprite object.
* @param [key] {string} The image key as defined in the Game.Cache to use as the texture for this sprite
39
+
* @param [texture] {string|RenderTexture} The image key as defined in the Game.Cache to use as the texture for this sprite OR a RenderTexture
40
40
* @param [frame] {string|number} If the sprite uses an image from a texture atlas or sprite sheet you can pass the frame here. Either a number for a frame ID or a string for a frame name.
41
41
* @returns {Sprite} The newly created sprite object.
* Create a tween object for a specific object. The object can be any JavaScript object or Phaser object such as Sprite.
53
53
*
54
54
* @param obj {object} Object the tween will be run on.
55
-
* @param [localReference] {bool} If true the tween will be stored in the object.tween property so long as it exists. If already set it'll be over-written.
56
55
* @return {Phaser.Tween} The newly created tween object.
0 commit comments