I Want To Create This Ping Effect.
You can see more about it on https://stake.com/casino/games/plinko
I’m re-building this plinko game and want to create this effect of a ‘ping’. I got to a point where I can fire up events on body collision of the ball and pin. My question is, since the matter-js renderer is limited to simple games and debugging. How can I style the pins to emit this ping effect ?
// if (bodyB.label.includes("ball") && bodyA.label.includes("pin")) {
// console.log("Ball hit pin");
// // Style pin to create a wave effect when hit
// bodyA.render.fillStyle = "red";
// }