Richard Davey
671c92e450
Added addedToScene
and removedFromScene
methods
...
* `GameObject.addedToScene` is a new method that custom Game Objects can use to perform additional set-up when a Game Object is added to a Scene. For example, Sprite uses this to add itself to the Update List.
* `GameObject.removedFromScene` is a new method that custom Game Objects can use to perform additional tear-down when a Game Object is removed from a Scene. For example, Sprite uses this to remove themselves from the Update List.
* Game Objects no longer automatically remove themselves from the Update List during `preDestroy`. This should be handled directly in the `removedFromScene` method now.
2020-08-24 19:18:29 +01:00
Richard Davey
bc93416ec7
Added events property and new add and remove callbacks
...
* `DisplayList.events` is a new property that references the Scene's Event Emitter. This is now used internally.
* `DisplayList.addChildCallback` is a new method that overrides the List callback and fires the new ADDED events.
* `DisplayList.removeChildCallback` is a new method that overrides the List callback and fires the new REMOVED events.
2020-08-24 19:15:53 +01:00
Richard Davey
ae4ed0ac54
Expose the new events
2020-08-24 19:13:18 +01:00
Richard Davey
98cd70cd6c
GameObjects.Events.REMOVED_FROM_SCENE
is a new event, emitted by a Game Object, when it is removed from a Scene, or a Container that is part of the Scene.
2020-08-24 19:11:22 +01:00
Richard Davey
ef91518da5
GameObjects.Events.ADDED_TO_SCENE
is a new event, emitted by a Game Object, when it is added to a Scene, or a Container that is part of the Scene.
2020-08-24 19:10:50 +01:00
Richard Davey
1766f66984
Update JSDocs
2020-08-24 14:58:24 +01:00
Richard Davey
0dd07333af
Updated to use MultiPipeline
2020-08-21 16:14:59 +01:00
Rex
29e317db39
Get ascent and descent from context.measureText method
...
Get ascent and descent from context.measureText method instead of scanning image data.
2020-08-21 10:42:24 +08:00
Richard Davey
ed33253fb1
Merge pull request #5235 from mk360/text-padding
...
[types] allow Text#setPadding to receive an object
2020-08-20 10:04:35 +01:00
Richard Davey
c98a43c9d4
Merge pull request #5258 from khasanovbi/font
...
Allow to pass font in TextStyle
2020-08-20 10:03:02 +01:00
Richard Davey
ab605eed78
Remove false import
2020-08-19 13:19:07 +01:00
Richard Davey
b1b8a74cf9
RenderTexture.fill
would fail to fill the correct area under WebGL if the RenderTexture wasn't the same size as the Canvas. It now fills the given region properly.
2020-08-19 13:14:36 +01:00
mk360
748e699d43
update setPadding jsdoc
2020-08-10 08:21:26 +03:00
Bulat Khasanov
8e1b5e757d
Allow to pass font in TextStyle
2020-08-09 23:34:31 +03:00
Richard Davey
e77639561b
Use charIndex, not i
2020-08-06 17:06:10 +01:00
Richard Davey
6aaf54e8a7
Don't add frame if empty
2020-08-05 14:15:01 +01:00
Richard Davey
96a64eae4e
ParseXMLBitmapFont
has a new optional parameter texture
. If defined, this Texture is populated with Frame data, one frame per glyph. This happens automatically when loading Bitmap Text data in Phaser.
2020-08-05 12:46:28 +01:00
Richard Davey
a2c9c3cef6
Fix char right adjustment
2020-08-05 11:48:25 +01:00
Richard Davey
00e5c5fe0f
Update BitmapTextSize.js
2020-08-04 11:25:10 +01:00
Richard Davey
ee01d36918
Update BitmapTextCharacter.js
2020-08-04 11:25:07 +01:00
Richard Davey
1db3ba72f8
Cache shadow values
2020-08-04 11:25:03 +01:00
Richard Davey
50dcc624df
Get Character using char top, right and bottom
2020-08-04 11:24:56 +01:00
Richard Davey
1ae0cfc619
Include char top, right and bottom values
2020-08-04 11:24:43 +01:00
samme
981a4b1a0a
Rename all setInteractive() arguments, and docs
2020-08-03 13:33:30 -07:00
Richard Davey
111a4e1ce2
Calling Rectangle.setSize()
wouldn't change the underlying geometry of the Shape Game Object, causing any stroke to be incorrectly rendered after a size change.
2020-08-03 17:54:29 +01:00
Richard Davey
47a62cd30c
If you apply setSize
to the Dynamic BitmapText the scissor is now calculated based on the parent transforms, not just the local ones, meaning you can crop Bitmap Text objects that exist within Containers. Fix #4653
2020-08-03 11:33:41 +01:00
Richard Davey
2f574070d5
Setting the color
value in the DynamicBitmapText.setDisplayCallback
would inverse the red and blue channels if the color was not properly encoded for WebGL. It is now encoded automatically, meaning you can pass normal hex values as the colors in the display callback. Fix #5225
2020-08-03 10:53:27 +01:00
Richard Davey
ec845ce015
Use GetColorFromValue
2020-08-03 10:49:05 +01:00
Richard Davey
0266c7f0a2
Updated docs #5231
2020-08-03 10:37:01 +01:00
Richard Davey
da05cfa1ad
Merge pull request #5244 from 16patsle/Fix_Text_types
...
Fix types for Text, TextFactory and TextCreator
2020-08-03 10:20:40 +01:00
Richard Davey
c9330fd469
Merge pull request #5241 from samme/docs/add-existing
...
Docs: generic return for add.existing()
2020-08-03 10:19:42 +01:00
Patrick Sletvold
edf0c17703
Use TextPadding type in Text game object
2020-08-01 13:35:02 +02:00
Patrick Sletvold
87e8eba213
Correctly type style in TextFactory
2020-08-01 13:34:37 +02:00
Patrick Sletvold
a525e43dcf
Add TextConfig type for TextCreator
2020-08-01 13:34:07 +02:00
Richard Davey
42d6456993
Encode dropshadow color
2020-08-01 11:24:26 +01:00
Richard Davey
959645d1f0
Always render drop shadow behind text
2020-08-01 11:24:15 +01:00
Richard Davey
22e8d22e3f
BitmapText.setWordTint
is a new method that allows you to set a tint color (either additive, or fill) on all matching words within a static Bitmap Text. You can specify the word by string, or numeric offset, and the number of replacements to tint.
2020-07-31 18:36:27 +01:00
Richard Davey
b9407967e3
If you give an invalid Bitmap Font key, the Bitmap Text object will now issue a console.warn
.
2020-07-31 18:00:31 +01:00
Richard Davey
79e985dd93
Updated docs
2020-07-31 17:09:40 +01:00
Richard Davey
c0109c1ec9
BatchChar
is a new internal private function for batching a single character of a Bitmap Text to the pipeline.
2020-07-31 16:54:29 +01:00
Richard Davey
2e378b68d1
Apply the dropShadow
2020-07-31 16:39:21 +01:00
Richard Davey
c228dd596a
BitmapText.setDropShadow
is a new method that allows you to apply a drop shadow effect to a Bitmap Text object. You can set the horizontal and vertical offset of the shadow, as well as the color and alpha levels. Call this method with no parameters to clear a shadow.
2020-07-31 16:39:05 +01:00
Richard Davey
aac2276692
BitmapText.preDestroy
is a new method that will tidy-up all of the BitmapText data during object destruction.
2020-07-31 16:22:53 +01:00
Richard Davey
7ce39b991c
Removed un-used properties
2020-07-31 16:17:36 +01:00
Richard Davey
9419606f12
BitmapText.setCharacterTint
is a new method that allows you to set a tint color (either additive, or fill) on a specific range of characters within a static Bitmap Text. You can specify the start and length offsets and a per-corner tint color.
2020-07-31 16:17:23 +01:00
Richard Davey
fc6e7ef759
Removed un-used properties
2020-07-31 15:46:05 +01:00
Richard Davey
2ef28cd0e4
Added getXRound
and getYRound
2020-07-31 15:45:55 +01:00
Richard Davey
4baa0522b9
Bumping to 3.50
2020-07-31 13:41:29 +01:00
Richard Davey
d16d8dc9ce
BitmapTextWebGLRenderer
has been rewritten from scratch to make use of the new pre-cached WebGL uv texture and character location data generated by GetBitmapTextSize
. This has reduced the number of calculations made in the function dramatically, as it no longer has work out glyph advancing or offsets during render, but only when the text content updates.
2020-07-31 13:39:49 +01:00
Richard Davey
49682e744d
Update BitmapText.js
2020-07-31 13:34:50 +01:00
Richard Davey
72654e04d3
Fixed bounds sizes
2020-07-31 13:34:28 +01:00
Richard Davey
c166976fcc
Update BitmapTextCharacter.js
2020-07-31 12:06:57 +01:00
Richard Davey
a4577e2135
The GetBitmapTextSize
function has a new boolean parameter updateOrigin
, which will adjust the origin of the parent BitmapText if set, based on the new bounds calculations.
2020-07-31 12:06:45 +01:00
Richard Davey
a682b83b7c
BitmapText.getCharacterAt
is a new method that will return the character data from the BitmapText at the given x
and y
corodinates. The character data includes the code, position, dimensions and glyph information.
2020-07-31 11:36:48 +01:00
Richard Davey
e195aac919
ParseXMLBitmapFont
will now calculate the WebGL uv data for the glyphs during parsing. This avoids it having to be done during rendering, saving CPU cycles on an operation that never changes.
2020-07-31 11:32:37 +01:00
Richard Davey
0385d108a8
Transform.getLocalPoint
is a new method, available on all Game Objects, that takes an x
/ y
pair and translates them into the local space of the Game Object, factoring in parent transforms and display origins.
2020-07-31 10:28:09 +01:00
Richard Davey
214b383fcd
Use correct scale and added start of getCharacterAt method
2020-07-30 23:59:06 +01:00
Richard Davey
a39bcfe69a
Always return chars
2020-07-30 22:38:06 +01:00
Richard Davey
a678f723c6
Always calculate includeChars
2020-07-30 22:37:34 +01:00
Richard Davey
1579069c50
Pixel accurate character data
2020-07-30 18:24:04 +01:00
Richard Davey
eef67b6c11
Update BitmapTextWebGLRenderer.js
2020-07-30 18:23:50 +01:00
Richard Davey
77feb773fd
Fixed descriptions
2020-07-30 18:23:45 +01:00
Richard Davey
b108cd03f0
Fix call to GetBitmapTextSize
2020-07-30 15:43:43 +01:00
Richard Davey
408a545aac
BitmapTextWord
, BitmapTextCharacter
and BitmapTextLines
are three new type defs that are now part of the BitmapTextSize
config object, as returned by getTextBounds
. This improves the TypeScript defs and JS Docs for this object.
2020-07-30 15:24:49 +01:00
Richard Davey
286be7df49
The GetBitmapTextSize
and BitmapText.getTextBounds
functions have a new boolean parameter includeChars
. When set to true
it will include a characters
array in the returned bounds object that contains the scaled position coordinates of each character in the BitmapText, which you could use for tasks such as determining which character of the object was clicked.
2020-07-30 15:14:25 +01:00
Richard Davey
cc3d3f7da3
The GetBitmapTextSize
function used Math.round
on the values, if the round
parameter was true
, which didn't create integers. It now uses Math.ceil
instead to give integer results.
2020-07-30 14:47:31 +01:00
Richard Davey
841389628e
The BitmapText.getTextBounds
method was being called every frame, even if the bounds didn't change, potentially costing a lot of CPU depending on the text length and quantity of them. It now only updates the bounds if they change.
2020-07-30 14:46:32 +01:00
samme
f653a51cc0
Docs: generic return for add.existing()
2020-07-29 12:19:09 -07:00
mk360
a7371b9a85
[types] allow Text#setPadding to receive an object
2020-07-24 18:48:17 +03:00
Richard Davey
b51a40c1a1
Update RenderTexture.js
2020-07-23 17:01:37 +01:00
Richard Davey
bb3b67c16f
Update RenderTextureWebGLRenderer.js
2020-07-23 17:01:25 +01:00
Richard Davey
9607ce89c7
Update RenderTextureWebGLRenderer.js
2020-07-23 16:22:46 +01:00
Richard Davey
9b278554d3
RenderTexture.resize
(which is called from setSize
) wouldn't correctly set the TextureSource.glTexture
property, leading to bindTexture: attempt to use a deleted object
errors under WebGL.
2020-07-23 16:22:38 +01:00
Richard Davey
27426dd0b6
Testing RenderTextures (currently broken, will fix next week)
2020-07-17 18:08:39 +01:00
Richard Davey
0ff08a2994
Update RopeWebGLRenderer.js
2020-07-17 17:07:34 +01:00
Richard Davey
1eb3464f30
Use multi-texturing
2020-07-17 17:05:05 +01:00
Richard Davey
97f601f378
LightsManager.cull
now takes the viewport height from the renderer instead of the game config
2020-07-16 17:42:58 +01:00
Richard Davey
d942e2bd47
Update TextWebGLRenderer.js
2020-07-16 16:59:59 +01:00
Richard Davey
848377b8d8
The TileSprite Game Objects now support rendering with normal maps.
2020-07-16 16:59:53 +01:00
Richard Davey
68585f1718
The Text Game Object now supports rendering in Light2d, no matter which font, stroke or style it is using.
2020-07-16 16:16:26 +01:00
Richard Davey
6aba9e71b1
All Shape Game Objects (Rectangle, IsoBox, Star, Polygon, etc) now support rendering in Light2d.
2020-07-16 15:51:07 +01:00
Richard Davey
786f78e91d
Particle Emitter Game Objects now support rendering in Light2d.
2020-07-16 15:32:06 +01:00
Richard Davey
71d85be0df
Mesh and Quad Game Objects now support rendering with normal maps.
2020-07-16 15:25:06 +01:00
Richard Davey
6c9a5f62a6
Uses setGameObject
to support Light2D
2020-07-16 15:15:48 +01:00
Richard Davey
b4f0c9fde2
Uses setGameObject
to support Light2D
2020-07-16 15:15:33 +01:00
Richard Davey
5db55a85d7
The Graphics Game Objects now support rendering in Light2d. You can even use normal map textures for the texture fills.
2020-07-16 15:10:45 +01:00
Richard Davey
c973f41fcc
Added setters and dirty check
...
* `Light.dirty` is a new property that controls if the light is dirty, or not, and needs its uniforms updating.
* `Light` has been recoded so that all of its properties are now setters that activate its `dirty` flag.
2020-07-16 03:26:32 +01:00
Richard Davey
1146e6f7a3
LightsManager.destroy
will now clear the lightPool
array when destroyed, where-as previously it didn't.
2020-07-16 03:25:25 +01:00
Richard Davey
99af20aa68
The Particle Emitter Game Object WebGL Renderer function has been updated to support multi-texture units.
2020-07-15 18:03:36 +01:00
Richard Davey
a21641e19b
The Dynamic Bitmap Text Game Object WebGL Renderer function has been updated to support multi-texture units.
2020-07-15 16:54:04 +01:00
Richard Davey
50f10b3d4b
The Bitmap Text Game Object WebGL Renderer function has been updated to support multi-texture units.
2020-07-15 16:53:48 +01:00
Richard Davey
446389bb4d
The Blitter Game Object WebGL Renderer function has been updated to support multi-texture units.
2020-07-15 16:53:25 +01:00
Richard Davey
ec0914cd0f
The Mesh Game Object WebGL Renderer function has been updated to support multi-texture units.
2020-07-15 16:53:09 +01:00
Richard Davey
0003d278fd
Updated to use new external MVP functions
2020-07-14 16:49:30 +01:00
Richard Davey
dc13060042
Fixed namespace
2020-07-14 09:45:37 +01:00
Richard Davey
14c1a3ad99
The ISO Triangle shape would skip rendering the left side of the first triangle in the batch. It now renders all ISO Triangles correctly. Fix #5164
2020-07-13 14:45:58 +01:00
Richard Davey
40929a57e3
Calling getTextBounds
on a BitmapText object would return the incorrect values if the origin had been changed, but the text itself had not, as it was using out of date dimensions. Changing the origin now automatically triggers BitmapText to be dirty, forcing the bounds to be refreshed. Fix #5121
2020-07-13 14:06:06 +01:00
Richard Davey
64c58bc592
Updated docs. Fix #5128
2020-07-13 13:36:24 +01:00
Richard Davey
dea68135fd
Correct texture type. Fix #5199
2020-07-13 13:29:01 +01:00
Richard Davey
f7af980b1e
Fixed version number
2020-07-13 13:01:41 +01:00
Richard Davey
be158f48e6
Merge pull request #5194 from mikewesthad/types-fix-wordwrap
...
Update TextStyle to have jsdocs for word wrap related properties
2020-07-13 12:57:29 +01:00
Richard Davey
6374da052f
Fixed lint errors with PR #5193
2020-07-13 12:55:49 +01:00
Richard Davey
259b702df8
Merge pull request #5193 from scott20145/master
...
Fix nested mask behaviour for Phaser.CANVAS mode
2020-07-13 12:54:14 +01:00
Richard Davey
60baaf7708
Made sure array was cleared on destroy #5159
2020-07-13 12:51:36 +01:00
Richard Davey
bdc206ab6d
Merge pull request #5175 from mikewesthad/master
...
Fix return type in Text#getTextMetrics: object -> TextMetric
2020-07-13 12:37:25 +01:00
Richard Davey
d83b14274d
Merge pull request #5166 from samme/feature/group-setActive-setName
...
Add Group#setActive(), Group#setName()
2020-07-13 12:34:03 +01:00
Richard Davey
0ecaed42ec
Merge pull request #5163 from samme/fix/headless-renderTexture
...
Fix error adding a Render Texture with Headless renderer
2020-07-13 12:32:53 +01:00
Richard Davey
818343f452
Fixed lint errors with PR #5159
2020-07-13 12:20:10 +01:00
Richard Davey
8951211c74
Merge pull request #5159 from tgroborsch/feature/multi-anims-chain
...
Allow chaining of multible animations
2020-07-13 12:19:03 +01:00
Richard Davey
bafae8424d
Merge pull request #5153 from samme/fix/create-group-from-children
...
Fix problems passing `children` to created group
2020-07-13 12:15:26 +01:00
Richard Davey
b6fd158986
Container.getBounds
will no longer set the temp rect bounds to the first child of the Container by default (which would error if the child had no bounds, like a Graphics object) and instead sets it as it iterates the children
2020-07-13 12:12:28 +01:00
Richard Davey
b1ae96eb76
Merge pull request #5130 from samme/docs/gameobject-body-type
...
Correct types for GameObject#body
2020-07-13 11:48:35 +01:00
Richard Davey
9bb3a4ba19
Merge pull request #5178 from samme/docs/misc-7
...
Docs
2020-07-13 11:41:28 +01:00
SirJosh3917
f2e8a83691
Update ContainerFactory.js
...
Given that Container's constructor allows x and y to be optional, the JSDoc should match that.
2020-07-09 23:32:54 -04:00
Michael Hadley
8285bcf44f
Fix spacing
2020-06-17 08:21:06 -05:00
Michael Hadley
a161aa58cc
Update TextStyle to have jsdocs for: wordWrapWidth, wordWrapUseAdvanced, wordWrapCallbackScope, wordWrapCallback
2020-06-17 07:53:23 -05:00
scott.liu
ea3279bd32
format
2020-06-17 11:03:25 +08:00
scott.liu
2f98f463d2
format
2020-06-17 11:01:50 +08:00
scott.liu
7f4bbf9192
format
2020-06-17 10:59:25 +08:00
scott.liu
104a3b9e35
format
2020-06-17 10:56:17 +08:00
scott.liu
f607f1f521
#3673 fix nested mask behaviour for Phaser.CANVAS mode
2020-06-17 10:53:38 +08:00
samme
84d11e4772
Docs: add missing Phaser.GameObjects.Shape#geom
2020-05-31 15:07:12 -07:00
Michael Hadley
4e0176691a
Fix return type in Text#getTextMetrics: object -> Phaser.Types.GameObjects.Text.TextMetric
2020-05-30 07:53:48 -05:00
samme
f1eb31c81a
Add Phaser.GameObjects.Group#setActive
2020-05-25 10:58:26 -07:00
samme
6aeb609d55
Docs: whitespace
2020-05-25 10:58:10 -07:00
samme
5b9c34a32a
Docs: Depth#depth and Depth#setDepth()
2020-05-25 09:20:42 -07:00
samme
634dfe4f29
Add Phaser.GameObjects.Group#setName
2020-05-24 22:17:55 -07:00
samme
50e93d2cee
Fix error for headless renderer
2020-05-23 11:45:01 -07:00
timo
a39199849e
Allow chaining of multible animations
...
With this commit it is possible to chain more than one animation together for example:
this.mole.anims.play('digging',true).anims.chain('lifting').anims.chain('looking').anims.chain('lowering');
This commit introduces a property nextAnimsQueue. It holds all additional nextAnim-Keys in the order the chain()-method was called. It is handed over to the nextAnim-Property in the stop()-method.
2020-05-22 14:03:42 +02:00
timo
b00acb1838
Revert "Allow for chaining multible animations"
...
This reverts commit a5eacab048
.
2020-05-22 13:45:21 +02:00
timo
a5eacab048
Allow for chaining multible animations
...
This allows for chaining multible animations by calling the chain(key) method multible times like this:
this.mole.anims.play('digging',true).anims.chain('lifting').anims.chain('looking').anims.chain('lowering');
This commit adds a new property nextAnimsQueue. This is an array that holds the chained keys in order of chain() requests.
This list will be worked on in the stop() function.
2020-05-22 13:30:37 +02:00
samme
70b8bfe4b0
Add children after configuration
...
Ensures the create handler is called
2020-05-11 10:20:52 -07:00
samme
b7bc26d06f
Correct types for GameObject#body?
2020-05-02 16:16:16 -07:00
Richard Davey
ca8f0be256
Added more docs
2020-04-27 16:21:34 +01:00
Richard Davey
33dfd5c519
Fixed method name
2020-04-27 16:21:27 +01:00
Richard Davey
4d190470f3
Fixed Vector2Like types
2020-04-27 16:13:17 +01:00
Richard Davey
7525ed2533
Updated docs
2020-04-27 15:09:37 +01:00
Richard Davey
91e8d331c6
lint fixes
2020-04-27 13:03:55 +01:00
Richard Davey
f66e05b81d
Merge pull request #5042 from Minious/master
...
Fix wrong Container.getBounds with child container
2020-04-27 13:01:53 +01:00
Richard Davey
d438c93435
Merge pull request #4985 from rexrainbow/datamanager-improvement
...
Add incData, toggleData methods
2020-04-27 12:43:56 +01:00
Richard Davey
f92b649d85
Merge pull request #5004 from samme/fix/4976-headless-text
...
Fix updateText() error for headless renderer
2020-04-27 12:36:01 +01:00
Richard Davey
70a4b9843e
Merge pull request #5038 from halilcakar/master
...
Update JSDocs for events
2020-04-27 11:51:40 +01:00
Richard Davey
4f80ec5748
Fix spelling mistake
2020-04-27 10:13:15 +01:00
samme
03c9c5fa33
Add PathFollower#pathDelta
2020-04-17 09:28:40 -07:00
Godard
9c2447dcb8
fix Container pointToContainer function
2020-04-09 12:02:31 -04:00
samme
eeb00c1a92
Docs: when to quote fontFamily
...
Fixes #5076
2020-04-04 10:56:52 -07:00
samme
08aaf6231f
Docs: fix my math in Transform#rotation
2020-03-27 21:18:49 -07:00
Eliot Godard
f4ba7c4e3a
Fix wrong Container.getBounds with child container
2020-03-12 01:42:17 -04:00
halilcakar
43f26ad31f
Update JSDocs for events
2020-03-10 11:11:43 +03:00
samme
a84f7efb45
Docs: radian values for Transform#rotation
2020-02-27 10:15:44 -08:00
samme
55e4dc2329
Fix TypeError for headless renderer
2020-02-15 11:50:05 -08:00
Richard Davey
f5128a428a
Fixed Video return type. Fix #5003
2020-02-13 12:13:13 +00:00
Rex
307c2b1584
Add incData, toggleData method
2020-02-05 16:17:54 +08:00
Richard Davey
0b696ebc74
Added MatterJS.BodyType
to GameObject.body
type. Fix #4962
2020-02-04 21:13:44 +00:00
Richard Davey
20fabba0b9
Impact Physics is now removed from the core API
2020-02-04 14:52:04 +00:00
Richard Davey
e4c158c883
Merge pull request #4968 from JasonHK/jsdoc
...
Fixed `this` return types
2020-01-29 11:48:43 +00:00
Richard Davey
72f0395eec
Update TransformMatrix.js
...
Added missing braces.
2020-01-29 11:48:11 +00:00
Richard Davey
b8d2a5b792
Undef or null
2020-01-28 16:13:59 +00:00
Richard Davey
ef641a104f
Update Rope.js
2020-01-28 12:59:11 +00:00
Richard Davey
7ce48c20de
Update Rope.js
2020-01-28 12:50:22 +00:00
Richard Davey
ddf535c6c3
Rope can now draw vertex debug to a Graphics instance
2020-01-28 12:46:35 +00:00
Richard Davey
c357b5e56d
Added alignment property
2020-01-28 12:46:11 +00:00
Richard Davey
0a4b3e3785
Update RopeCanvasRenderer.js
2020-01-28 12:46:03 +00:00
Richard Davey
54aebfc842
Removed NOOPs and fixed UV projection for vertical atlas frames
2020-01-27 15:15:19 +00:00
Richard Davey
4de9d52769
Animation.setCurrentFrame
will no longer try to call setOrigina
or updateDisplayOrigin
if the Game Object doesn't have the Origin component, preventing unknown function errors.
2020-01-27 14:48:50 +00:00
Jason Kwok
ec25759747
Fixed this
return types for Phaser.GameObjects.Zone
2020-01-26 21:52:37 +08:00
Jason Kwok
8e82f22858
Fixed this
return types for Phaser.GameObjects.Text
2020-01-26 21:43:48 +08:00
Jason Kwok
192e03c932
Fixed this
return types for Phaser.GameObjects.Sprite
2020-01-26 21:36:59 +08:00
Jason Kwok
4578a9e13c
Fixed this
return types for Phaser.GameObjects.Quad
2020-01-26 21:26:34 +08:00
Jason Kwok
fca63274e2
Fixed this
return types for Phaser.GameObjects.Particles.Zones.EdgeZone
2020-01-26 21:21:25 +08:00
Jason Kwok
022fa20673
Fixed this
return types for Phaser.GameObjects.Particles.EmitterOp
2020-01-26 21:18:14 +08:00
Jason Kwok
270f7b33a3
Fixed this
return types for Phaser.GameObjects.Particles.ParticleEmitterManager
2020-01-26 21:15:30 +08:00
Jason Kwok
1fd71ae088
Fixed this
return types fro Phaser.GameObjects.Particles.ParticleEmitter
2020-01-26 21:13:11 +08:00
Jason Kwok
4df2179496
Fixed this
return types for Phaser.GameObjects.Light
2020-01-26 21:06:58 +08:00
Jason Kwok
66e314432c
Fixed this
return types for Phaser.GameObjects.Group
2020-01-26 21:03:57 +08:00
Jason Kwok
494ddf431d
Fixed this
return types for Phaser.GameObjects.Graphics
2020-01-26 21:01:00 +08:00
Jason Kwok
91f1fefd2b
Fixed this
return types for Phaser.GameObjects.Container
2020-01-26 20:50:59 +08:00
Jason Kwok
00818a9c61
Fixed this
return types for Phaser.GameObjects.Components.TransformMatrix
2020-01-26 20:42:58 +08:00
Jason Kwok
c97a59011d
Fixed this
return types for Phaser.GameObjects.Components.PathFollower
2020-01-26 20:36:05 +08:00
Jason Kwok
87bf4bd648
Fixed this
return types for Phaser.GameObjects.Bob
2020-01-26 20:25:26 +08:00
Jason Kwok
401cb81590
Fixed this
return type for Phaser.GameObjects.DynamicBitmapText
2020-01-26 20:16:18 +08:00
Richard Davey
009dad281f
Fixed comparison
2020-01-24 18:18:06 +00:00
Richard Davey
5022830c7a
Added preDestroy handler
2020-01-24 18:03:18 +00:00
Richard Davey
bf65d6b577
Push to the updateList too
2020-01-24 18:01:49 +00:00
Richard Davey
e5f5ed70fe
Added support for animations, texture flipping, alignment resetting and tint fill
2020-01-24 18:01:40 +00:00
Richard Davey
79357e35ab
Support Rope.alpha
2020-01-24 15:35:16 +00:00
Richard Davey
2f6921b80f
Added horizontal parameter
2020-01-24 15:35:08 +00:00
Richard Davey
1463aaaaa1
Added horizontal flag and Alpha and Flip components
2020-01-24 15:35:00 +00:00
Richard Davey
72c3b55235
Testing vertical Rope support
2020-01-24 01:58:29 +00:00
Richard Davey
f883cb492a
Fixed issue with not enough Rope segments being provided.
...
Allow to pass in integer to split Rope into.
2020-01-20 17:29:11 +00:00
Richard Davey
ade73f28bf
Rope updates
2020-01-20 16:01:30 +00:00
Richard Davey
57a022db53
Always flush, because tri-strip
2020-01-17 19:04:16 +00:00
Richard Davey
d5473a4840
Added setTintFill method
2020-01-17 17:58:50 +00:00
Richard Davey
162b07bd6b
Added new Rope Game Object
2020-01-17 17:38:06 +00:00
samme
f4c011496c
Fix PathFollower always at end of path
2020-01-16 14:44:26 -08:00
Richard Davey
4a6b2087f7
Fixed internal callback handlers
2020-01-15 12:45:59 +00:00
Richard Davey
ff65e69cd1
Changed copyright date to 2020
2020-01-15 12:07:09 +00:00
Richard Davey
e1a6214c9b
A DOMElement
will now set the display mode to 'none' during its render if the Scene in which it belongs is no longer visible.
2020-01-15 11:15:23 +00:00
Richard Davey
867a11b30b
DOMElement
has a new private method handleSceneEvent
which will handle toggling the display setting of the element when a Scene sleeps and wakes. A DOM Element will now listen for the Scene sleep and wake events. These event listeners are removed in the preDestroy
method.
2020-01-15 11:15:09 +00:00
Richard Davey
90c8825ddb
A PathFollower
with a very short duration would often not end in the correct place, which is the very end of the Path, due to the tween handling the movement not running one final update when the tween was complete. It will now always end at the final point of the path, no matter how short the duration. Fix #4950
2020-01-15 10:42:56 +00:00