Cocos2d-x component for exhibition of rating stars in game endings.
- Custom stars graphics
- Custom amount of stars
- Rating animation
- Cocos2d-x 3.14 or above
By default it expects you to have the following images in your resources path:
- active_star.png
- inactive_star.png
but you can configure whatever sound and images you like.
To use shine sounds with the rating animation you need to do the following:
-
First you need to implement the interface
audio::RatingShineSound
-
Second, you need to pass your interface to the rating animation builder:
auto animation = stars::RatingAnimationBuilder(my_stars)
.set_shine_sound(my_rating_shine_sound_object)
.Build();