Commit graph

5702 commits

Author SHA1 Message Date
Richard Davey
b7ae0295bc No need to use globalAlpha or run fillRect twice. 2018-04-07 17:52:10 +01:00
Richard Davey
37eb938d99
Merge pull request #3518 from PaNaVTEC/typescript-definitions
Add KeyboardManager#createCursorKeys typedefs
2018-04-07 16:26:08 +01:00
Richard Davey
b3a20d475a Removed null and updated log 2018-04-07 16:18:48 +01:00
Richard Davey
041f0c5468
Merge pull request #3513 from mkimmet/master
Added missing physics property to GameConfig
2018-04-07 16:17:39 +01:00
Richard Davey
9e0f113c92 Added jsdocs 2018-04-07 16:16:03 +01:00
Richard Davey
67132a65ba
Merge pull request #3512 from icbat/master
filling in most of the jsdocs for GetFastValue and SpriteSheetFromAtlas
2018-04-07 16:13:23 +01:00
Richard Davey
cc1dba4ba9
Merge pull request #3511 from hexus/fix/graphics-generate-texture
Fixed renderCanvas() call in Graphics.generateTexture()
2018-04-07 16:09:32 +01:00
Richard Davey
d1788d8a4c Updated jsdocs 2018-04-07 15:58:08 +01:00
Richard Davey
777325c046 Removed callbacks, added events and added new stop methods 2018-04-07 12:36:35 +01:00
Richard Davey
c2edab2d7b Removed all animation callbacks and added events 2018-04-07 12:36:11 +01:00
Richard Davey
daa2236998 Removed onUpdate 2018-04-07 12:35:51 +01:00
Christian Panadero
c08f769351 Add keyboardManaged#createCursorKeys typedefs 2018-04-06 18:17:58 +01:00
Richard Davey
e0dc28e4ba Fixed lint errors and added jsdocs 2018-04-06 11:15:15 +01:00
iamchristopher
e538a597b3 Updated ImageFile argument types 2018-04-05 20:42:32 -04:00
iamchristopher
a65cd41852 Added ImageFile argument descriptions 2018-04-05 20:34:49 -04:00
iamchristopher
9155149012 Added example multi image load 2018-04-05 20:15:56 -04:00
iamchristopher
661f9fd29e Fixed loading normals with multi image load 2018-04-05 20:12:58 -04:00
Mark
e54e30ee0b
Added missing physics property to GameConfig
The typescript typings for GameConfig are missing the physics property, so I added it.
2018-04-05 17:26:08 -04:00
Chris Andrew
f70f92b038 Fixed explicit check for undefined GraphicsCanvasRenderer's parentMatrix, which meant null could not be passed as an argument. 2018-04-05 21:07:45 +01:00
Evan
582a742373 filling in most of the jsdocs for GetFastValue and SpriteSheetFromAtlas 2018-04-05 14:21:40 -05:00
Chris Andrew
9293891c82 Fixed renderCanvas() call in Graphics.generateTexture().
Introduced by altering the signature of the Canvas renderers (c232642a).
2018-04-05 19:08:54 +01:00
Felipe Alfonso
0e401bb6fe Fixed order on getWorldTransformMatrix 2018-04-05 14:11:48 -03:00
Richard Davey
eb0f3c3ec1 Added missing Container components 2018-04-05 16:53:40 +01:00
Richard Davey
da6db3f29e Added transform methods 2018-04-05 16:50:37 +01:00
Richard Davey
c3ba80c4e5 Added jsdocs 2018-04-05 16:50:21 +01:00
Richard Davey
7e64b4d624 Automatically remove from display list 2018-04-05 15:28:34 +01:00
Richard Davey
ae8706a424 Added missing callback 2018-04-05 15:28:22 +01:00
Richard Davey
fb04cd4869 Containers are now exclusive 2018-04-05 14:59:57 +01:00
Richard Davey
183896f8ff Added parentContainer property 2018-04-05 14:56:43 +01:00
Richard Davey
e31cae93d2 Tilemap Layers should use the ComputedSize component 2018-04-05 14:43:07 +01:00
Richard Davey
1a67945079 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-04-05 13:52:49 +01:00
Richard Davey
13df64c01f Extends List 2018-04-05 13:52:42 +01:00
Richard Davey
6ccb0f2dc4 Accepts optional children array 2018-04-05 13:52:24 +01:00
Richard Davey
e0f95bb3fa Now using proper array 2018-04-05 13:52:11 +01:00
Richard Davey
a44fcb6ad6 Added addCallback, removeCallback and skipCallback arguments 2018-04-05 13:51:57 +01:00
Richard Davey
ba4693d140 jsdoc fix 2018-04-05 13:51:37 +01:00
Richard Davey
8d37273d8a
Merge pull request #3509 from delftswa2018/line_getPointA&B_fix
Line.PointA&B fix
2018-04-05 11:26:06 +01:00
Richard Davey
85671883e8 Tidying up 2018-04-05 11:25:22 +01:00
Richard Davey
34b236df41 Vector2.setTo is a method alias for Vector2.set allowing it to be used inter-changeably with Geom.Point. 2018-04-05 11:24:56 +01:00
Richard Davey
57c5ca657b Small refactoring 2018-04-05 11:01:24 +01:00
Tomas Heinsohn Huala
8a2c5792f4 Line.getPointA&B fix 2018-04-05 12:00:42 +02:00
Richard Davey
c1517d60ed eslint fixes 2018-04-05 09:28:04 +01:00
Richard Davey
441ca3862c Swap for isArray check 2018-04-05 09:23:52 +01:00
Richard Davey
054ceafae0 Added jsdocs to Container and made add support arrays 2018-04-05 09:23:29 +01:00
Richard Davey
4f6239dadb jsdoc and eslint fixes 2018-04-05 09:02:36 +01:00
Richard Davey
3009809fc4
Merge pull request #3508 from photonstorm/containers
Merging in Containers branch
2018-04-05 08:58:08 +01:00
Richard Davey
9c0ab4ccaf Merge branch 'master' of https://github.com/photonstorm/phaser 2018-04-05 08:48:39 +01:00
Richard Davey
4466f28e44 Updated log 2018-04-05 08:48:35 +01:00
Richard Davey
312e0d385d
Merge pull request #3506 from jmcriat/patch-1
fix drag/overlap interaction
2018-04-05 08:48:24 +01:00
Eirik S Korsnes
64bbf8b9c0 jsdoc / tsdef : extend jsdoc for EventEmitter#emit to properly reflect its ability to have any amount of arguments
https://github.com/photonstorm/phaser3-docs/issues/17
2018-04-05 02:02:27 +02:00
José Maria
100eafe1a4
fix drag/overlap interaction
changes: when dragend resets draglist. 
this fixes overoutevents from a gameobject not firing after being drag.
2018-04-04 18:09:18 -03:00
Eirik S Korsnes
798356cb64 jsdoc: fix correct type reference on Scene#load 2018-04-04 20:19:21 +02:00
Felipe Alfonso
e02efcfeb3 Merge branch 'master' into containers 2018-04-04 14:06:24 -03:00
Felipe Alfonso
c232642a52 Parent matrix is applied to canvas context on each draw function 2018-04-04 14:05:59 -03:00
Richard Davey
9f9c7dea61 Added setProgress 2018-04-04 17:19:02 +01:00
Felipe Alfonso
eafb488e25 Merge branch 'master' into containers 2018-04-04 13:15:42 -03:00
Felipe Alfonso
96b8db4685 Added parentMatrix to all canvas rendering functions 2018-04-04 13:14:55 -03:00
Richard Davey
9368c80922 getFrameByProgress will return the Animation Frame that is closest to the given progress value. 2018-04-04 17:14:43 +01:00
Richard Davey
9f85c0f61e new optional argument key which will allow you to scan a top-level property of any object in the given sorted array and get the closest match to it. 2018-04-04 17:11:41 +01:00
Felipe Alfonso
7b275e2c62 DrawImage works with parent matrix 2018-04-04 12:31:45 -03:00
Richard Davey
fa2320238e More jsdocs fixes and staggerPlay fix 2018-04-04 16:27:33 +01:00
Felipe Alfonso
5026566084 Container Canvas Rendering function 2018-04-04 12:22:10 -03:00
Richard Davey
e734e7ef6b Extensive Animation API changes to use milliseconds, improve docs and access to properties 2018-04-04 16:13:45 +01:00
Felipe Alfonso
bea7ca36ad Merge branch 'master' into containers
# Conflicts:
#	src/renderer/webgl/pipelines/TextureTintPipeline.js
2018-04-04 12:07:41 -03:00
Richard Davey
552cfe3c5e Animation Component overhaul 2018-04-04 14:44:09 +01:00
Richard Davey
c251eceaf6 jsdoc fixes 2018-04-04 14:43:53 +01:00
Richard Davey
51d29b818d Animation.updateFrame will now call setSizeToFrame on the Game Object, which will adjust the Game Objects width and height properties to match the frame size. Fix #3473 2018-04-04 13:14:41 +01:00
Richard Davey
96507beda1 Added setLetterSpacing method and exported value in toJSON (#3480) 2018-04-04 11:34:39 +01:00
Richard Davey
af12eaac77
Merge branch 'master' into FR3472 2018-04-04 11:28:58 +01:00
Richard Davey
67c0bb8059
Merge pull request #3502 from icbat/master
filling in docs for utils.object.clone, hasAll, and hasAny
2018-04-04 11:25:46 +01:00
Richard Davey
dac030dd3e Graphics.slice allows you to easily draw a Pacman, or slice of pie shape to a Graphics object. 2018-04-04 11:13:19 +01:00
Richard Davey
0c200054b6 LineCurve.getResolution was missing the divisions argument and always returning 1, which made it fail when used as path of a Path. It now defaults to return 1 unless specified otherwise 2018-04-04 10:29:12 +01:00
Richard Davey
3589013af2 Not protected 2018-04-03 23:56:27 +01:00
Evan
ab004d1626 filling in docs for utils.object.clone, hasAll, and hasAny 2018-04-03 12:42:27 -05:00
Felipe Alfonso
3158d688ad TileSprite batcher modulates tilePosition by the texture size to avoid scrolling uv coordinates to large values.
issue ref: https://github.com/photonstorm/phaser/issues/3402
2018-04-03 14:21:24 -03:00
Richard Davey
e29de6a9b3 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-04-03 17:30:26 +01:00
Richard Davey
a2535d4597 jsdoc fix 2018-04-03 17:30:15 +01:00
Felipe Alfonso
e50c42e0b8 Fixed issue with static tilemap layer not getting the real texture dimension
issue ref: https://github.com/photonstorm/phaser/issues/3407
2018-04-03 13:24:14 -03:00
Felipe Alfonso
8092e574dd Merge branch 'master' of https://github.com/photonstorm/phaser 2018-04-03 13:23:13 -03:00
Richard Davey
11512e1db2 Keyboard.JustDown and Keyboard.JustUp were being reset too early, causing them to fail when called in update loops. Fix #3490 2018-04-03 16:33:13 +01:00
Felipe Alfonso
198180fec6 Fixed issue https://github.com/photonstorm/phaser/issues/3475 2018-04-03 12:03:02 -03:00
Richard Davey
5fb57e13ec Merge branch 'master' of https://github.com/photonstorm/phaser 2018-04-03 15:41:07 +01:00
Richard Davey
d838097763 Game.destroy now checks to see if the renderer exists before calling destroy on it. Fix #3498 2018-04-03 15:41:02 +01:00
Richard Davey
1049e76ca1
Merge pull request #3499 from orblazer/patch-1
Remove generic on type
2018-04-03 15:37:15 +01:00
Richard Davey
d93e8ab919 Make sure debug layer remains on the top 2018-04-03 15:30:46 +01:00
Richard Davey
8ffe3e3aaf Small formatting fixes 2018-04-03 15:28:51 +01:00
orblazer
e3b0c3e4d2
Remove generic on type 2018-04-03 16:24:48 +02:00
Richard Davey
7f1723ca4f
Merge pull request #3458 from OmarShehata/master
Added joint debug rendering to Matter Physics postUpdate
2018-04-03 15:22:49 +01:00
Richard Davey
c1e5aa72ef Added jsdocs for TS defs export 2018-04-03 15:08:48 +01:00
Richard Davey
eca3c09df1 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-04-03 14:08:26 +01:00
Richard Davey
316da3f2d9 jsdocs update. Fix #3477 2018-04-03 14:08:22 +01:00
Richard Davey
6c3618fa12
Merge pull request #3494 from erd0s/master
JSdoc, changed properties marked with [?...] to just be [...]
2018-04-03 13:56:44 +01:00
Richard Davey
18b29d9104
Merge pull request #3496 from hexus/docs
Documentation for DataManager, SceneManager and ScenePlugin
2018-04-03 13:55:31 +01:00
Chris Andrew
f3675b6085 Added a missing full stop. 🚀 2018-04-02 18:43:41 +01:00
Chris Andrew
e047977f52 Documented the ScenePlugin class. 2018-04-02 18:29:23 +01:00
Chris Andrew
7eb0342663 Documented the SceneManager. 2018-04-02 18:01:17 +01:00
Evan Cobb
6d7b28db04
Fleshing out docs 2018-04-02 11:03:23 -05:00
Evan Cobb
7153548c36
Update LinearInterpolation.js 2018-04-02 10:54:46 -05:00
Chris Andrew
381784d58f Documented the DataManager class. 2018-04-02 16:32:21 +01:00
Travis O'Neal
2ec70cac48 Added a letterSpacing property to BitmapText 2018-04-02 09:42:24 -04:00
Dirk
d32af81411 UPDATED: JSdoc, changed properties marked with [?...] to just be [...] 2018-04-02 21:03:05 +10:00
jdotrjs
562402e440 [fixes #3482] HueToComponent was not correctly exporting itself
Pretty self explanatory -- `module.export` is a typo, needed to be `exports`. Filed associated bug #3482.
2018-03-30 16:25:59 -07:00
Travis O'Neal
43ea5f239c
Updated @since to the appropriate version 2018-03-30 14:07:28 -04:00
Travis O'Neal
d6265a59dd Initial Commit 2018-03-30 13:46:44 -04:00
Richard Davey
d8e378b052 Updated comments 2018-03-30 17:01:29 +01:00
Travis O'Neal
edb81c9096 Tween.Restart adds Tween back to the active list for the TweenManager to properly process and replay 2018-03-30 11:24:36 -04:00
Felipe Alfonso
749a69c387 Merge branch 'master' into containers 2018-03-30 11:50:54 -03:00
Richard Davey
89c963c19c Ignore consts 2018-03-30 14:38:58 +01:00
Richard Davey
0868d69fb6 Added memberOf 2018-03-30 14:24:18 +01:00
Richard Davey
2a35a20fcb Swapped for enum 2018-03-30 14:16:42 +01:00
Richard Davey
a86fc19d3c jsdoc fix 2018-03-30 14:12:09 +01:00
Richard Davey
1a73f22780 Removed braces 2018-03-30 13:57:17 +01:00
Richard Davey
51eec113a9 jsdoc tweak 2018-03-30 13:56:53 +01:00
Richard Davey
29089a329b Merge branch 'master' of https://github.com/photonstorm/phaser 2018-03-30 13:51:45 +01:00
Richard Davey
66c2c7a359 change types 2018-03-30 13:51:32 +01:00
Antriel
630732f9fc jsdoc generics fix 2018-03-30 14:43:58 +02:00
Richard Davey
71045265ae The Gamepad Axis getValue method now correctly applies the threshold and zeroes out the returned value. 2018-03-30 12:33:45 +01:00
Richard Davey
88a228e226 jsdoc fix 2018-03-30 12:33:31 +01:00
Richard Davey
4c116c0af2 Put Fixed and Smoothed aliases back in for now 2018-03-30 12:03:25 +01:00
Richard Davey
f6167f6fcf The GamepadManager now extends EventEmitter directly, just like the KeyboardManager does. 2018-03-30 12:03:06 +01:00
Richard Davey
19f7e2589a jsdoc fix 2018-03-30 12:02:08 +01:00
pixelhijack
e728f3a1b9 [ISSUE #3363] Phaser Scene - passing data to scene init & create methods 2018-03-29 21:40:32 +02:00
Richard Davey
2d6251a1e9 Swapping to enums 2018-03-29 16:42:20 +01:00
Felipe Alfonso
4f8ddd73bb Merge branch 'master' into containers 2018-03-29 12:35:40 -03:00
Felipe Alfonso
0186e122a6 If a container is nested the parentContainer property is setted 2018-03-29 12:34:23 -03:00
Richard Davey
9f36b5e8b4 const / enum 2018-03-29 15:50:48 +01:00
Richard Davey
37589ffe00 jsdoc updates 2018-03-29 15:12:32 +01:00
Omar Shehata
b18530741d Replaced all uses of 'let' with 'var' to support older browsers 2018-03-29 08:53:38 -05:00
Richard Davey
cef9050627 jsdoc fixes 2018-03-29 14:53:06 +01:00
Richard Davey
d5fd3e20d9 Renamed namespace 2018-03-29 14:24:51 +01:00
Richard Davey
ce75947dac Swap to module 2018-03-29 14:02:25 +01:00
Richard Davey
e7191e9d8e jsdoc updates 2018-03-29 13:48:14 +01:00
Richard Davey
f5373b2dee jsdoc fixes 2018-03-29 13:23:44 +01:00
Richard Davey
4ddd9d2e8c Merge branch 'master' of https://github.com/photonstorm/phaser 2018-03-29 13:12:12 +01:00
Richard Davey
91008232ad jsdoc fixes 2018-03-29 13:12:07 +01:00
Richard Davey
562344fed0 The ComputedSize Component now has setSize and setDisplaySize methods. This component is used for Game Objects that have a non-texture based size. 2018-03-29 12:55:28 +01:00
Richard Davey
fba8183d94 Fixed docs order 2018-03-29 12:54:33 +01:00
Richard Davey
aec64c635e Removed floats 2018-03-29 12:54:12 +01:00
orblazer
e10a10b3b1 Fix usage of @genericUse 2018-03-29 12:58:18 +02:00
Felipe Alfonso
e0f678d1ff Merge branch 'master' into containers 2018-03-28 20:49:00 -03:00
Felipe Alfonso
88ed9bd3b8 transform to container space 2018-03-28 20:47:57 -03:00
orblazer
1f5c5b1f77
Remove unused import 2018-03-28 21:30:03 +02:00
Richard Davey
88b02a5e35 Renamed the Camera Controls module exports for Fixed to FixedKeyControl and Smoothed to SmoothedKeyControl to match the class names. Fix #3463 2018-03-28 16:24:06 +01:00
Richard Davey
06998276ec Removed stict mode warning 2018-03-28 16:00:19 +01:00
Richard Davey
f1e646c9ee jsdoc fixes 2018-03-28 15:39:57 +01:00
Richard Davey
747f09af86 jsdoc fixes 2018-03-28 15:04:09 +01:00
Richard Davey
2b533d9870 Renamed file 2018-03-28 15:03:54 +01:00
Richard Davey
2096729095 Missing require 2018-03-28 14:15:32 +01:00
Richard Davey
2868b8b588 Added new chainable methods: setRate, setMute, setVolume, setSeek, setDune 2018-03-28 14:14:07 +01:00
Richard Davey
cfab72aef4 Tidying up formatting 2018-03-28 14:13:40 +01:00
Richard Davey
ff9dfc1f9d Fixed event names 2018-03-28 14:13:30 +01:00
Richard Davey
a76b9a1827 BaseSoundManager.rate and BaseSoundManager.detune would incorrectly called setRate on its sounds, instead of calculateRate. 2018-03-28 14:12:37 +01:00
Richard Davey
dcbc81e6b2 Remove un-used properties and setters 2018-03-28 14:12:16 +01:00
Richard Davey
15c4334dc7 jsdoc fixes 2018-03-28 14:11:46 +01:00
Richard Davey
f10efda8f0 font is non-optional, so removed coordinates as optional 2018-03-28 12:05:03 +01:00
Richard Davey
2a2ba91eed
Merge pull request #3461 from orblazer/genericTypes
Fix many types and add many generics type
2018-03-28 11:53:12 +01:00
Felipe Alfonso
b23ad3b130 Fixed issue with creating containers and graphics with scene.make. 2018-03-27 17:32:33 -03:00
Felipe Alfonso
3741b9ea6d Added nested support to graphics rendering 2018-03-27 16:57:49 -03:00
Felipe Alfonso
d544701495 parentMatrix added to individual game object render function 2018-03-27 14:49:09 -03:00
Felipe Alfonso
5d7e910f5b Merge branch 'master' into containers 2018-03-27 12:26:27 -03:00
Richard Davey
d0fc334225 Swapped to 3.4.0 because of public-facing API changes 2018-03-27 15:15:22 +01:00
Richard Davey
e7a1e3190a Matter Physics timestep adjustments (getDelta, step, set60Hz, etc)
* Matter Physics now has a new config property `getDelta` which allows you to specify your own function to calculate the delta value given to the Matter Engine when it updates.
* Matter Physics has two new methods: `set60Hz` and `set30Hz` which will set an Engine update rate of 60Hz and 30Hz respectively. 60Hz being the default.
* Matter Physics has a new config and run-time property `autoUpdate`, which defaults to `true`. When enabled the Matter Engine will update in sync with the game step (set by Request Animation Frame). The delta value given to Matter is now controlled by the `getDelta` function.
* Matter Physics has a new method `step` which manually advances the physics simulation by one iteration, using whatever delta and correction values you pass in to it. When used in combination with `autoUpdate=false` you can now explicitly control the update frequency of the physics simulation and unbind it from the game step.
2018-03-27 15:15:05 +01:00
orblazer
d0e1320cbe Add generic types and fix types on Input and Structs 2018-03-27 15:59:49 +02:00
orblazer
e9e16a7b10 Add generic types on Geom 2018-03-27 15:27:08 +02:00
orblazer
ae0b3b841b Fix types on GameObjects 2018-03-27 14:52:58 +02:00
orblazer
b1d83188ef Add generic type and fix types on Data and Display 2018-03-27 14:19:42 +02:00
orblazer
1ded1d12a8 Fix types and add generic in Curves 2018-03-27 14:06:24 +02:00
orblazer
7a33233013 Fix types in Cache and Cameras 2018-03-27 13:51:45 +02:00
orblazer
0d58832e5f Fix types on Animations and Boot 2018-03-27 13:30:00 +02:00
orblazer
bdf373b6e8 Add generic type on Actions 2018-03-27 13:14:08 +02:00
Felipe Alfonso
9a2ec4225a Merge branch 'master' into containers 2018-03-26 21:17:07 -03:00
Felipe Alfonso
161f258f60 Parent transform applied to all texture tint pipeline object rendering functions 2018-03-26 21:16:36 -03:00
Richard Davey
1f44366bc7 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-03-27 01:09:34 +01:00
Richard Davey
933e193ccf Group.destroy has a new optional argument destroyChildren which will automatically call destroy on all children of a Group if set to true (the default is false, hence it doesn't change the public API). Fix #3246 2018-03-27 01:09:30 +01:00
Richard Davey
3aa95b4f20 Formatting fix. 2018-03-27 01:09:23 +01:00
Richard Davey
25cbb320a5
Merge pull request #3453 from orblazer/genericTypes
Change structs for generic types
2018-03-27 00:37:34 +01:00
Richard Davey
72eca92e4d
Merge pull request #3448 from jamierocks/no-eval
Remove string-generated Functions for CSP policies
2018-03-27 00:08:44 +01:00
Felipe Alfonso
f6eef58608 Merge branch 'master' into containers 2018-03-26 19:57:11 -03:00
Felipe Alfonso
48b8e7c704 parentTransformMatrix mulitplication 2018-03-26 19:55:38 -03:00
Richard Davey
33edbfcefe
Merge pull request #3457 from samid737/master
Fix: PathFollower.setPath was still using PathFollower.start instead of PathFollower.startFollow
2018-03-26 23:49:09 +01:00
Richard Davey
f74f733576 Just because. 2018-03-26 23:17:06 +01:00
Felipe Alfonso
eac2b8338e parentTransformMatrix argument added to texture pipeline 2018-03-26 17:23:18 -03:00
Omar Shehata
4fa109d2db Added joint debug rendering to Matter Physics postUpdate 2018-03-25 22:44:32 -05:00
Samid\Sami
20b9930335 Fix calling non existing start() instead of startFollow() in setPath(config) 2018-03-25 10:44:24 +02:00
Felipe Alfonso
5bcd12fcb7 Base container rendering + sprite batching with parent matrix 2018-03-23 14:15:52 -03:00
orblazer
f42f1bf132 Change structs for generic types 2018-03-23 16:54:12 +01:00
Richard Davey
2cd7da0126 The RenderTexture now uses the ComputedSize component instead of Size (which requires a frame), allowing calls to getBounds to work. Fix #3451 2018-03-23 10:00:25 +00:00
Richard Davey
574221d6cf A new property was added to Matter.World, correction which is used in the Engine.update call and allows you to adjust the time being passed to the simulation. The default value is 1 to remain consistent with previous releases. 2018-03-23 02:19:18 +00:00
Jamie Mansfield
88647a4879
Remove string-generated Functions for CSP policies - Resolves #3441 2018-03-22 22:32:46 +00:00
Richard Davey
04b5985724
Merge pull request #3445 from delftswa2018/3385-Rendertexture-alpha-not-changing-in-WEBGL-mode
Fix changing alpha in RenderTextureWebGLRenderer
2018-03-22 14:52:14 +00:00
Richard Davey
6fe6a165be Preparing for 3.3.1 2018-03-22 14:39:29 +00:00
Gerard van Alphen
78c1e86021 Fix changing alpha in RenderTextureWebGLRenderer 2018-03-22 14:58:41 +01:00
Richard Davey
d78a9d097f eslint fixes 2018-03-22 13:22:23 +00:00
Richard Davey
5816b863fa Removed TransformNode so it doesn't break the 3.3 CI build 2018-03-22 13:19:52 +00:00
orblazer
ed1f2a7011 Fix wrong types 2018-03-22 13:51:30 +01:00
Richard Davey
32d9b82f93 Spacing 2018-03-21 17:22:09 +00:00
Richard Davey
c0ec42dc2b Added setRate, setDetune and renamed setRate to calculateRate 2018-03-21 16:43:08 +00:00
Richard Davey
b3965fb5a2 Added TweenData type def 2018-03-21 16:23:48 +00:00
Richard Davey
0ef92e1172 Merge branch 'pr/3439' 2018-03-21 16:06:56 +00:00
Richard Davey
63d2b49154 Removed FilterMode and swapped for const 2018-03-21 15:18:07 +00:00
Richard Davey
a2352f2049 Renamed tween config defaults 2018-03-21 15:17:53 +00:00
Richard Davey
eebe58f1c9 Removed duplicate parameters 2018-03-21 15:17:40 +00:00
Richard Davey
eb10a0121a Added new methods to NoAudio 2018-03-21 14:56:08 +00:00
Richard Davey
2433844cd3 Added setVolume and setMute 2018-03-21 14:54:23 +00:00
Richard Davey
4c75c48a77 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-03-21 14:41:56 +00:00
Richard Davey
2182511b1d Image swap 2018-03-21 14:41:51 +00:00
Richard Davey
c6fc61e470 Fixed class names 2018-03-21 14:41:45 +00:00
Richard Davey
72690734c3 Fixed exposure 2018-03-21 14:41:34 +00:00
Richard Davey
0899c135d6 Fixed types 2018-03-21 14:41:16 +00:00
Richard Davey
13f5608cbe Added XHRSettings Conf 2018-03-21 14:41:04 +00:00
Richard Davey
f500f5509b Added DeviceConf def 2018-03-21 14:40:30 +00:00
Richard Davey
645c03f2e9 Added setRate and setDetune methods 2018-03-21 14:40:07 +00:00
Richard Davey
8e7944a1b4 Updated EventEmitter reference 2018-03-21 14:09:58 +00:00
Richard Davey
3f0ee709f0 Renamed methods to avoid confliction with Animation component 2018-03-21 14:09:30 +00:00
orblazer
90cf919b10 Fix "object" types on Sound and Time 2018-03-21 15:02:10 +01:00
orblazer
dcd80375c0 Fix "object" types on Renderer and Scene 2018-03-21 14:41:17 +01:00
orblazer
11845f9d6d Fix "object" types on Physics and Math 2018-03-21 14:15:25 +01:00
Richard Davey
d62dd0aa62
Merge pull request #3438 from jmcriat/patch-2
(WebGL) updating currentScissor on game.resize
2018-03-21 12:52:06 +00:00
orblazer
0c1ced8d86 Fix "object" types on Loader 2018-03-21 13:03:14 +01:00
orblazer
439df07fd5 Fix "object" type on GameObjects and Input 2018-03-21 12:19:31 +01:00
Richard Davey
db613c793a Merge branch 'master' of https://github.com/photonstorm/phaser 2018-03-21 03:17:00 +00:00
Richard Davey
8a3f06c898 Todo note 2018-03-21 03:16:55 +00:00
Richard Davey
786d181a91 Sorted the components 2018-03-21 03:16:49 +00:00
Richard Davey
2f86100f87 MatterGameObject is a new function, available via the Matter Factory in this.matter.add.gameObject, that will inject a Matter JS Body into any Game Object, such as a Text object. 2018-03-21 03:16:36 +00:00
Richard Davey
5cae6d38b3 Matter.SetBody and SetExistingBody will now set the origin of the Game Object to be the Matter JS sprite.xOffset and yOffset values, which will auto-center the Game Object to the origin of the body, regardless of shape. 2018-03-21 03:16:01 +00:00
José Maria
f9e978a2bd
(WebGL) updating currentScissor on game.resize
with the array being update it solves the issue with the global background not being fully draw after resizing the game.
2018-03-20 23:38:00 -03:00
orblazer
4f7f2b8981 Fix RemoveCallback call on Group 2018-03-21 00:32:13 +01:00
orblazer
c5d4c0a9d2 Fix Vector2 types 2018-03-20 23:51:54 +01:00
orblazer
e60d573912 Fix "object" types in Actions 2018-03-20 23:36:41 +01:00
orblazer
5a518f2e5f Fix "object" types on Camera and GameObjecs 2018-03-20 23:28:26 +01:00
Richard Davey
d329724ae5 Added the ComputedSize component to the Text Game Object, which allows Text.getBounds, and related methods, to work again instead of returning NaN. 2018-03-20 19:00:48 +00:00
Richard Davey
28206e872f
Merge pull request #3433 from orblazer/fix-types
Fix "any" types
2018-03-20 16:28:43 +00:00
orblazer
7fba122321 Fix "any" types 2018-03-20 17:15:49 +01:00
Richard Davey
31bf979eb2
Merge pull request #3432 from orblazer/fix-types
Fix nullable and multiple types
2018-03-20 15:31:17 +00:00
Felipe Alfonso
701d43b3c3 TransformNode Implemented for nested transformations 2018-03-20 12:15:14 -03:00
orblazer
44103dc475 Fix remaining multiple types 2018-03-20 16:12:42 +01:00
orblazer
9375bb0530 Fix multiple types on Tilemaps 2018-03-20 16:11:33 +01:00
orblazer
dca7996179 Fix multiple types on Physics, Texture and Input 2018-03-20 16:10:19 +01:00
orblazer
7e05b333a0 Fix multiple types on Math 2018-03-20 16:06:30 +01:00
orblazer
8a9223811f Fix multiple types on Geom 2018-03-20 16:01:08 +01:00
orblazer
37b6fc5862 Fix many multiple types 2018-03-20 15:58:02 +01:00
orblazer
3cb00c85c9 Fix multiple types on Actions 2018-03-20 15:57:12 +01:00
orblazer
87633fdfad Fix multiple types on GameObjects 2018-03-20 15:56:31 +01:00
orblazer
4cff464555 Fix nullable types 2018-03-20 15:36:03 +01:00
orblazer
30f410d1d3 Fix types in Tilemaps 2018-03-20 12:36:35 +01:00
Richard Davey
b6f2c80ae6 Groups will now listen for a destroy event from any Game Object added to them, and if received will automatically remove that GameObject from the Group. Fix #3418 2018-03-20 01:08:45 +00:00
Richard Davey
cb5b12e9d3 The GameObject destroy event is now emitted at the start of the destroy process, before things like the body or input managers have been removed, so you're able to use the event handler to extract any information you require from the GameObject before it's actually disposed of. Previously, the event was dispatched at the very end of the process. 2018-03-20 01:05:53 +00:00
Richard Davey
8d7ed97d38 Removed const because already merged into namespace (#3417) 2018-03-20 00:37:10 +00:00
Richard Davey
3591edcb73
Merge pull request #3417 from rexrainbow/master
Bug fix: font might not sync to context
2018-03-20 00:34:51 +00:00
Richard Davey
64fdbc3040 Graphics.alpha was being ignored in the WebGL renderer and is now applied properly to strokes and fills. Fix #3426 2018-03-20 00:27:39 +00:00
Richard Davey
75bb9d92a9 Camera.fadeIn is a new method that will fade the camera in from a given color (black by default) and then optionally invoke a callback. This is the same as using Camera.flash but with an easier to grok method name. Fix #3412 2018-03-20 00:10:55 +00:00
Richard Davey
00a3f71859 Modified camera effect durations and prevented callbacks from being overwritten 2018-03-19 23:53:03 +00:00
Richard Davey
18c327e743 Effect callbacks now pass the camera. Tidied up potential infinity divides. 2018-03-19 23:29:15 +00:00
Richard Davey
efc5a12f75
Merge pull request #3424 from pixelscripter/master
Added callback methods to Camera2D effects: Shake, Fade and Flash
2018-03-19 23:08:55 +00:00
orblazer
fa13b597e3 Add more callbacks 2018-03-19 23:08:05 +01:00
orblazer
1e8311e1ab Add callbacks on Dom and Data 2018-03-19 22:43:48 +01:00
orblazer
33e49a4416 Add callbacks on Boot, Actions and Create 2018-03-19 22:37:47 +01:00
orblazer
b4a30b8e43 Add callbacks on GameObjects 2018-03-19 22:27:16 +01:00
Jeroen Reurings
ed3dc2b9b4 Added @since 3.3.0 to new callback method comments. 2018-03-19 22:25:19 +01:00
orblazer
41d7c4b715 Add callbacks on Input and Geom 2018-03-19 22:12:11 +01:00
orblazer
f30218d3d3 Add callbacks on Physics 2018-03-19 21:42:07 +01:00
orblazer
8fdedabaeb Add callbacks on Renderer 2018-03-19 21:41:24 +01:00
Jeroen Reurings
6ada1ec2f3 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-03-19 20:31:10 +01:00
orblazer
bf630f7d57 Fix types in JSDocs 2018-03-19 19:49:14 +01:00
Jeroen Reurings
a759266064 Changed default values of effect callbacks to null instead of undefined;
Removed @since JSDoc comments for newly added class methods (because it's still unknown in which version they will be added).
2018-03-19 19:38:43 +01:00
orblazer
6a4fda392c Fix Object type in DataManager 2018-03-19 19:03:00 +01:00
Richard Davey
ff7119dfc1
Merge pull request #3422 from orblazer/fix-types
Fix types and begin object TypeDef
2018-03-19 17:16:45 +00:00
orblazer
45158c2fbd Update JSDoc on Animations and Boot 2018-03-19 18:13:33 +01:00
Richard Davey
4de9719fbe Fixed jsdoc types 2018-03-19 17:05:29 +00:00
Richard Davey
15579d7350 Fixed jsdocs 2018-03-19 17:01:53 +00:00
Richard Davey
968dc05eae Triangle.getLineA/B/C now returns a Line instead of an untyped object. It also now has an optional argument that allows you to pass a Line in to be populated, rather than creating a new one. 2018-03-19 16:51:39 +00:00
Richard Davey
4704745ac6 Optional vec2. 2018-03-19 16:47:43 +00:00
Richard Davey
917dc8f8be Rectangle.getLineA/B/C/D now returns a Line instead of an untyped object. It also now has an optional argument that allows you to pass a Line in to be populated, rather than creating a new one. 2018-03-19 16:47:34 +00:00
Richard Davey
3eef3213be Spacing 2018-03-19 16:34:39 +00:00
Richard Davey
d551ef3d29 Added RayDef 2018-03-19 16:34:33 +00:00
Richard Davey
034161bd66 Line.getPointA and Line.getPointB now return Vector2 instances instead of un-typed objects. 2018-03-19 16:34:22 +00:00
orblazer
0ca95676ba Update JSDoc on Cameras 2018-03-19 17:21:25 +01:00
orblazer
13324dd04f Update JSDoc on Create 2018-03-19 17:03:32 +01:00
orblazer
abf63cc33e Update JSDoc on Curves 2018-03-19 16:53:55 +01:00
orblazer
e2ab82c7b1 Fix types on Data 2018-03-19 16:37:01 +01:00
orblazer
1933547140 Fix types on DOM 2018-03-19 16:29:26 +01:00
orblazer
94d92910cb Update JSDoc on Display (object types) 2018-03-19 16:22:51 +01:00
Jeroen Reurings
b27130c8a6 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-03-19 16:22:16 +01:00
Jeroen Reurings
9006f19f41 Added callbacks to Shake, Fade and Flash effects, so you don't have to use a delayed call to trigger something after an effect is completed;
Moved the shake function next to the other effect functions.
2018-03-19 16:21:48 +01:00
Richard Davey
19a08286c0 More types added 2018-03-19 15:01:14 +00:00
Richard Davey
876911fd32 Fixed var error 2018-03-19 13:50:23 +00:00
Richard Davey
620bcc6ae5 jsdoc fixes and additions 2018-03-19 13:45:00 +00:00
Richard Davey
a78651ab12 Removed un-used properties and fixed jsdoc types 2018-03-19 13:33:02 +00:00
Richard Davey
d0d05fa76e Added descriptions and fixed some types 2018-03-19 13:22:30 +00:00
orblazer
fa63a9090a Update JSDoc on Display 2018-03-19 14:03:41 +01:00
orblazer
ddf2f748cd Update JSDoc on Animation 2018-03-19 13:54:20 +01:00
orblazer
87d6cdaff8 Update JSDoc on GameObjects 2018-03-19 13:50:32 +01:00
orblazer
0b1078fdb8 Update JSDoc on Input 2018-03-19 13:43:19 +01:00
orblazer
679253f591 Update JSDoc on Math 2018-03-19 13:06:46 +01:00
orblazer
0e06dcf3a1 Update JSDoc on Geom 2018-03-19 13:05:23 +01:00
orblazer
90def456f2 Update JSDoc on GameObjects 2018-03-19 12:54:31 +01:00
Richard Davey
4fe6a25117 Added jsdoc data types 2018-03-19 11:25:46 +00:00
Hua
1dc98b586f Expose FILE_CONST
Expose FILE_CONST for 3rd party developer
2018-03-19 13:46:16 +08:00
orblazer
253f3b1896 Fix import on array utils 2018-03-19 02:14:22 +01:00
orblazer
454849d67d Update JSDoc on Tweens and Utils 2018-03-19 02:07:03 +01:00
orblazer
cb708dcc32 Update JSDoc on Textures, Tilemaps and Time 2018-03-19 02:03:17 +01:00
orblazer
6b5dc62ad1 Update JSDoc on Structs 2018-03-19 02:00:21 +01:00
orblazer
6a4dd8db8f Update JSDoc on Renderer and Scene 2018-03-19 01:59:59 +01:00
orblazer
449506db87 Update JSDoc on Loader 2018-03-19 01:54:19 +01:00
orblazer
c3fb72780b Update JSDoc on Cameras 2018-03-19 01:49:29 +01:00
orblazer
ae15eca7bd Update JSDoc on "Matter.JS" physics 2018-03-19 01:10:32 +01:00
orblazer
2da6a2bffe Update JSDoc on "Impact" physics 2018-03-19 00:42:09 +01:00
orblazer
af3c03a3cb Update JSDoc on "Arcade" physics 2018-03-19 00:29:46 +01:00
Rex
4125e74550 Bug fix: font might not sync to context
Sync font before runWordWrap
2018-03-18 22:53:02 +08:00
Richard Davey
edeb63ebbd eslint fix 2018-03-18 14:21:53 +00:00
Richard Davey
cc0998660e Updated jsdocs 2018-03-18 13:43:37 +00:00
Richard Davey
3d4be64331 Testing MatterGameObject 2018-03-17 18:07:05 +00:00
Richard Davey
7e26fdb907 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-03-17 17:51:54 +00:00
Richard Davey
45194658fb Added new Actions 2018-03-17 17:51:27 +00:00
Richard Davey
cb110e4977 Actions.SetXY has 2 new arguments: index and direction. 2018-03-17 17:51:12 +00:00
Richard Davey
c67882e900 Actions.SetY has 2 new arguments: index and direction. 2018-03-17 17:50:13 +00:00
Richard Davey
80560b7b3c Actions.SetX has 2 new arguments: index and direction. 2018-03-17 17:49:49 +00:00
Richard Davey
7052f981b5 Actions.SetVisible has 2 new arguments: index and direction. 2018-03-17 17:49:23 +00:00
Richard Davey
8f0ee99f23 Actions.SetScaleY has 2 new arguments: index and direction. 2018-03-17 17:47:37 +00:00
Richard Davey
fe7d72b326 Actions.SetScaleX has 2 new arguments: index and direction. 2018-03-17 17:47:26 +00:00
Richard Davey
84cc2c7aa2 Actions.SetScale has 2 new arguments: index and direction. 2018-03-17 17:47:07 +00:00
Richard Davey
6f3b2cf9a5 Actions.SetOrigin has 4 new arguments: stepX, stepY, index and direction. 2018-03-17 17:46:26 +00:00
Richard Davey
fa6b3bba64 Actions.SetRotation has 2 new arguments: index and direction. 2018-03-17 17:45:38 +00:00
Richard Davey
e8fe38b560 Actions.SetDepth has 2 new arguments: index and direction. 2018-03-17 17:45:19 +00:00
Richard Davey
bdddad818a Actions.SetBlendMode has 2 new arguments: index and direction. 2018-03-17 17:43:04 +00:00
Richard Davey
f47119be08 Actions.ScaleXY has 4 new arguments: stepX, stepY, index and direction. 2018-03-17 17:41:30 +00:00
Richard Davey
30f76e384d Fixed docs 2018-03-17 17:41:07 +00:00
Richard Davey
5f196aa81f Actions.SetAlpha has 2 new arguments: index and direction. 2018-03-17 17:34:41 +00:00
Richard Davey
2935e59cf6 Actions.ScaleY has 3 new arguments: step, index and direction. 2018-03-17 17:34:13 +00:00
Richard Davey
fd3aad5f08 Actions.ScaleX has 3 new arguments: step, index and direction. 2018-03-17 17:34:02 +00:00
Richard Davey
47287bc466 Actions.Rotate has 3 new arguments: step, index and direction. 2018-03-17 17:33:02 +00:00
Richard Davey
a282b76d07 Actions.PropertyValueSet is a new action that will set any property of an array of objects to the given value, using an optional step value, index and iteration direction. Most Actions have been updated to use this internally. 2018-03-17 17:32:19 +00:00
Richard Davey
263086fd6a Actions.PropertyValueInc is a new action that will increment any property of an array of objects by the given amount, using an optional step value, index and iteration direction. Most Actions have been updated to use this internally. 2018-03-17 17:31:38 +00:00
Richard Davey
5be0932fae Actions.IncXY has 4 new arguments: stepX, stepY, index and direction. 2018-03-17 17:25:25 +00:00
Richard Davey
85d4b036b3 Actions.IncY has 3 new arguments: step, index and direction. 2018-03-17 17:18:28 +00:00
Richard Davey
2d09f69410 Actions.IncX has 3 new arguments: step, index and direction. 2018-03-17 17:18:16 +00:00
Richard Davey
70058392d3 Actions.IncAlpha has 3 new arguments: step, index and direction. 2018-03-17 17:17:41 +00:00
Richard Davey
eb0fb84563 Actions.Angle has 3 new arguments: step, index and direction. 2018-03-17 17:17:18 +00:00
Richard Davey
389669e21b Updated jsdocs 2018-03-17 17:16:26 +00:00
Richard Davey
ccbf399dc2 Actions.GetLast will return the last element in the items array matching the conditions. 2018-03-17 17:16:11 +00:00
Richard Davey
a8886a60d3 Actually round the value. 2018-03-17 17:03:30 +00:00
Richard Davey
46e9dbd05a Fixed left / right rotation and exposed via namespace
Phaser.Utils.Array.Matrix.RotateLeft actually rotated to the right (thanks @Tomas2h)
Phaser.Utils.Array.Matrix.RotateRight actually rotated to the left (thanks @Tomas2h)
2018-03-17 17:03:15 +00:00
Arkadiusz Buras
e981932db1
Remove scene key in SceneManager 2018-03-17 13:42:42 +01:00
Richard Davey
2ea8489716 Tidying up 2018-03-16 18:08:51 +00:00
Richard Davey
3b8da57008 jsdoc fixes 2018-03-16 17:38:15 +00:00
Richard Davey
1b20232bd1 Exposed consts and added jsdocs 2018-03-16 17:35:01 +00:00
Richard Davey
05a4385cd7 jsdoc fixes 2018-03-16 17:29:39 +00:00
Richard Davey
625394a24c Don't reset the callbacks unless xhrLoader is set 2018-03-16 17:00:45 +00:00
Richard Davey
9832befeea Fixed camera y 2018-03-16 15:47:14 +00:00
Richard Davey
b2d062b0bd LoaderPlugin.progress and the corresponding event now factor in both the list size and the inflight size when calculating the percentage complete. Fix #3384 2018-03-16 15:01:39 +00:00
Richard Davey
b6b03b85bd The InputPlugin.processOverOutEvents method wasn't correctly working out the total of the number of objects interacted with, which caused input events to be disabled in Scenes further down the scene list if something was being dragged in an upper scene. Fix #3399 2018-03-16 14:57:19 +00:00
Richard Davey
4ab98eb492 The TweenManager will now check the state of a tween before playing it. If not in a pending state it will be skipped. This allows you to stop a tween immediately after creating it and not have it play through once anyway. Fix #3405 2018-03-16 14:31:49 +00:00
Richard Davey
a524dc44b0 Expose constants. Fix #3387 2018-03-16 13:29:30 +00:00
Richard Davey
fbec8f978c You can now specify all of the renderer config options within a render object in the config. If no render object is found, it will scan the config object directly for the properties. 2018-03-16 13:22:52 +00:00
Richard Davey
bce89313c1 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-03-16 13:10:51 +00:00
Richard Davey
1304e0066c Correct config property 2018-03-16 13:10:41 +00:00
Richard Davey
64c1ec1e2d
Merge pull request #3360 from allanbreyes/fix/timeline.resetTweens
Fix error when calling `timeline.resetTweens()`
2018-03-16 13:04:58 +00:00
Richard Davey
a6d742227c
Merge pull request #3394 from stuff/patch-2
pass data to the manager queue when starting a scene
2018-03-16 13:00:25 +00:00
Richard Davey
7a8e4cf5e1
Merge pull request #3366 from samme/feature/world-wrap
Add Arcade.World wrap methods and Actions.WrapInRectangle
2018-03-16 12:58:16 +00:00
Richard Davey
053d7e14b1
Merge pull request #3398 from bigbozo/zoomed-camera-tilemap
Fixed Tile-Culling for Zoomed Camera
2018-03-16 12:56:14 +00: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
Richard Davey
e850ddcb72
Merge pull request #3397 from bigbozo/master
Fix [CameraManager].getCamera(<name>)
2018-03-16 12:53:04 +00:00
Richard Davey
19ea528c99
Merge pull request #3392 from samme/feature/group-create-active
Add `active` to Group create methods
2018-03-16 12:51:21 +00:00
Richard Davey
ee1e4f1e90 InputManager.hitTest will now factor the game resolution into account, stopping the tests from being offset if resolution didn't equal 1. #3376 2018-03-16 12:49:02 +00:00
Richard Davey
77357dbde0 jsdoc fix #3377 2018-03-16 12:39:39 +00:00
Richard Davey
bd40c7844d
Merge pull request #3377 from jmcriat/patch-1
set default gamepad button threshold to 1
2018-03-16 12:38:36 +00:00
Richard Davey
588b8f79a3
Merge pull request #3393 from samme/feature/createSceneFromObject
Remove 'shutdown' and 'destroy' callbacks in createSceneFromObject
2018-03-16 12:34:36 +00:00
Richard Davey
c9ad488b18
Merge pull request #3403 from rexrainbow/master
Fix bug in data.merge()
2018-03-16 12:33:13 +00:00
Richard Davey
cac7aea9ca
Merge pull request #3401 from pixelpicosean/fix-arcade-circle-debug-draw
Fix arcade circle debug draw
2018-03-16 12:31:50 +00:00
Richard Davey
66c40dda69 eslint fix 2018-03-16 12:30:39 +00:00
Hua
f16cf72826 Fix bug
Copy value of key, instead of the reference of data object
2018-03-16 16:57:25 +08:00
Sean Bohan
4cde28fecd Forgot to devide width by 2 2018-03-16 14:02:41 +08:00
Sean Bohan
72e82ecf48 Fix debug draw of scaled arcade body 2018-03-16 14:02:41 +08:00
Richard Davey
dd4e00007f Added antialias config value 2018-03-16 00:52:21 +00:00
Richard Davey
78b72c55be Merge branch 'master' of https://github.com/photonstorm/phaser 2018-03-16 00:46:42 +00:00
Richard Davey
1fea31bac8 Fixed package names 2018-03-16 00:46:39 +00:00
Felipe Alfonso
2238a132e2 Context Creationg Config attributes are default to Khronos spec for webgl context creation 2018-03-15 19:55:52 -03:00
Richard Davey
0c1c16deba Used new config values, fixed eslint formatting and floored dimensions 2018-03-15 21:15:39 +00:00
Richard Davey
36f5ca47a9 Added new config values
* Game.Config.preserveDrawingBuffer is now passed to the WebGL Renderer (default `false`).
* Game.Config.failIfMajorPerformanceCaveat is now passed to the WebGL Renderer (default `false`).
* Game.Config.powerPreference is now passed to the WebGL Renderer (default `default`).
* Game.Config.pixelArt is now passed to the WebGL Renderer as the antialias context property (default `false`).
2018-03-15 21:15:12 +00:00
Bugi Görtz
077d933bbb Fixed Tile-Culling for Zoomed Camera
The fix from https://github.com/photonstorm/phaser/pull/3354/ leads to some tiles getting culled when camera is zoomed as the camera.scrollX/camera.scrollY-Properties are needed in unscaled Coordinates (World-Coordinates?) in CullTile.js

Error gets bigger with distance from (0|0)
2018-03-15 20:32:09 +01:00
Richard Davey
d286a932cd Merge branch 'master' of https://github.com/photonstorm/phaser 2018-03-15 17:27:33 +00:00
Richard Davey
19a17bcf63 Updating docs 2018-03-15 17:27:30 +00:00
Bugi Görtz
b977f096f8 fixed getCamera in CameraManager (2d/3d) to work correctly; forEach()-iterator doesn't return values
(https://hacks.mozilla.org/2015/04/es6-in-depth-iterators-and-the-for-of-loop/)
2018-03-15 17:12:06 +01:00
Bugi Görtz
5af8e745d1 fixed getCamera in CameraManager to work correctly; forEach()-construct can't return values
(https://hacks.mozilla.org/2015/04/es6-in-depth-iterators-and-the-for-of-loop/)
2018-03-15 16:58:05 +01:00
Michael Hadley
d966aaa412
Fixes #3395 2018-03-15 06:22:22 -05:00
Nicolas Challeil
53de26e572
pass data to the manager queue 2018-03-14 23:52:00 +01:00
samme
55ccf7f026 Remove unused callbacks in createSceneFromObject
Phaser never calls 'shutdown' or 'destroy' methods.
2018-03-14 13:28:04 -07:00
samme
731b006ec3 Add active to Group create methods
- Adds `active=true` argument to Group#create
- Adds `active=true` config value to Group#createMultiple etc.
2018-03-14 12:22:08 -07:00
Richard Davey
1d23aad976 TextStyle has two new properties: baselineX and baselineY which allow you to customize the 'magic' value used in calculating the text metrics. 2018-03-13 13:21:51 +00:00
Richard Davey
00a5ce9a03 Preparing for 3.3.0 2018-03-13 13:21:34 +00:00
José Maria
128691b50d
set default gamepad button threshold to 1
this.threshold = 0  was making all gamepad buttons to be always pressed down (this.pressed = true). 
this.threshold = 1 will correct the issue and in the case of analogue buttons it will only emit the event when the 'pressure' is at max.
2018-03-12 14:04:04 -03:00
Richard Davey
247e8b9337 Text.setFixedSize was incorrectly setting the text property instead of the parent property. Fix #3375 2018-03-12 16:34:21 +00:00
Allan Reyes
a08c75bb06 Delegate Timeline#makeActive to TweenManager
This fixes a bug when calling Timeline#resetTweens() while the tweens
are pending removal or completed. Delegating the #makeActive method
here was chosen to:
- Follow "tell, don't ask" (pragprog.com/articles/tell-dont-ask)
- Prevent an additional branch conditional in Tween.js
- Prevent a Law of Demeter violation, e.g.

        // src/tweens/tween/Tween.js
        if (this.parentIsTimeline) // "asking"
        {
            this.parent.manager.makeActive(this); // LoD violation
        }
        else
        {
            this.parent.makeActive(this);
        }
2018-03-12 09:31:00 -07:00
Richard Davey
1ebf639de3 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-03-12 16:30:16 +00:00
Felipe Alfonso
be81ddfd51 Fixed issue on RenderTexture canvas clear. The clearRect was affected by previous transformations 2018-03-12 13:30:05 -03:00
Richard Davey
267e8b4b84 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-03-12 16:27:49 +00:00
Felipe Alfonso
9585a1c78b Fixed issue of render texture only rendering the first frame. It should've read the cut properties 2018-03-12 13:27:32 -03: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
70d9c7d728 Always return the parent Text object, no matter the flow 2018-03-12 16:13:42 +00:00
Richard Davey
e2ad743b92 _this fix 2018-03-12 14:52:35 +00:00