forked from zwickethomas/Photonics-Helfer
pipes2 game
parent
e946160920
commit
19447a7bdc
|
@ -37,6 +37,7 @@ Datum: 04.12.2024
|
|||
|
||||
#include "pipes_test.h"
|
||||
#include "pipes2.h"
|
||||
#include "pipes2_game.h"
|
||||
|
||||
|
||||
#ifdef __linux__
|
||||
|
@ -360,6 +361,7 @@ int main(int argc, char **argv){
|
|||
|
||||
case 'p': pipes(width, height); break;
|
||||
case 'P': pipes_2(width, height); break;
|
||||
case 'o': pipes_2_game(width, height); break;
|
||||
|
||||
// windows
|
||||
case -32:{
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#define GRID_GROESSE_X 200
|
||||
#define GRID_GROESSE_Y 60
|
||||
#define SLEEP_TIME 40000
|
||||
#define SLEEP_TIME 0
|
||||
|
||||
#define RED "\033[31m"
|
||||
#define GREEN "\033[32m"
|
||||
|
|
|
@ -184,17 +184,11 @@ int print_grid(int x, int y, char **grid, int how_many_targets, int *lul) {
|
|||
printf(" █ █████ █████ █ █ █████ █ ██\n");
|
||||
printf("\n");
|
||||
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;
|
||||
system("xdg-open https://bit.ly/3BlS71b");
|
||||
printf("'q' for start menue");
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue