How to use the pixi.js.Sprite function in pixi

To help you get started, we’ve selected a few pixi examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github AliaElKattan / survivalofthebestfit / game / public / components / pixi / ml-stage / resume.js View on Github external
draw() {
        this.resume = new PIXI.Sprite(cvTexture);
        this.resume.scale.set(SCALES.RESUME[screenSizeDetector()]);
        this.resume.x = this.xAnchor;
        this.resume.type = 'resume-on-belt';
        this.parent.addChild(this.resume);
    }
github AliaElKattan / survivalofthebestfit / game-source / public / game / components / pixi / ml-stage / resume.js View on Github external
draw() {
        this.resume = new PIXI.Sprite(cvTexture);
        this.resume.scale.set(SCALES.RESUME[screenSizeDetector()]);
        this.resume.x = this.xAnchor;
        this.resume.type = 'resume-on-belt';
        this.parent.addChild(this.resume);
    }
github kreezii / jsgam / src / game.js View on Github external
addBlackScreen(){
    this.blackScreen=new PIXI.Sprite(PIXI.Texture.WHITE);
    this.blackScreen.width=this.width;
    this.blackScreen.height=this.height;
    this.blackScreen.tint=0x000000;
    this.blackScreen.parentLayer = this.layerUI;
  }

pixi

Super fast 2D rendering engine for browserify, that uses WebGL with a context 2d fallback.

MIT
Latest version published 9 years ago

Package Health Score

45 / 100
Full package analysis