JeZxLee Posted August 13, 2017 Share Posted August 13, 2017 Hi, I want to add particles for mouse click and touch events. Can someone point me to a demo with code? Also are particles only available with WebGL and won't work with HTML5 fallback?? Thanks! JeZxLee Quote Link to comment Share on other sites More sharing options...
themoonrat Posted August 13, 2017 Share Posted August 13, 2017 http://lmgtfy.com/?q=pixi+particles Top result! OSUblake 1 Quote Link to comment Share on other sites More sharing options...
JeZxLee Posted August 13, 2017 Author Share Posted August 13, 2017 Do Pixi Particles work on HTML5 fallback? Thanks! JeZxLee Quote Link to comment Share on other sites More sharing options...
Taz Posted August 13, 2017 Share Posted August 13, 2017 It works on Canvas2D too but prob not as many particles at 60 FPS Quote Link to comment Share on other sites More sharing options...
JeZxLee Posted August 13, 2017 Author Share Posted August 13, 2017 I think I will cook up something simple. Just want 1 star sprite to fade out/rotate into the foreground on mouse click/touch. I noticed during development that alpha transparency seems to be quite expensive? Why is alpha transparency CPU/GPU expensive - I would use it more but it slows the game too much. Thanks! JeZxLee Quote Link to comment Share on other sites More sharing options...
xerver Posted August 14, 2017 Share Posted August 14, 2017 15 hours ago, JeZxLee said: Why is alpha transparency CPU/GPU expensive - I would use it more but it slows the game too much. If you mean transparency of the canvas, it is because the browser has to composit the canvas with the DOM below it. If you mean alpha of sprites in the scene, then it is not more expensive. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.