diff --git a/maps/custom_4.txt b/maps/custom_4.txt deleted file mode 100644 index cd5eb58..0000000 --- a/maps/custom_4.txt +++ /dev/null @@ -1,11 +0,0 @@ -################### -#P # -# # -# # -# # -# C # -# # -# I # -# # -# # -################### \ No newline at end of file diff --git a/maps/viergemap.txt b/maps/viergemap.txt index cd5eb58..9b96ddf 100644 --- a/maps/viergemap.txt +++ b/maps/viergemap.txt @@ -1,11 +1,20 @@ -################### -#P # -# # -# # -# # -# C # -# # -# I # -# # -# # -################### \ No newline at end of file +#################### +#P # +# # +# # +# # +# C # +# # +# I # +# # +# # +# # +# # +# # +# # +# # +# # +# # +# # +# # +#################### \ No newline at end of file diff --git a/script/main.c b/script/main.c index 986cb6a..e96246c 100644 --- a/script/main.c +++ b/script/main.c @@ -63,7 +63,7 @@ int main () { printf("editeur de map"); //newmap - output = inEditorLoop(menu, &dim_menu, &pos, &null, 1, &display_user, &score_user); + output = inEditorLoop(tab2d, &dim, playerPos, targets, nbr_targets, &display_user, &score_user); } else { @@ -107,6 +107,8 @@ int main () fclose(src); fclose(file); + tab2d = creatArea2D(SIZE_PLAY, SIZE_PLAY); + targets = fileToTab2D(txt, tab2d, SIZE_PLAY, playerPos, &nbr_targets); output = -2; } }