Commit graph

10848 commits

Author SHA1 Message Date
Richard Davey
c741469894 Added optional DOM Container parent and config values 2018-07-18 17:22:52 +01:00
Richard Davey
20f1b37256 eslint fix and log update 2018-07-18 15:06:56 +01:00
Richard Davey
b6a1033dbd Fixed Camera FX for scaled camera sizes 2018-07-18 15:03:06 +01:00
Richard Davey
14ba51d928 Added Text.setResolution methods. 2018-07-18 14:45:10 +01:00
Richard Davey
1b9f5dc76d Updated change log 2018-07-18 14:32:55 +01:00
Richard Davey
25e4993e6f Added x and y getters and new scaled viewport values 2018-07-18 14:32:47 +01:00
Richard Davey
0db16889e6 Use new Camera viewport values 2018-07-18 14:32:06 +01:00
Richard Davey
3bc6eba718 Removed incorrect resolution multiplication and used updated camera viewport 2018-07-18 14:31:45 +01:00
Richard Davey
fb4f28bb01 Testing resolution input 2018-07-17 23:26:40 +01:00
Richard Davey
1c473afa84 Cameras draw their backgrounds correctly at higher resolutions 2018-07-17 23:26:30 +01:00
Richard Davey
e29671282b Updated change log 2018-07-17 22:44:28 +01:00
Richard Davey
e0fdc33928 SM mock 2018-07-17 22:44:21 +01:00
Richard Davey
94540e112e Text supports high dpi resolution for its internal canvas 2018-07-17 22:44:12 +01:00
Richard Davey
6ddd1644f2 Canvas now uses game config resolution 2018-07-17 22:43:52 +01:00
Richard Davey
16d597c983 Fixed jsdoc references 2018-07-17 11:43:09 +01:00
Richard Davey
5ada70409e Modified tile sizes. 2018-07-16 15:20:46 +01:00
Richard Davey
8f3de12f69 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-07-16 15:16:32 +01:00
Richard Davey
73292c892a Updated change log 2018-07-16 15:16:29 +01:00
Richard Davey
7ec36752dc
Merge pull request #3830 from kelostrada/master
Update AudioFile.js
2018-07-16 14:57:36 +01:00
Richard Davey
0cc52f6002 Swapped 4 ternaries for a single conditional #3834 2018-07-16 14:55:51 +01:00
Richard Davey
f723d0e18a
Merge pull request #3834 from tarsupin/patch-2
Major Optimization for Culling Tilemaps
2018-07-16 14:44:35 +01:00
Richard Davey
c8b058c26a Renamed object to avoid TS defs conflict 2018-07-16 10:28:28 +01:00
tarsupin
ad24a0b8ec
Removed repetative code. 2018-07-14 20:09:36 -05:00
tarsupin
00a38f744a
Switching tabs to spaces 2018-07-14 14:41:13 -05:00
tarsupin
9ac505d5cc
Build is requiring me to pre-declare x, y, tile. 2018-07-14 14:38:19 -05:00
tarsupin
4fa3dc7159
Update CullTiles.js 2018-07-14 14:30:15 -05:00
tarsupin
e3d64c63b3
Major Optimization for Culling Tilemaps
Refine the loop to only scan through the drawn boundaries that are being tested against (except when skipping cull). This eliminates a huge bottleneck / lookup time from the original loop each frame.

The update should affect tilemaps exponentially based on their size. It reduced my culling time to 1/70th for 1000x1000 tilemaps, and by about 1/20th on 250x250 tilemaps. It also reduced my requestAnimationFrame time from over 16ms per frame to ~1ms for the larger map.
2018-07-14 14:14:55 -05:00
Bartosz Kalinowski
264c82fbcb
Update AudioFile.js
fix error
2018-07-14 07:50:00 +02:00
Richard Davey
41f9277803 Preparing for 3.12 development 2018-07-13 17:28:08 +01:00
Richard Davey
05e6f65d51 3.11 Release 2018-07-13 11:37:57 +01:00
Richard Davey
9a82bd33e5 Updated change log 2018-07-13 11:14:29 +01:00
Richard Davey
42c3fc5f6b Better normal map handling 2018-07-13 11:14:22 +01:00
Richard Davey
66ee2ac973 Bumped version 2018-07-13 11:14:13 +01:00
Richard Davey
eee96cd2d3 setPipeline returns the Game Object, not the pipeline, to be consistent. 2018-07-13 11:14:08 +01:00
Richard Davey
4843d7eefe Pipelines have a boot handler now. 2018-07-13 11:13:46 +01:00
Richard Davey
61954dedcb Added checkDown method and related properties. 2018-07-13 11:13:32 +01:00
Richard Davey
64ceb790e3 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-07-13 08:31:06 +01:00
Richard Davey
944ca91e85 Updated log 2018-07-13 08:30:57 +01:00
Richard Davey
aa9ba84766
Merge pull request #3741 from TadejZupancic/patch-5
Zone inside a Container fix
2018-07-13 08:30:13 +01:00
Richard Davey
b4ddd44105 Added cullCallback support - the final step in culling. Don't like ours? Roll your own! 2018-07-12 17:06:36 +01:00
Richard Davey
8981cf4a03 Swapped from vec2 to explicit values for cullPadding 2018-07-12 16:51:54 +01:00
Richard Davey
b03d3ff783 Added support for cull padding 2018-07-12 16:44:36 +01:00
Richard Davey
52f50028c3 Updated change log 2018-07-12 16:32:36 +01:00
Richard Davey
e66cf4e00b Adjusted bounds +- 1 tile 2018-07-12 16:32:25 +01:00
Richard Davey
4b607a3cca Removed cull tests 2018-07-12 16:32:12 +01:00
Richard Davey
7ea53767cd Updated change log 2018-07-12 16:13:00 +01:00
Richard Davey
12c6736c67 Stats recorded in tilesDrawn and tilesTotal. 2018-07-12 16:12:55 +01:00
Richard Davey
89db84377e Added skipCull property and setSkipCull method 2018-07-12 15:31:25 +01:00
Richard Davey
a8fa98e39b Skip all rendering if alpha <= 0 2018-07-12 15:31:00 +01:00
Richard Davey
646861425f Added Camera.worldView property and adjusted it to the correct values each frame. 2018-07-12 15:08:29 +01:00