Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "autoplay_counter.png":
- {
- "frame": {"x":983,"y":1093,"w":264,"h":147},
- "rotated": false,
- "trimmed": true,
- "spriteSourceSize": {"x":3,"y":1,"w":264,"h":147},
- "sourceSize": {"w":270,"h":150}
- },
- const game = new PIXI.Application(2017, 1256);
- document.body.appendChild(game.view);
- var loader = PIXI.loader;
- loader.add("reels.json");
- loader.load(func);
- function func () {
- var frames= [];
- frames.push(PIXI.Texture.fromFrame('Reels_Logo.png'));
- frames.push(PIXI.Texture.fromFrame('Reels_Frame.png'));
- frames.push(PIXI.Texture.fromFrame('Symbol_Cargo.png'));
- var x = frames.pop();
- while ( x != null) {
- var anim = new PIXI.Sprite(x);
- game.stage.addChild(anim);
- x = frames.pop();
- }
- }
Add Comment
Please, Sign In to add comment