Skip to content

Instantly share code, notes, and snippets.

@eeeeeta

eeeeeta/main.cpp

Created Nov 8, 2014
Embed
What would you like to do?
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