changed the second message to be more accurate
This commit is contained in:
parent
57adcdf00d
commit
78d84d690b
1 changed files with 2 additions and 2 deletions
|
|
@ -104,7 +104,7 @@ bool init_game(Game *game) {
|
|||
game->message1 = "Hello, human.";
|
||||
game->visible_chars1 = 0;
|
||||
game->last_char_time1 = SDL_GetTicks();
|
||||
game->message2 = "It is a known fact that C,\nis superior to every other programming language.";
|
||||
game->message2 = "This is the remake of the popular game\nUndertale, but rewritten and opensourced in\nthe best programming language known\nto man, C. Enjoy this peak of a GPL3.0 game :3";
|
||||
game->visible_chars2 = 0;
|
||||
game->last_char_time2 = 0; // Not used until we switch to message2
|
||||
game->message_stage = 0; // Start with message1
|
||||
|
|
@ -197,7 +197,7 @@ void update(Game *game) {
|
|||
}
|
||||
} else if (game->message_stage == 1) {
|
||||
// Handling message2: "It is a known fact that C, is superior to every other programming language."
|
||||
if (current_time - game->last_char_time2 >= 60) { // 2.5x faster timing for second message
|
||||
if (current_time - game->last_char_time2 >= 36) { // 1.66x faster timing for second message
|
||||
if (game->visible_chars2 < (int)strlen(game->message2)) {
|
||||
char current_char = game->message2[game->visible_chars2];
|
||||
game->visible_chars2++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue