Search the Community
Showing results for tags 'bad english'.
-
I have one sprite with shots curtov.hol.es/pixiloader/blasts.png I need to make array from texture and use them later. To make sprite I used TexturePacker and some frames was rotated. So I have the next code from json file exported by TexturePacker var frames = [{"filename": "11_protoss","frame": {"x":403,"y":387,"width":58,"height":37},"rotated": true},{"filename": "11_terran","frame": {"x":433,"y":377,"width":42,"height":6},"rotated": true}]To rotate texture I used DOC and generateTexture() texture = new PIXI.Texture(baseTexture, frames[i].frame);if (frames[i].rotated) { doc = new PIXI.DisplayObjectContainer(); sprite = new PIXI.Sprite(texture); sprite.rotation = - Math.PI / 2; doc.addChild(sprite); texture = doc.generateTexture();}Everything fine in Chrome, but all rotated in FF without transparency.http://curtov.hol.es/pixiloader/
- 3 replies
-
- bad english
- generateTexture
-
(and 1 more)
Tagged with:
-
I used var renderer = PIXI.autoDetectRenderer(window.innerWidth, window.innerHeight);It worked perfectly with min version. But I needed to add options and I did like this: var renderer = PIXI.autoDetectRenderer(window.innerWidth, window.innerHeight, {transparent: 'true'});And with dev version it works, but with min version doesn`t
- 2 replies
-
- bad english
- minified
-
(and 3 more)
Tagged with: