Hey! I want to make a spinning wheel on which the player will get a certain amount of points. I am using graphics, namely slice, to draw the segments that the glasses will be on. But now the points and the graphics do not know about each other and I do not understand how I can combine them to determine the number of points dropped. What is better to use here?
Assuming you’re rotating the graphics:
Phaser.Math.Snap.To(graphics.angle, 360 / 6)
// → -180 | -120 | -60 | 0 | 60 | 120 | 180
// -180 and 180 are the same direction