diff --git a/src/main/c/Snake/snake_start.c b/src/main/c/Snake/snake_start.c new file mode 100644 index 0000000..186f773 --- /dev/null +++ b/src/main/c/Snake/snake_start.c @@ -0,0 +1,28 @@ +#include + + +#define HEIGHT 16 +#define WIDTH 16 +#define AREA HEIGHT * WIDTH + + +typedef struct +{ + char direction; + char segments[AREA]; +}Snake; + + +void main_menu(); + + +void snake_start(){ + system("clear"); + printf("Playing Snake"); + getchar(); + main_menu(); +} + +void main_menu(){ + +} \ No newline at end of file diff --git a/src/main/c/Snake/snake_start.h b/src/main/c/Snake/snake_start.h new file mode 100644 index 0000000..e69de29 diff --git a/src/main/c/main.c b/src/main/c/main.c index eaf0b17..27cfcae 100644 --- a/src/main/c/main.c +++ b/src/main/c/main.c @@ -3,6 +3,7 @@ #include #include "Template/game100.h" +#include "Snake/snake_start.h" int main(){ bool running = true; @@ -13,7 +14,7 @@ int main(){ system("clear"); printf("Waehlen Sie eine Option:\n"); - printf("\t1.Spiel1 starten\n"); + printf("\t1.Snake starten\n"); printf("\t2.Spiel2 starten\n"); printf("\t3.Spiel3 starten\n"); printf("\t4.Spiel4 starten\n"); @@ -25,7 +26,7 @@ int main(){ switch (option){ case 1: - //start_game1(); + snake_start(); break; case 2: //start_game2();