Compare commits
No commits in common. "main" and "main" have entirely different histories.
@ -4,8 +4,6 @@
|
||||
#include "game.h"
|
||||
#include "graphicalGame.h"
|
||||
|
||||
#include "raylib.h"
|
||||
|
||||
#define MAX_NUMBER_OF_WORDS 100
|
||||
#define SALAD_SIZE 20
|
||||
|
||||
@ -42,15 +40,6 @@ int main(int argc, char *argv[])
|
||||
// Check if all words were successfully placed
|
||||
// Start the game if successful
|
||||
// error message if some words couldn't be placed
|
||||
if(placedWords == wordCount)
|
||||
{
|
||||
printf("All words placed successfully (%u / %u).\n", placedWords, wordCount);
|
||||
startGame( wordSalad, MAX_SEARCH_FIELD_LEN, words, wordCount, GetScreenWidth());
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("Could only place %u of %u words.\n", placedWords, wordCount);
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
|
@ -1,18 +1,11 @@
|
||||
CC = gcc
|
||||
CFLAGS = -g -Wall -I$(raylib_folder)
|
||||
CFLAGS = -g -Wall -I$(raylibfolder)
|
||||
LDFLAGS = -lopengl32 -lgdi32 -lwinmm
|
||||
BINARIES = ./windows
|
||||
|
||||
raylib_folder = ./raylib
|
||||
unityfolder = ./unity
|
||||
|
||||
# --------------------------
|
||||
# eigenes Spiel bauen
|
||||
# --------------------------
|
||||
wordsalad_myversion: main.o graphicalGame.o $(BINARIES)/libwordsalad.a $(BINARIES)/libraylib.a
|
||||
$(CC) -o wordsalad_myversion main.o graphicalGame.o $(BINARIES)/libwordsalad.a $(BINARIES)/libraylib.a $(LDFLAGS)
|
||||
|
||||
|
||||
# --------------------------
|
||||
# initiales Spiel bauen
|
||||
# --------------------------
|
||||
@ -27,10 +20,10 @@ all: main.o input.o game.o graphicalGame.o $(BINARIES)/libraylib.a
|
||||
$(CC) $(CFLAGS) -o wordsalad main.o input.o game.o graphicalGame.o $(BINARIES)/libraylib.a $(LDFLAGS)
|
||||
|
||||
main.o: main.c
|
||||
$(CC) -I$(raylib_folder) -c $(CFLAGS) main.c
|
||||
$(CC) -c $(CFLAGS) main.c
|
||||
|
||||
input.o: input.c
|
||||
$(CC) -c $(CFLAGS) input.c
|
||||
$(CC) -c $(CFLAGS)input.c
|
||||
|
||||
game.o: game.c
|
||||
$(CC) -c $(CFLAGS) game.c
|
||||
@ -51,9 +44,3 @@ test: input.o game.o unit_tests.c
|
||||
# --------------------------
|
||||
clean:
|
||||
del /f *.o *.exe
|
||||
|
||||
|
||||
|
||||
|
||||
#[befehlname]: [dependency] -wenn in dependency eine änderung dann erstell neu
|
||||
# gcc [code] - "-o [name]" Outputdatei Namen angeben "-c [name].c" kompiliere das programm "[name].a [name].o" benutze diese um das programm zu bauen
|
Loading…
x
Reference in New Issue
Block a user