Start des Spiels mit eigener main.c

This commit is contained in:
hilpoltsteinbe103465 committed 2026-10-19 08:49:38 +02:00
1 parent 93db739464
commit 0bd55e367a
2 files changed
+18 -1

No files matched your search

+9
View File
@@ -41,6 +41,15 @@ int main(int argc, char *argv[])
// Start the game if successful
// error message if some words couldn't be placed
if (placedWords == wordCount) {
startGame(wordSalad, SALAD_SIZE, words, wordCount, 800);
}
else {
//Fehlermeldung
fprintf(stderr, "Error: Could not place all words (%u of %u placed).\n", placedWords, wordCount);
exitCode = EXIT_FAILURE;
}
}
else
{
+9 -1
View File
@@ -22,6 +22,14 @@ codefolder = .
wordsalad_initial:
$(CC) -o wordsalad_initial -L. $(BINARIES)/libwordsalad_complete.a $(BINARIES)/libraylib.a $(LDFLAGS)
# --------------------------
# eigenes Spiel bauen
# --------------------------
wordsalad_myversion: main.o
$(CC) -o wordsalad_myversion main.o -L. $(BINARIES)/libwordsalad.a $(BINARIES)/libraylib.a $(LDFLAGS)
# --------------------------
# Normales Spiel bauen
# --------------------------
@@ -56,4 +64,4 @@ ifeq ($(OS),Windows_NT)
del /f *.o *.exe
else
rm -f *.o wordsalad $(TEST_BIN)
endif
endif