help with device orientation and canvas resize
Hello everyone, I'm trying to make a resizable canvas following this guides I found in this forum https://webglfundamentals.org/webgl/lessons/webgl-anti-patterns.html. I'm sure this topic has been...
View ArticlePixi.js + TypeScript boilerplate
After a couple of days working with Pixi.js, I've built up a simple boiler plate for the TypeScript language I'm glad to share: https://github.com/yahiko00/PixiProject The game loop with a FPS meter...
View ArticleHow to resize windows anytime and access mouse position directly in pixi.js?
1. How to resize the window at any time when I change my window size. Something weird will occur in my app now like the image below.(the right size should be black) 2. How can I directly access mouse...
View ArticlePixi + Custom caching
Hey, I am completely lost in my game blobber.io. I debugged already a lot of bugs but this one I have been working on for the last 14 days and I am unable to find it. The original frontend developer...
View ArticlePIXI Filter - access non-premultiplied alpha
I've been working with PIXI filters recently. If I apply the filter to a sprite with alpha, I've noticed that somewhere along the line the alpha gets premultiplied. For example, I have a test texture...
View ArticleContainer background color without graphics?
Hello, Is it possible to color the background of a container without using graphics of any sort? Some kind of 'native' background color property or so? Thank you. Kind regards, Fennek
View Articleproper canvas resizing method
Guys, sorry for bothering with this question, I found a few answers to this problem, but im still not able to get it to work. I have made a complex app in Pixi, but now Im fighting with a trivial...
View ArticleOdd issue with resizing renderer - innerWidth and innerHeight not returning...
My app uses a renderer that spans the entire height and width of the browser and is completely responsive to its size. On desktop the renderer resizes fine as I resize the browser. I can also open up...
View ArticlePIXI 4.6+ way of cutting shapes using other shapes?
I've been reading a backlog of how to do this all the way back to when the recommendation was to use canvas. What is the new and modern way of accomplishing this? Let's say I have a rectangle that...
View Articlebasic demo "Video" for HLS source
Hi, I am trying to draw HLS video stream over PIXI video texture on iOS safari browser (iOS 11.2) referring http://pixijs.io/examples/?v=v4.6.2#/basics/video.js but not succeeded. (Sorry for poor...
View ArticleDragonbones .json
Do you guys know how I can use a .json object exported from Dragonbones, with Phaser and/or Pixie? Is there a tutorial, a script an example to show us how it works? Thanks alot
View ArticleZooming a graphic/container/element on click
Hey everyone! I am trying to achieve a zoom on an element using PIXI I have currently a graphics rectangle (see first image) It is the child of my stage which is the main container being rendered. My...
View ArticleThe best practise of animation workflow
What is the best practise of animation workflow for Pixi.js? It seems the best animation design tool is still Adobe Animate. I just tried pixi-animate, pixi-flash, and PixiGAFPlayer. So which one is...
View ArticleGames in PIXI producing a black/flickering screen on Huawei device
've been making a bunch of games using PIXI.js (version 3.0.6). However, none of the games work on my Huawei device (android version 5.0.1). Either the screen is completely black, or the screen...
View ArticleUsing pixi-particles-editor with AnimateCC
Hi guys, I am using AnimateCC to output canvas animations and would love to know how I would go about using the json file that is made available for download when using:...
View ArticlePixi.js renderer not working
So basically I have a big project ongoing. Instead of having nested constructors that passed down all the game data such as renderer, resources and so on, I decided in my Game.js file to make it...
View ArticleBunny drag example with correct mouse offset
Hi, disclaimer: pixi newb here. I am working on an isometric example and as such want to be able to drag the background to move the scene.Starting from the bunny example (#8) I noticed a behavior that...
View ArticleMove stage pivot so that element is center
Hey everyone, I want to center an element (in this case a graphics element) in the center of the screen. https://jsfiddle.net/user/adnanchang/fiddles/ As you can see from my code, I am changing the...
View ArticleAbout fonts...
Hi!I'm doing a thing in pixi (actually, in it's dart port (https://github.com/FedeOmoto/pixi) but that should be the same for the purpose of this question) and I'm using its text features...
View Articlefixed physics update
Hi all, I am a bit confused on how should I procede if I want to have my game update the physics at 25hz. So, clearifying myself, my scenario: I have a game server that run updates 25 time per sec. I...
View Article