pipes2 game

pipes2game
Noah69420 2024-12-16 11:25:00 +01:00
parent e946160920
commit 19447a7bdc
3 changed files with 7 additions and 11 deletions

View File

@ -37,6 +37,7 @@ Datum: 04.12.2024
#include "pipes_test.h" #include "pipes_test.h"
#include "pipes2.h" #include "pipes2.h"
#include "pipes2_game.h"
#ifdef __linux__ #ifdef __linux__
@ -360,6 +361,7 @@ int main(int argc, char **argv){
case 'p': pipes(width, height); break; case 'p': pipes(width, height); break;
case 'P': pipes_2(width, height); break; case 'P': pipes_2(width, height); break;
case 'o': pipes_2_game(width, height); break;
// windows // windows
case -32:{ case -32:{

View File

@ -16,7 +16,7 @@
#define GRID_GROESSE_X 200 #define GRID_GROESSE_X 200
#define GRID_GROESSE_Y 60 #define GRID_GROESSE_Y 60
#define SLEEP_TIME 40000 #define SLEEP_TIME 0
#define RED "\033[31m" #define RED "\033[31m"
#define GREEN "\033[32m" #define GREEN "\033[32m"

View File

@ -184,17 +184,11 @@ int print_grid(int x, int y, char **grid, int how_many_targets, int *lul) {
printf(" █ █████ █████ █ █ █████ █ ██\n"); printf(" █ █████ █████ █ █ █████ █ ██\n");
printf("\n"); printf("\n");
printf("Targets overritten: %i\n", 2*how_many_targets-target_count); printf("Targets overritten: %i\n", 2*how_many_targets-target_count);
if (target_count > 3) {
printf("\nspecial achivement!!!!!!\n");
printf("'q' for start menue");
return 1;
} else {
*lul += 1; *lul += 1;
system("xdg-open https://bit.ly/3BlS71b"); system("xdg-open https://bit.ly/3BlS71b");
printf("'q' for start menue"); printf("'q' for start menue");
return 1; return 1;
} }
}
return 0; return 0;
} }