Skip to content
This repository has been archived by the owner on May 2, 2022. It is now read-only.

Commit

Permalink
modify example code
Browse files Browse the repository at this point in the history
  • Loading branch information
jcyuan committed Sep 21, 2017
1 parent 92c5437 commit b8439d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ class Main extends PIXI.Application {

//start to preload resource
//test.jpg actually is a binary file but just ends with fake postfix. so here we need to specify the loadType etc.
PIXI.loader.add("test", "images/test.jpg", { loadType: PIXI.loaders.Resource.LOAD_TYPE.XHR, xhrType: PIXI.loaders.Resource.XHR_RESPONSE_TYPE.BUFFER })
let loader = new fgui.utils.AssetLoader();
loader.add("test", "images/test.jpg", { loadType: PIXI.loaders.Resource.LOAD_TYPE.XHR, xhrType: PIXI.loaders.Resource.XHR_RESPONSE_TYPE.BUFFER })
.add("test@atlas0", "images/[email protected]")
.add("test@atlas0_1", "images/test@atlas0_1.png")
.add("test@atlas0_2", "images/test@atlas0_2.png")
Expand Down

0 comments on commit b8439d8

Please sign in to comment.