~ajpaon/squell

4188144374452222324ad98d936cc52184198a3b — Andrew Paon 10 months ago de25d86
Add an intro splash screen
1 files changed, 24 insertions(+), 0 deletions(-)

M main.c
M main.c => main.c +24 -0
@@ 385,6 385,30 @@ void game_main() {
  time(&seed);
  srand(seed);

  char splash[] =
      "                      _ _ \n"
      " ___  __ _ _   _  ___| | |\n"
      "/ __|/ _` | | | |/ _ \\ | |\n"
      "\\__ \\ (_| | |_| |  __/ | |\n"
      "|___/\\__, |\\__,_|\\___|_|_|\n"
      "        |_|               \n"
      "\n\n"

      "squell is a game that combines elements of tetris and sudoku.\n"
      "Place blocks to fill and clear rows, columns, or squares.\n"
      "\n"
      "squell is free and open-source. You can view the code at\n"
      "https://git.sr.ht/~ajpaon/squell\n"
      "\n"
      "To report bugs or suggest features, send an email to\n"
      "~ajpaon/public-inbox@lists.sr.ht\n"
      "\n"
      "Press any key to begin.";

  clear_screen();
  fputs(splash, stdout);
  getc(stdin);

  struct Game game = {0};

  game.state = CHOOSING_PIECE;