Commit graph

12930 commits

Author SHA1 Message Date
Richard Davey
b86d737e2e Game.getTime would return NaN because it incorrectly accessed the time value from the TimeStep. 2019-05-24 15:27:33 +01:00
Richard Davey
ec5f3d3a33 The TimeStep.step method no longer uses the time value passed to the raf callback, as it's not actually the current point in time, but rather the time that the main thread began at. Which doesn't help if we're comparing it to event timestamps. 2019-05-24 14:40:11 +01:00
samme
8e717d5588 Remove GroupClassTypeConstructor type 2019-05-23 15:10:40 -07:00
Richard Davey
b9ae4685ca Update CHANGELOG.md 2019-05-23 17:19:34 +01:00
Richard Davey
7073f39a19 Removed all of the DOM Callbacks, input queue and legacy input handling. Renamed methods from 'queue' to 'on' and tidied up internal content 2019-05-23 17:19:30 +01:00
Richard Davey
1d1c4e6543 Removed all input queue elements 2019-05-23 17:19:03 +01:00
Richard Davey
186887c920 Added lastAction property and self-invoke the reset method 2019-05-23 17:18:49 +01:00
Richard Davey
81c1ced2c1 Event Managers now have clearer handlers that check enabled directly 2019-05-23 17:18:16 +01:00
Richard Davey
22d6ec1e36 Removed inputQueue config option 2019-05-23 17:17:54 +01:00
Richard Davey
ee6506af8c The TimeStep will no longer set its frame property to zero in the resetDelta method. Instead, this property is incremented every step, no matter what, giving an accurate indication of exactly which frame something happened on internally. 2019-05-23 16:10:22 +01:00
Richard Davey
74247e1ad9
Create FUNDING.yml 2019-05-23 11:03:21 +01:00
Hua
cc7870906b Fix coding style 2019-05-23 17:30:04 +08:00
Hua
d1b31649ec Fix text align to right/center issue
Calculate text-width in fixedWidth mode
2019-05-23 17:22:51 +08:00
Hua
97b60efa21 Set canvas size equal to text object size
Canvas size might less than text object size, when `fixedWidth` and `fixedHeight` is set.
2019-05-23 16:54:32 +08:00
Richard Davey
8e4632fb51 Merge branch 'master' of https://github.com/photonstorm/phaser 2019-05-22 19:19:36 +01:00
Richard Davey
d2dac14f9f Update CHANGELOG.md 2019-05-22 19:19:32 +01:00
Benjamin
35776fcd2d JSDoc: Make createDynamicLayer() position optional 2019-05-22 19:18:54 +02:00
samme
6bda5739bc Warn when plugin entry is missing plugin property
#4533
2019-05-21 13:29:58 -07:00
Richard Davey
d7af904bfa Added Matter velocity, angularVelocity and force methods 2019-05-21 14:23:32 +01:00
Richard Davey
478d6989c5 Expose the Matter.Body module 2019-05-20 17:13:05 +01:00
Richard Davey
7bcd4955e2
Merge pull request #4539 from jorbascrumps/fix-arrow-fn-syntax
Removes arrow function syntax
2019-05-19 08:15:09 +01:00
jorbascrumps
648c0faed9 Removed arrow function syntax 2019-05-18 19:15:01 -04:00
Richard Davey
9959dce57e Passing a Frame object to Bob.setFrame would fail, as it expected a string or integer. It now checks the type of object, and if a Frame it checks to make sure it's a Frame belonging to the parent Blitter's texture, and if so sets it. Fix #4516 2019-05-17 14:00:39 +01:00
Richard Davey
3504819b33 The CameraManager would incorrectly destroy the default Camera in its shutdown method, meaning that if you used a fixed mask camera and stopped then resumed a Scene, the masks would stop working. The default camera is now destroyed only in the destroy method. Fix #4520 2019-05-17 13:54:55 +01:00
Richard Davey
0ac5d7b8d9 There was some test code left in the DOMElementCSSRenderer file that caused getBoundingClientRect to be called every render. This has been removed, which increases performance significantly for DOM heavy games. 2019-05-17 13:43:55 +01:00
Richard Davey
e23a86d45a The default BaseShader vertex shader has a new uniform uResolution which is set during the Shader init and load to be the size of the Game Object to which the shader is bound. 2019-05-16 17:44:59 +01:00
Richard Davey
f792fce9cb The default BaseShader vertex shader will now set the fragCoord varying to be the viewport height minus the y inPosition. This will give the correct y axis in the fragment shader, causing 'inverted' shaders to display normally when using the default vertex code. 2019-05-16 17:30:30 +01:00
Richard Davey
48bf3d2b5e Update CHANGELOG.md 2019-05-14 09:46:33 +01:00
Richard Davey
4693bfb859
Merge pull request #4524 from rexrainbow/master
Use `customHitArea` in condition
2019-05-14 09:45:20 +01:00
Richard Davey
48a9925ed1 Update CHANGELOG.md 2019-05-14 09:44:08 +01:00
Richard Davey
70b500cd28
Merge pull request #4519 from hizzd/master
Fixed separateCircle cause the position set NaN.
2019-05-14 09:42:27 +01:00
Richard Davey
725130bc40 Update CHANGELOG.md 2019-05-14 09:37:41 +01:00
Richard Davey
a29bf9905f Updated release version 2019-05-14 09:37:37 +01:00
Richard Davey
9f1946ec45 Tweens created in a paused state couldn't be started by a call to play. Fix #4525 2019-05-14 09:37:26 +01:00
Hua
fd454a1e9b Use customHitArea in condition
customHitArea has been added in 3.17.0, used in text game object
2019-05-14 10:12:32 +08:00
hizzd
4aa3d9f81a
Fixed separateCircle cause the position set NaN. 2019-05-11 20:52:57 +08:00
Richard Davey
06d1618e29 Preparing for 3.18 dev 2019-05-10 18:32:03 +01:00
Richard Davey
a854a96307 3.17 Release files 2019-05-10 16:38:07 +01:00
Richard Davey
f718cb8b94 Fixed Clean path 2019-05-10 16:31:52 +01:00
Richard Davey
c91ed91ce3 License link update 2019-05-10 16:15:04 +01:00
Richard Davey
fbeecd05ac Update README.md 2019-05-10 16:11:22 +01:00
Richard Davey
ca66db35ed Updated Change Log and README 2019-05-10 16:05:32 +01:00
Richard Davey
9a4ea21ca9 Updated Parser and README 2019-05-10 16:05:20 +01:00
Richard Davey
9ed98e97a8 3.17 Release TS Defs 2019-05-10 16:05:08 +01:00
Richard Davey
5c60bb75f3 Update README.md 2019-05-10 14:39:35 +01:00
Richard Davey
f9315bac3f Updated Scene config types 2019-05-10 14:39:35 +01:00
Richard Davey
7deaa9e2b2
Merge pull request #4517 from antoine-pous/patch-1
JSDoc fix returned object type
2019-05-10 14:19:36 +01:00
Richard Davey
5dfea01d61 Update CHANGELOG.md 2019-05-10 12:28:12 +01:00
Richard Davey
e8f6bae7cb A Body with damping and drag enabled would fail to move if it went from zero velocity to a new velocity inside an update loop. It will now reset its speed accordingly and retain its new velocity 2019-05-10 12:28:06 +01:00
Richard Davey
78d1b75872 Add the modes back in, as we need them internally 2019-05-10 12:27:59 +01:00