Created
November 8, 2014 12:06
-
-
Save eeeeeta/e0279a623a83d7c12d1f to your computer and use it in GitHub Desktop.
Enjoyable Minetest loading messages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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