Skip to content

Instantly share code, notes, and snippets.

@eeeeeta
Created November 8, 2014 12:06
Show Gist options
  • Save eeeeeta/e0279a623a83d7c12d1f to your computer and use it in GitHub Desktop.
Save eeeeeta/e0279a623a83d7c12d1f to your computer and use it in GitHub Desktop.
Enjoyable Minetest loading messages
progress = 20 + client->mediaReceiveProgress() * 50 + 0.5;
std::stringstream message;
message.precision(3);
// Enjoyable loading messages!
if (progress < 30) {
message << gettext("Coding next version...");
}
else if (progress < 50) {
message << gettext("Leaking memory...");
}
else if (progress < 70) {
message << gettext("Placing nyancats...");
}
else if (progress < 80) {
message << gettext("Engaging coffee break...");
}
else {
message << gettext("Finishing up...");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment