Guest User

Untitled

a guest
Feb 19th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. "autoplay_counter.png":
  2. {
  3. "frame": {"x":983,"y":1093,"w":264,"h":147},
  4. "rotated": false,
  5. "trimmed": true,
  6. "spriteSourceSize": {"x":3,"y":1,"w":264,"h":147},
  7. "sourceSize": {"w":270,"h":150}
  8. },
  9.  
  10. const game = new PIXI.Application(2017, 1256);
  11. document.body.appendChild(game.view);
  12.  
  13. var loader = PIXI.loader;
  14. loader.add("reels.json");
  15. loader.load(func);
  16.  
  17. function func () {
  18. var frames= [];
  19. frames.push(PIXI.Texture.fromFrame('Reels_Logo.png'));
  20. frames.push(PIXI.Texture.fromFrame('Reels_Frame.png'));
  21. frames.push(PIXI.Texture.fromFrame('Symbol_Cargo.png'));
  22. var x = frames.pop();
  23. while ( x != null) {
  24. var anim = new PIXI.Sprite(x);
  25. game.stage.addChild(anim);
  26. x = frames.pop();
  27. }
  28. }
Add Comment
Please, Sign In to add comment