braingdx icon indicating copy to clipboard operation
braingdx copied to clipboard

Introduce Achievement Management 🏆

Open bitbrain opened this issue 6 years ago • 0 comments

Introduce a new class called AchievementManager which can be accessed on the GameContext.

The responsibility of this class is to register achievements and measure progress. The manager itself has different "storage" implementations for the state:

  • DefaultAchievementConfiguration active by default
  • AndroidAchievementConfiguration (based on GooglePlay)

Each AchievementConfiguration provides UI handling and persistence of state respectively. This handler can be configured on the BraingdxGame itself via the super constructor:

public MyGame(AchievementConfiguration configuration) {
   super(configuration);
}

This allows people to provide custom configuration for different platforms.

bitbrain avatar Feb 14 '19 09:02 bitbrain