diff --git a/maps/custom_1.txt b/maps/custom_1.txt index 3c693ab..019d8e7 100644 --- a/maps/custom_1.txt +++ b/maps/custom_1.txt @@ -1,20 +1,20 @@ #################### -#PC # -# C C C # +#P # # # -# C C # -# C C C # -# C # -# IC C I # -# C C # # # -# C # # # -# C CC # -# C # -# C # # C # # # +# I # +# # +# # +# # +# # +# # +# # +# # +# # +# # # # # # #################### diff --git a/maps/custom_2.txt b/maps/custom_2.txt index 3302a89..ca31d5c 100644 --- a/maps/custom_2.txt +++ b/maps/custom_2.txt @@ -1,12 +1,12 @@ #################### -# # +# P # # # # # # # # C # # # # I # -# P # +# # # # # # # # diff --git a/maps/custom_3.txt b/maps/custom_3.txt new file mode 100644 index 0000000..610902f --- /dev/null +++ b/maps/custom_3.txt @@ -0,0 +1,20 @@ +#################### +# # +# P I # +# I C # +# # +# C C # +# # +# C I # +# C I # +# # +# C C # +# # +# # +# # +# # +# # +# # +# # +# # +#################### diff --git a/maps/custom_4.txt b/maps/custom_4.txt new file mode 100644 index 0000000..aff2c99 --- /dev/null +++ b/maps/custom_4.txt @@ -0,0 +1,20 @@ +#################### +#P # +# # +# C I # +# # +# C # +# # +# C I # +# C # +# # +# # +# # +# # +# # +# # +# # +# # +# # +# # +#################### diff --git a/script/function.c b/script/function.c index 5f8ff8f..c652ea8 100644 --- a/script/function.c +++ b/script/function.c @@ -478,9 +478,9 @@ int inEditorLoop (char **tab2d, vect *dim_tab, vect *playerPos, vect *targets, screenDisplayGameSDL (tab2d, *dim_tab, display_user, playerPos, fov,direction); - int GRID_SIZE = 20; - int BLOCK_SIZE = 25; - int GRID_X_OFFSET =100; + int GRID_SIZE = display_user->size_box; + int BLOCK_SIZE = (display_user->size_window - display_user->size_menu)/GRID_SIZE; + int GRID_X_OFFSET =display_user->size_menu/2; int GRID_Y_OFFSET =0; while (!finish) {