These are chat archives for pixijs/pixi.js

14th
Jul 2015
Olav Lindekleiv
@oal
Jul 14 2015 09:21
Can I set the fps of a ticker.Ticker? I don't want my laptop fan to go full throttle when I'm developing.
Olav Lindekleiv
@oal
Jul 14 2015 11:21
Never mind
Another question, though: Can I change the scale of a container without changing the way it's displayed? Imagine a breakout clone where 1 unit != 1 px, but is it possible to then redefine the units so that 1 unit is x pixels?
While not scaling the assets / make them look pixelated
David Bonet
@DavidBM
Jul 14 2015 12:14
Maybe with a filter or a shader.
Olav Lindekleiv
@oal
Jul 14 2015 12:23
@DavidBM I meant "not make them look pixelated", sorry
When I set sprite.position.x = 2 that translates to 128px
(on screen, that is)
Olav Lindekleiv
@oal
Jul 14 2015 14:09
Can I check if a sprite is within certain boundaries after a change to its position/rotation has been made (calling getBounds) without waiting a frame?
as in, I set the new rotation, then call getBounds, then set the old rotation back if the move was illegal.
Olav Lindekleiv
@oal
Jul 14 2015 15:07
Never mind, .updateTransform works :)