Commit graph

12196 commits

Author SHA1 Message Date
Richard Davey
11ed074450 Refactoring how events are handled internally and in the docs 2019-01-15 14:37:24 +00:00
Richard Davey
79dc611b95 Quote the font family in Text objects. 2019-01-12 16:31:48 +00:00
Richard Davey
58c8ae8202 JSDoc update 2019-01-12 12:44:29 +00:00
Richard Davey
aa3b80371b Should be envelop, not envelope :) 2019-01-12 12:36:21 +00:00
Richard Davey
661b920dda Fixed parent style assignment 2019-01-12 00:51:54 +00:00
Richard Davey
91b35afd9f Update Config.js 2019-01-12 00:51:41 +00:00
Richard Davey
d161c7f253 Corrected jsdocs 2019-01-11 19:16:43 +00:00
Richard Davey
2e05cab998 Added setZoom method. 2019-01-11 19:16:35 +00:00
Richard Davey
bf942f66d1 Fixed RESIZE update handling 2019-01-11 18:25:47 +00:00
Richard Davey
ed6e3f596f Fixed min size clamp. 2019-01-11 18:05:43 +00:00
Richard Davey
9e74913c74 Added input handling, resize events, orientation locks and more. 2019-01-11 18:00:32 +00:00
Richard Davey
0b90632c62 Changed to 2000 to match CE 2019-01-11 18:00:12 +00:00
Richard Davey
21342dc6e9 Now uses consts 2019-01-11 18:00:02 +00:00
Richard Davey
ab3d8aaf2a Added orientation consts 2019-01-11 17:59:52 +00:00
Richard Davey
988d1a2922 Update CHANGELOG.md 2019-01-11 16:47:31 +00:00
Richard Davey
9911802272 Removed resize handling.
* The `Game.resize` method has been removed as it's no longer required. You should now call `ScaleManager.resize` instead.
* The Game will no longer dispatch the `resize` event. You should now listen for this event from the Scale Manager instead.
2019-01-11 16:47:27 +00:00
Richard Davey
a9ddf46134 Update BaseCamera.js
* `BaseCamera.config` has been removed as it's no longer required.
* `BaseCamera.scaleManager` is a new property that references the Scale Manager and is used internally for size checks.
2019-01-11 16:45:25 +00:00
Richard Davey
d7e7feed19 Dimensions are now set in the onResize handlers. 2019-01-11 16:44:08 +00:00
Richard Davey
c34648bbce Removed the resize method. 2019-01-11 16:43:39 +00:00
Richard Davey
de5fed7d80 Removed the resize method. 2019-01-11 16:43:25 +00:00
Richard Davey
6d8b6b15de Added support for autoCenter and resizeInterval configs 2019-01-11 15:58:33 +00:00
Richard Davey
814932b9f7 Added centering constants 2019-01-11 15:58:06 +00:00
Richard Davey
49c2868746 All default width/height values are now taken from the Scale Manager, not the Game Config 2019-01-11 15:57:57 +00:00
Richard Davey
711180012c Recoded orientation check to avoid use of VisualBounds 2019-01-11 12:12:43 +00:00
Richard Davey
98d0ae62a4 Moved iOS GetInnerHeight to its own function 2019-01-11 12:12:30 +00:00
Richard Davey
83752c9a99 Update CHANGELOG.md 2019-01-11 12:12:12 +00:00
Richard Davey
9bed15bc53 Moving lots of functionality to the Scale Manager
* `InputManager.scaleManager` is a new property that is a reference to the Scale Manager. This is populated in the `boot` method.
* The `InputManager.transformX` method has been removed. This is now available in the ScaleManager.
* The `InputManager.transformY` method has been removed. This is now available in the ScaleManager.
* The `InputManager.scale` property has been removed. This is now available in the ScaleManager under `displayScale`.
* The `InputManager.resize` method has been removed as this process is now handled by the ScaleManager.
* The `InputManager.updateBounds` method has been removed as this process is now handled by the ScaleManager.
* The `InputManager.getOffsetX` method has been removed as it's no longer required.
* The `InputManager.getOffsetY` method has been removed as it's no longer required.
* The `InputManager.getScaleX` method has been removed as it's no longer required.
* The `InputManager.getScaleY` method has been removed as it's no longer required.
2019-01-11 12:12:06 +00:00
Alexander Higgins
6afdfa6341 Reverted package-lock.json 2019-01-10 21:14:51 -05:00
Alexander Higgins
bc602949b8 Added reference constants to Vector2 and Vector3 2019-01-10 21:11:26 -05:00
Richard Davey
caca07699d Update CHANGELOG.md 2019-01-10 13:54:10 +00:00
Richard Davey
728fb01343 Correctly using zoom and resolution across all scale modes. 2019-01-10 13:43:33 +00:00
Richard Davey
ab75b1ad27 Refactoring Game.resize 2019-01-10 13:43:17 +00:00
Richard Davey
44f69ea7fa Removed autoResize, tidied up the resize method and init. 2019-01-10 13:43:09 +00:00
Richard Davey
82267ce14c Removed duplicate JSDoc typedef. 2019-01-10 13:42:53 +00:00
Richard Davey
175af00c60 Stores the new resolution, should it change (unlikely, but ...) 2019-01-10 13:42:11 +00:00
Richard Davey
e79404256f Removed autoResize. Dimensions now taken from Scale Manager. 2019-01-10 13:41:49 +00:00
Richard Davey
f6fd6b9f1d Removed baseScale as not needed. 2019-01-10 13:41:24 +00:00
Richard Davey
99b5cf90dc Cameras now factor in the resolution to their transforms 2019-01-10 13:41:07 +00:00
Richard Davey
63c2c73930 Finally using correct size :) 2019-01-10 13:40:41 +00:00
Richard Davey
5370e1e068 Removed autoResize as no longer needed. Added autoRound property. pixelArt is true if not set and if zoom > 1. 2019-01-10 13:40:28 +00:00
Richard Davey
aec555705f Testing difference between w/h and scale 2019-01-10 00:16:06 +00:00
Richard Davey
6d80772faf Get resolution from correct place 2019-01-10 00:15:29 +00:00
Richard Davey
04ea2798e9 Use gameSize 2019-01-10 00:15:20 +00:00
samme
87bd2e68d3 Queue 'late' colliding bodies for a second update
- Fixes #4154
- Fixes #4284
2019-01-09 12:56:32 -08:00
gomachan_7
be562abd83 Fix WebGLRenderer to apply transparent bg in config 2019-01-10 02:17:53 +09:00
Richard Davey
d690b70216 Working the Size component magic into the Scale Manager. 2019-01-09 17:14:00 +00:00
Richard Davey
f9f162f499 Default is now zero again. 2019-01-09 17:13:43 +00:00
Richard Davey
debe7ac82a Renamed consts to match Size component 2019-01-09 17:13:31 +00:00
Richard Davey
b3aeee0bd1 Use the new size properties 2019-01-09 17:13:22 +00:00
Richard Davey
8a8c4de557 Fixed expandParent config value and made the default 2019-01-09 17:13:06 +00:00