You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,7 @@ View sample usage in this [Phaser ES6 Boilerplate](https://github.com/goldfire/p
14
14
* Integrated with Webpack for automatic cache-busting.
15
15
* Supports all filetypes.
16
16
* Supports asset postfix for retina support ('@2x', '@3x', etc).
17
+
* Supports automatic loading of compressed textures (PVRTC, S3TC, ETC1).
17
18
18
19
## Install
19
20
@@ -98,6 +99,16 @@ The font loader uses [Web Font Loader](https://github.com/typekit/webfontloader)
98
99
99
100
All sprite/atlas files are loaded as JSON hashes (which can be output using [TexturePacker](https://www.codeandweb.com/texturepacker), [Shoebox](http://renderhjs.net/shoebox/) and others). All you have to specify in the manifest is the image filename, but you'll also need to include the JSON hash file alongside it, which will automatically get loaded and used.
100
101
102
+
## Loading Compressed Textures (Phaser-CE 2.7.7+)
103
+
104
+
[Compressed textures](https://phaser.io/tutorials/advanced-rendering-tutorial/part6) can be great to lower memory usage, especially on mobile devices; however, it isn't necessarily straight-forward how to load these (especially for atlas files). This loader makes it as simple as putting the files in your directory, so long as they match the naming conventions:
Simply include any or all of these files alongside the `PNG` equivalent and if one of them is compatible with the current browser/hardware it will be loaded and used (falling back to the `PNG` file).
111
+
101
112
## Directory Structure
102
113
103
114
Specify the base directory in your Webpack config:
0 commit comments