Skip to content

Cocos2d-x component for exhibition of rating stars in the end of games.

Notifications You must be signed in to change notification settings

imbrn/cocos-stars

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cocos Stars

Cocos2d-x component for exhibition of rating stars in game endings.

Stars

Features

  • Custom stars graphics
  • Custom amount of stars
  • Rating animation
  • Cocos2d-x 3.14 or above

How to use

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.

Shine sounds

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();

About

Cocos2d-x component for exhibition of rating stars in the end of games.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages