diff --git a/maps/custom_1.txt b/maps/custom_1.txt new file mode 100644 index 0000000..0cc2d74 --- /dev/null +++ b/maps/custom_1.txt @@ -0,0 +1,20 @@ + ################### +#PC # +# C # +#C C CC# # +# C C # +# CC C C C # +# CC C C # +# C I # +# # +# C C # +# # +# II CC # +# # +# # +# # +# # +# # +# # +# # +#################### diff --git a/maps/custom_2.txt b/maps/custom_2.txt new file mode 100644 index 0000000..019d8e7 --- /dev/null +++ b/maps/custom_2.txt @@ -0,0 +1,20 @@ +#################### +#P # +# # +# # +# # +# C # +# # +# I # +# # +# # +# # +# # +# # +# # +# # +# # +# # +# # +# # +#################### diff --git a/maps/custom_3.txt b/maps/custom_3.txt new file mode 100644 index 0000000..3250bb7 --- /dev/null +++ b/maps/custom_3.txt @@ -0,0 +1,20 @@ +#################### +# # +# # +# P # +# # +# C # +# # +# I # +# # +# # +# # +# # +# # +# # +# # +# # +# # +# # +# # +#################### diff --git a/maps/custom_4.txt b/maps/custom_4.txt new file mode 100644 index 0000000..019d8e7 --- /dev/null +++ b/maps/custom_4.txt @@ -0,0 +1,20 @@ +#################### +#P # +# # +# # +# # +# C # +# # +# I # +# # +# # +# # +# # +# # +# # +# # +# # +# # +# # +# # +#################### diff --git a/script/function.c b/script/function.c index 5f8ff8f..527e30d 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/2))/GRID_SIZE; + int GRID_X_OFFSET =display_user->size_window - display_user->size_menu/2; int GRID_Y_OFFSET =0; while (!finish) {