pixi.js camera #shorts

Аватар автора
webstart
I created a camera template prototype in Pixi.js with a function to automatically determine the closest object to the center of the camera. I plan to expand this code for my future games and tasks, and I have uploaded the prototype to Git. You can check it out via the link. By the way, if anyone wants to learn Pixi.js, this tiny template contains 80% of what you usually need to know when working with Pixi.js. It&the foundation of foundations. PS // The mask itself is resource-intensive, and from experience, I know that animations using it can lag on older mobile devices. If you don&need something like a fog-of-war effect, it&better to avoid using it and instead use the device&dimensions (if we&talking about mobile games).

0/0


0/0

0/0

0/0