|
1 | | -{ "PhaserAssetPack": { |
2 | | - |
| 1 | +{ |
| 2 | + // This is the key you use in the call to Phaser.Loader.pack |
| 3 | + // It's an Array of Loader types. |
| 4 | + // |
| 5 | + // Note that lots of parameters are optional. |
| 6 | + // See the API Documentation to find out which ones as they match the Loader calls exactly. |
3 | 7 | "level1": [ |
4 | 8 | { |
| 9 | + // Loads an image. |
5 | 10 | "type": "image", |
6 | 11 | "key": "ball", |
7 | 12 | "url": "assets/sprites/shinyball.png", |
|
107 | 112 | "format": "TEXTURE_ATLAS_JSON_ARRAY" |
108 | 113 | } |
109 | 114 | ], |
| 115 | + // Here's an example of another section within the Asset Pack. |
110 | 116 | "level2": [ |
111 | 117 | { |
112 | 118 | "type": "image", |
113 | 119 | "key": "ball", |
114 | 120 | "url": "assets/sprites/shinyball.png", |
115 | 121 | "overwrite": false |
116 | 122 | } |
117 | | - ] |
118 | | -}, |
119 | | - |
120 | | -"meta": { |
121 | | - "generated": "04:42 May 29th 2014", |
122 | | - "app": "Phaser Asset Packer", |
123 | | - "url": "http://phaser.io", |
124 | | - "version": "1.0", |
125 | | - "copyright": "Photon Storm Ltd. 2014" |
126 | | -} |
127 | | - |
| 123 | + ], |
| 124 | + // The meta block allows you to define data specific to the Tool / app that created this JSON file. |
| 125 | + // |
| 126 | + // generated: Required - String - A Unix Timestamp (or Date.now() from JS) that signifies when this JSON file was created. |
| 127 | + // version: Required - String - Should be "1.0" |
| 128 | + // app: Required - String containing the name of the app (or web site) that generated this JSON file. |
| 129 | + // url: Optional - String containing the URL of the app (or web site) that generated this JSON file. |
| 130 | + // copyright: Optional - String - A copyright notice. |
| 131 | + // |
| 132 | + // You can add as many extra properties as your app requires, only the above are needed / reserved as of 1.0 |
| 133 | + "meta": { |
| 134 | + "generated": "1401380327373", |
| 135 | + "version": "1.0", |
| 136 | + "app": "Phaser Asset Packer", |
| 137 | + "url": "http://phaser.io", |
| 138 | + "copyright": "Photon Storm Ltd. 2014" |
| 139 | + } |
128 | 140 | } |
0 commit comments