jumpandrun.h
typedef struct LevelFile{ char *fileNames[10]; int fileNum; }LevelFile; typedef struct Location{ int x; int y; }Location; int find_location(char *level_map[], int h, char sig, Location *loc); void show_map(int step, char *level_map[], int h, Location *loc); int start_level(int level); void free_level_map(char *level_map[], int h);
jumpandrun.c
#include "jumpandrun.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #define SIZE 99 /* Viel Erfolg! */ FILE *fin, *fout; LevelFile levelFiles; int score = 0; int file_size = 0; int find_location(char *level_map[], int h, char sig, Location *loc) { int i,j; for(i=0; i<h; i++){ for(j=0; level_map[i][j]!='