- int best = UserDefault::getInstance()->getIntegerForKey("Best_Score");
UserDefault::getInstance()->setIntegerForKey("Best_Score",best);
char buffer[10];
sprintf(buffer, "%04i", best);
bestScore->setString("Best: " + std::string(buffer));
UserDefault::getInstance()->flush();
Inga kommentarer:
Skicka en kommentar