Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- interface SaveScore {
- public void saveScore(int score);
- }
- public class SaveScoreAndroid implements SaveScore {
- public void saveScore(int score) {
- //Platform specific code goes here
- }
- }
- protected void onCreate (Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- AndroidApplicationConfiguration config = new AndroidApplicationConfiguration();
- initialize(new MyGame(new SaveScoreAndroid()), config);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement