Quantcast
Channel: Pixi.js Latest Topics
Browsing all 3980 articles
Browse latest View live

animated tiles.

I am working on a tilemap shader for babylon and was wondering how does Pixi handle animated tiles? Does anyone have the link to the shaders used by Pixi? http://pryme8.github.io/tiles/ really rough...

View Article


How to make a scroller in PIXI

Hi, I write some code to make a scroller but its not working, could you plz help me.   function ScoreboardView(parentObj) { PIXI.Container.call(this); this.parentRef = parentObj }...

View Article


Performance

I updated my iPhone to the new ios and immediately, my game's performance dropped... It was still ok, but noticeably not as smooth (I have an iphone SE which I appreciate is an older/weaker spec...

View Article

Image may be NSFW.
Clik here to view.

Android Webview doesn't load images of pixijs app

Hi My images/textures won't load when I am usng Andoid's webview to create an android app. Any ideas? I use Android studio. html/javascript code and file structure of android studio's project: Main...

View Article

Dynamic Pop up

How to create a dynamic popup in JS using PIXIJS where the popup header, popup message, and buttons are dynamic(means the data came from the server).

View Article


GL ERROR :GL_INVALID_OPERATION : glDrawElements: range out of bounds for buffer

Hi community,  I have been using Pixi js for some time now, absolutely love it. I am using their latest version 4.3.4 and notice in Google Chromes Console there is 256+ Warnings looking like this:...

View Article

how to remove listener

Hello guys, a noob question here: if I set up listeners like this, all works fine for me: myobject.on("pointerdown", onPointerDown); function onPointerDown(ev){ myobject.on("pointermove",...

View Article

Applying filter to a texture without clearing it

I am trying to do the following: draw some shapes to a Graphics object render those shapes to a RenderTexture without clearing it first, so that the shapes are "painted onto the texture" apply a...

View Article


Image may be NSFW.
Clik here to view.

Water shader approach?

I'm struggling with an approach to add a water effect to an area of container. I'd like to have the area in green distort the area below it via a shader, but also have the ability for this water area...

View Article


Image may be NSFW.
Clik here to view.

Pixi.Sprite on click weird isssue

For a day or two i have this weird issue that i can't fix.  I am making a map with interactive trees. When i click tree i want it to change its texture to chopped trees. class Tree {...

View Article

Upload images to GPU in a web worker

Is it possible to upload images to GPU in a web worker? If so, how do I do that?

View Article

Image may be NSFW.
Clik here to view.

RemoveListener for Spine animations

RemoveListener is works, but only in one way: let spine // our spine animation let log = () => console.log('nonsense'); let listener = {complete: log}; spine.state.addListener(listener); And...

View Article

problems with pointertap event

According to the docs, pointertap event should occur when pointer device button is pressed and released on the display object. But it occurs also when I press device button down outside of the display...

View Article


Pixi.js and Angular2

Hey y'all, I made a package that I have been heavily using and honing in a game I'm working on. It allows you to use markup to create PIXI scenes. I'm hoping it'll help someone out there (and help...

View Article

Draw image/sprite warped like in Slick2D?

Can we do something like Image.drawWarped (link goes to the javadoc of slick2d) with pixi.js? It gave devs the possibility to define where to render the 4 corners of an image with absolute x, y...

View Article


Tiling Sprite artefacts

I am using a TilingSprite for the background of a game. Its a top-down view so I'm setting the tiling sprite tilePosition x & y as the player moves around. I'm using a 256px square tile that is in...

View Article

Why is PIXI.interaction.InteractionEvent undefined?

Hey everyone, this is my first post, so I hope I do this right. Let me explain, what I wanted to do: I created a GameObject class so that all my objects inherit from this class. The GameObject is...

View Article


How to implement positional easing on a sprite that can be changing its...

I'm building a little demo where I'll have multiple sprites change both their position and scale based on where the mouse cursor is. While I have this part implemented, I haven't figured out how to...

View Article

Should pixi.js webGL work in electron?

I've been building little browser game, but for the sake of learning new stuff I've tried to make my game run in desktop using Electron. The game loads up well, doesn't show any errors but the whole...

View Article

Shader Texture Oddness

I'm trying to render a sprite using a shader that takes a texture as a parameter and combines the sprite with that texture, so the desired outcome is the texture being overlaid onto the original...

View Article
Browsing all 3980 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>