Commit graph

2045 commits

Author SHA1 Message Date
Richard Davey
7650c5535f BitmapText with a maxWidth set wouldn't update the text correctly if it was modified post-creation. You can now update the text and/or width independantly and it'll update correctly. Fix #4881 2019-11-26 14:31:27 +00:00
Richard Davey
4a33c7b5c8 Don't reset text 2019-11-22 16:43:13 +00:00
Richard Davey
a7b3cd585d Tidying up 2019-11-22 16:42:53 +00:00
Richard Davey
0d46c7107a Fixed issue with carriage-returns not reflowing text 2019-11-22 16:42:43 +00:00
Richard Davey
4435791cc1 Updated to use current null approach 2019-11-22 13:54:07 +00:00
Richard Davey
28982fb7fc Fixed word wrapping 2019-11-22 13:48:10 +00:00
Richard Davey
b297950875 Added wordWrapCharCode 2019-11-22 13:48:01 +00:00
Richard Davey
5b1401153c Working through BitmapText wrapping 2019-11-21 17:11:43 +00:00
Richard Davey
ce2dbb7095
Merge pull request #4873 from samme/feature/group-type
Add `type` for Group, Arcade.Group, Arcade.StaticGroup
2019-11-20 21:54:10 +00:00
samme
8585541e15 Add type for Group, PhysicsGroup, StaticPhysicsGroup 2019-11-20 11:53:38 -08:00
Richard Davey
3eafac9f4f lint fixes 2019-11-19 13:02:05 +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
b95a6a45bd Fixed some JSDocs resulting from #4850 2019-11-19 11:23:19 +00:00
Richard Davey
4606f0b443
Merge pull request #4850 from rexrainbow/group-improvement
Add some action methods
2019-11-19 11:04:17 +00:00
Richard Davey
171ca39544
Merge pull request #4847 from rexrainbow/Action-of-scrollFactor
Add SetScrollFactor into Action and Group's createFromConfig
2019-11-19 10:55:16 +00:00
Richard Davey
e5f93738ca
Merge pull request #4807 from jcyuan/master
fix TS issues and fix the condition to check video support.
2019-11-19 10:49:09 +00:00
Richard Davey
1091d09d93 Video.destroy has been renamed to Video.preDestroy, so that it now destroys properly like all other Game Objects. Fix #4821 2019-11-18 22:20:08 +00:00
Richard Davey
9ff331e10e
Merge pull request #4829 from jsoref/spelling
Spelling
2019-11-18 21:47:26 +00:00
Richard Davey
50d9931c11 Added cached MIN/MAX SAFE INT for IE support #4833 2019-11-18 17:01:55 +00:00
Hua
f0c1d8f846 Add some action methods 2019-11-06 14:22:47 +08:00
Hua
53e9fd1465 Add SetScrollFactor into Action and Group's createFromConfig 2019-11-05 14:39:56 +08:00
Josh Soref
c0d92a56a7 spelling: will 2019-10-29 02:42:27 -04:00
Josh Soref
4a322dc7be spelling: dynamic 2019-10-29 01:52:45 -04:00
Josh Soref
0b4a951cf5 spelling: discrepancies 2019-10-29 01:52:04 -04:00
J.C
9507ec7591 fix ts error, and update the output file. 2019-10-16 13:39:06 +08:00
Richard Davey
04bfe30255 Container.mask wouldn't render in WebGL due to a change in the way child masks were handled. Container masking now works again as in 3.19. Fix #4803 2019-10-15 11:29:47 +01:00
Richard Davey
c37a3634c0 UpdateList.shutdown wasn't removing the Scene Update event listener, causing actions to be multiplied on Scene restart (such as animation playback). Fix #4799 2019-10-15 11:18:36 +01:00
Richard Davey
28316ec4fe Merged ProcessQueue docs 2019-10-11 18:53:11 +01:00
Richard Davey
c60530eedd Removed commented-out code 2019-10-11 18:35:27 +01:00
Richard Davey
e8ac166ab2 Update UpdateList.js 2019-10-11 18:34:01 +01:00
Richard Davey
312797dc8e JSDoc fixes 2019-10-11 18:29:55 +01:00
Richard Davey
39118a2778
Merge pull request #4700 from cristlee/master
add an optional textureData when initialize shader
2019-10-11 13:34:22 +01:00
Richard Davey
9656c9858c Emit event after playback 2019-10-11 13:19:55 +01:00
Richard Davey
29f5acab15 Added all of the Video Events and completed the jsdocs 2019-10-11 12:26:24 +01:00
Richard Davey
0958df8592 Finished method jsdocs 2019-10-10 23:51:03 +01:00
Richard Davey
9b8bc99538 Lots of jsdocs added 2019-10-10 17:42:57 +01:00
Richard Davey
e3b4ec1b6f Don't access currentTime if no video loaded 2019-10-10 14:26:19 +01:00
Richard Davey
dcdc219442 Added flipY support into saveTexture for use in shaders 2019-10-10 12:27:14 +01:00
Richard Davey
2fb190f023 changeSource works and loadURL works too 2019-10-09 17:42:51 +01:00
Richard Davey
bd7592a408 No URL in constructor 2019-10-09 17:42:37 +01:00
Richard Davey
bede5d29f0 Video source change now working 2019-10-09 15:31:37 +01:00
Richard Davey
e69c46d30e Added snapshot methods. 2019-10-09 10:50:01 +01:00
Richard Davey
ed69ef6626 The GameObject.setTexture method can now accept either a string, in which case it looks for the texture in the Texture Manager, or a Texture instance, in which case that instance is set as the Game Object's texture. 2019-10-09 10:49:37 +01:00
Richard Davey
226a0f87ea Video seeking only updates texture when the seek is complete and added marker support 2019-10-09 10:17:15 +01:00
Richard Davey
35dfd2fb30 Fixed noAudio 2019-10-09 00:40:09 +01:00
Richard Davey
5b98d5737e Non-Promise support + seeking texture update 2019-10-08 17:44:01 +01:00
Richard Davey
5b34726e64 Refactored how pause / resume / play works and texture updating, much cleaner and more resilient 2019-10-08 17:15:26 +01:00
Richard Davey
5ac4afb1f8 Getting autoplay working 2019-10-07 17:08:45 +01:00
Richard Davey
07a2a81263 grab and saveToTexture methods now work 2019-10-04 13:40:42 +01:00
Richard Davey
633af46f71 Removed snapshot and handled locked and unlocked playback 2019-10-04 13:14:32 +01:00
Richard Davey
3d31e27926 Don't render if there's no texture 2019-10-04 13:14:06 +01:00
Richard Davey
6b67862cb7 Finally resolved webgl texture issues when loaded too early 2019-10-04 00:58:43 +01:00
Richard Davey
800381b7fc Better handling of texture creation 2019-10-03 17:51:11 +01:00
Richard Davey
9989f271d4 Pass in the key and url 2019-10-03 17:50:42 +01:00
Richard Davey
9429f66adb Added first pass at Video Game Object 2019-10-03 02:29:05 +01:00
Richard Davey
3ab903b3c5 UpdateList now extends ProcessQueue and uses all of its methods instead. 2019-10-02 12:13:43 +01:00
Richard Davey
ea75c5ca9a Updated quad alpha checks 2019-10-02 10:11:07 +01:00
Richard Davey
a7a15bcb4d
Merge pull request #4715 from MrcSnm/master
Container now can apply alpha quads
2019-10-02 09:55:59 +01:00
Marcelo Silva Nascimento Mancini
b7166bba3b
ESLint correction 2019-10-01 16:11:29 -03:00
Richard Davey
be02c80be9 Origin and canvas renderer work again now. Fix #4108 2019-10-01 17:43:47 +01:00
Richard Davey
1a42c54398 Set image smoothing based on renderer or scale mode. 2019-10-01 16:10:50 +01:00
Richard Davey
d405bab92c Set image smoothing based on renderer or scale mode. 2019-10-01 16:10:46 +01:00
FengLi
217d1daa2f add an optional textureData when initialize shader 2019-10-01 22:52:35 +08:00
Richard Davey
b1b95c066b The BuildGameObject function will no longer set scaleMode because it's not a valid Game Object property. 2019-10-01 14:54:52 +01:00
Richard Davey
55c73d399b GameObject.ToJSON will no longer output the scaleMode in the json because it's not a valid Game Object property. 2019-10-01 14:41:58 +01:00
Richard Davey
ea7691518b Use public property for blend mode check #4771 2019-10-01 14:08:13 +01: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
Hua
8a9e74ffe9 Add tint feature of bob 2019-10-01 10:17:14 +08:00
Richard Davey
487ec88529 RenderTexture.fill wasn't setting the camera up before drawing the fill rect, causing it to appear in the wrong place and the wrong size. Fix #4390 2019-09-30 15:08:53 +01:00
Richard Davey
cde1210523 The Container WebGLRenderer will now handle child new type switching, allowing you to carry on with a batch of same-type Game Objects even if they're nested within Containers. Fix #4710 2019-09-27 15:41:51 +01:00
Richard Davey
f3e18000f2
Merge pull request #4760 from rexrainbow/blitter-enhancement
Set dirty flag only when render state of bob is changed
2019-09-26 12:32:34 +01:00
Rex
6deec2c44b Also resize hit-area when resizing 2019-09-21 20:24:26 +08:00
Rex
08a2082d46 Update display-origin when resizing 2019-09-21 20:21:09 +08:00
Rex
7795713ab5 Set dirty flag only when render state of bob is changed 2019-09-21 20:15:56 +08:00
Richard Davey
5c04e20b20 The private Shader._savedKey property has been removed as it wasn't used anywhere internally. 2019-09-20 14:48:41 +01:00
Richard Davey
bc5c7cf7ab When calling Shader.setRenderToTexture() it will now draw the shader just once, immediately to the texture, to avoid the texture being blank for a single frame (thanks Kyle) 2019-09-19 23:32:40 +01:00
Nicolas Ferrero
18060a841e RenderTexture would not update texture size on resize 2019-09-10 17:03:52 +03:00
Richard Davey
fc5630cb72 The displayWidth and height should never be negative. 2019-08-30 19:35:52 +01:00
Richard Davey
6887e7b4f0 JSDoc fix 2019-08-28 12:00:19 +01:00
=
e7cce944dd Container now can apply alpha quads 2019-08-19 13:26:14 -03:00
Richard Davey
7d2eaae693 The Container renderer functions will now read the childs alpha property, instead of _alpha, allowing it to work with more variety of custom children. 2019-08-08 14:03:23 +01:00
Richard Davey
717258e3f1 Docs update 2019-08-05 14:07:36 +01:00
Richard Davey
9f15b5a96b Removed scale abs, as deeper effects unknown 2019-08-03 11:08:22 +01:00
Richard Davey
cc85ec1d35 Fixed scaleX and scaleY 2019-08-02 17:28:46 +01:00
Richard Davey
c1767e404f Fixed scaleX and scaleY to handle negative scales and added rotation fix 2019-08-02 01:50:02 +01:00
Richard Davey
6e2d22e5cb jsdoc update 2019-08-01 17:44:20 +01:00
Richard Davey
718f75b797 TransformMatrix.rotation now returns the properly normalized rotation value 2019-07-26 14:20:38 +01:00
Richard Davey
14faabcadf Updated docs 2019-07-26 14:19:44 +01:00
Richard Davey
f4002471d7 Updated context lost / restored handlers 2019-07-17 16:38:00 +01:00
Richard Davey
80c0f59b09 GameObjectCreator.remove is a new static function that will remove a custom Game Object creator type. 2019-07-17 14:36:10 +01:00
Richard Davey
4887696bfa GameObjectFactory.remove is a new static function that will remove a custom Game Object factory type. 2019-07-17 14:36:02 +01:00
Richard Davey
907d0dd4f2 Render Texture snapshot methods now work across WebGL and Canvas 2019-07-15 17:03:04 +01:00
Richard Davey
41d007fe67 Origin.updateDisplayOrigin no longer applies a Math.floor to the display origins, allowing you to have a 0.x origin for a Game Object that only has a width or height of 1. This fixes issues with things like 1x1 rectangles displaying incorrectly during rendering. 2019-07-15 16:30:08 +01:00
Richard Davey
15d7b9c6ef Fixed jsdoc typos and added single pixel support 2019-07-14 13:56:44 +01:00
Richard Davey
4d61aa8556 Added the new methods snapshot, snapshotArea and snapshotPixel 2019-07-13 15:21:13 +01:00
Hua
7134a1ef7b Remove event hook of children when destroyChildren is false 2019-07-10 15:59:25 +08:00
Richard Davey
f71920646c Shader.uniforms now uses Extend instead of Clone to perform a deep object copy, instead of a shallow one, avoiding multiple instances of the same shader sharing uniforms. Fix #4641 2019-07-08 13:03:39 +01:00
Richard Davey
5416deaa54 The UpdateList.remove method wouldn't flag the Game Object for removal properly if it was active. It now checks that the Game Object is in the current update list and hasn't already been inserted into the 'pending removal' list before flagging it. Fix #4544 2019-07-03 15:47:40 +01:00
Richard Davey
deca3c95a3 Calling Animation.setRepeat() wouldn't reset the repeatCounter properly, causing Sprite bound animation instances to fail to change their repeat rate. Fix #4553 2019-07-03 15:33:13 +01:00
Richard Davey
83e54cfb16 The Animation component will no longer start an animation on a Sprite if the animation doesn't exist. Previously it would throw an error saying "Unable to read the property getFirstTick of null". 2019-07-03 12:02:56 +01:00