Checking for images already loaded with Loader()
Hi. I load a bunch of image files into my app with Loader: let loader = new PIXI.Loader(); loader.reset(); loader .add(pinImagePath) .add(whiteCircle24Path) .add(whiteCircle64Path)...
View ArticleProblems with creating camera following a sprite
Hi, I have read pretty much a majority of the google result of "pixi js camera player" and manage to make this : https://codepen.io/anon/pen/BeYWEq?editors=0010 Basicly I would want to simulate a...
View ArticleHas anyone done pixi.js server side rendering with pixi 5
Need to do a server side rendering with pixi - has anyone done it? tips and caveats?
View ArticleUse pixijs with rollup
Getting error while using rollup with pixijs. rollup.config.js default export { input: 'js/game.js', output: { format: 'amd', file: 'dist/game.js' } } //game.js let PIXI = require('pixi.js');...
View ArticleFast Pixi Tilemap Renderer trying to fix
I am creating a game, where a lot of tiles need to be rendered. My goal is to render with this method at least 500k tiles. Since the tiles won't be redrawn every time but moved, this method should...
View ArticleHow to scale the Pixi.js view without making the game blurry?
Hello, How to scale the Pixi.js view without making the game blurry? I have tried resizing the view with CSS using: app.view.style.width = nvw + "px"; app.view.style.height = nvh + "px"; -- where nvw...
View ArticleChange the style of line that is already drawn?
Hi guys It's been a long time since working with Pixi.js. Since the version 1.6 is 'in da house' with the ability to fill up complex polygons, I resumed my project again. As the title says, I draw...
View Articleupdating line style in PIXI v5
for v4, this works: Also: https://stackoverflow.com/questions/50221078/how-to-change-style-of-lines-using-pixi-js-graphics But for PIXI v5, there is no PIXI.Graphics().graphicsData (it is...
View ArticlePIXI.loader.resources or TextureCache
Quite a javascript newbie here so bare with me. So I'm not sure what the differences are between the two if any. So is it recommended to always reload images with loader rather than using fromImage?...
View ArticleiOS - Cordova slow RAF performance
Hello, I'm having issues running PIXI with an autoDetectRenderer in Cordova iOS. It is very slow compared to just loading the page from Safari within iOS. The goal is 60fps but Cordova is getting...
View ArticleI need a simple project in the archive for Browserify with Pixi.js5 and...
I want to use Browserify with Pixi.js v5, because I want to create a lot of examples for learning and I do not want to use Webpack (Gulp, Grant and so on) because they require a lot of disk space on...
View ArticleHow to extends PIXI.extras.AnimatedSprite?
how can I extends the AnimatedSprite from pixi 4.8.7? I'm not able to do this in vscode because it says that the constructor of base class (AnimatedSprite) should be 0 args but got 2. Why this? Se my...
View ArticleSafari Cleanup Issue
I’m building a SPA (vue js + vue router) combined with some pixi js (v4.8). The main features I use are : - image sprites - video sprites - some pixi texts - displacement filters Depending on the...
View ArticleCombine diffrent loaders
Hello everyone! Guys, tell me please : if we have custom loader ( not pixi ) for load resources such as png/jpg - how to combine them with pixi loader? For example custom loader load /assets/ image...
View ArticleGenerating a map of tiles
Hello, I'm trying to generate a world map of tiles. But now I'm stuck, I'm getting an error which is impossible to understand. Maybe you will see what's going wrong: Quote Error: TypeError: Cannot...
View Articlehow to move a container smoothly by pressing a button
Guys, how can i move a container smoothly. i had tried to move it with TweenMax, but unsatisfied . here is a part of my codes for reading(without TweenMax). forwardButton .on("touchstart", e =>...
View ArticlePlayable Ads with Pixi Js
Hey! I was wondering if Pixi JS is a good engine to create Playable Ads! For a playable ad I need a single html file with embedded assets and inline javascript. Is there a possibility to do it in Pixi...
View ArticleRenderer transparency performance
Should I turn transparancy on and set body element background with css or set transparency false and pass backgroundColor property to renderer options? Which of those two is better considering...
View ArticleMy Pixi.js ticker stops all application. (browser crashed)
Hi. I'm not a html5 game developer but Front-end developer trying to draw a line chart with pixi.js. So, my question is not about the html5 game but just about how can I use pixi.js correctly. I was...
View ArticleUnderstanding Pixi.js v5.x Loaders
Looking at the github basic usage example => Why is the ticker nested inside the loader? const app = new PIXI.Application(); document.body.appendChild(app.view); app.loader.add('bunny',...
View Article