diff --git a/Start_Windows/.idea/editor.xml b/Start_Windows/.idea/editor.xml new file mode 100644 index 0000000..226ca24 --- /dev/null +++ b/Start_Windows/.idea/editor.xml @@ -0,0 +1,580 @@ + + + + + \ No newline at end of file diff --git a/Start_Windows/.idea/vcs.xml b/Start_Windows/.idea/vcs.xml new file mode 100644 index 0000000..6c0b863 --- /dev/null +++ b/Start_Windows/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Start_Windows/graphicalGame.c b/Start_Windows/graphicalGame.c index 3b95e29..fc648b6 100644 --- a/Start_Windows/graphicalGame.c +++ b/Start_Windows/graphicalGame.c @@ -66,27 +66,8 @@ typedef struct // Creates a helper message to guide the user static HelperMessage createHelperMessage(unsigned int screenWidth) { - // Der Hilfetext, der dem Spieler angezeigt wird, um das Spielprinzip zu erklären - const char *text = "Please search below for the words located at the bottom \n" - "and draw a line exactly on the desired characters ..."; - - // Initialisiert eine HelperMessage-Struktur: - // - text: der Hinweistext - // - start: Startposition des Textes (x=0, y=0) - // - end: Endposition des Textes (x=screenWidth, y=0) – also über die gesamte Breite - // - fontSize: Schriftgröße des Textes (hier: 18) - HelperMessage msg = { "", {0, 0}, {screenWidth, 0}, 18 }; - - // Kopiert den Hinweistext in das msg.text-Feld (sicher mit strncpy) - strncpy(msg.text, text, sizeof(msg.text) - 1); - - // Stellt sicher, dass der Text nullterminiert ist - msg.text[sizeof(msg.text) - 1] = '\0'; - - // Gibt die fertige HelperMessage zurück - return msg; -} -`` + const char *text = "Please search below for the words located at the bottom \nand draw a line exactly on the desired characters ..."; + HelperMessage msg = {"", {0, 0}, {screenWidth, 0}, 18}; // Copy text into msg, ensuring does not exceed max length strncpy(msg.text, text, MAX_MESSAGE_LEN); diff --git a/Start_Windows/runTests.exe b/Start_Windows/runTests.exe index 147f4e6..c2de870 100644 Binary files a/Start_Windows/runTests.exe and b/Start_Windows/runTests.exe differ