fix map custom

This commit is contained in:
2025-01-08 15:40:36 +01:00
5 changed files with 56 additions and 16 deletions

View File

@@ -1,20 +1,20 @@
#################### ####################
#PC # #P #
# C C C #
# # # #
# C C #
# C C C #
# C #
# IC C I #
# C C #
# # # #
# C #
# # # #
# C CC #
# C #
# C #
# C # # C #
# # # #
# I #
# #
# #
# #
# #
# #
# #
# #
# #
# #
# # # #
# # # #
#################### ####################

View File

@@ -1,12 +1,12 @@
#################### ####################
# # # P #
# # # #
# # # #
# # # #
# C # # C #
# # # #
# I # # I #
# P # # #
# # # #
# # # #
# # # #

20
maps/custom_3.txt Normal file
View File

@@ -0,0 +1,20 @@
####################
# #
# P I #
# I C #
# #
# C C #
# #
# C I #
# C I #
# #
# C C #
# #
# #
# #
# #
# #
# #
# #
# #
####################

20
maps/custom_4.txt Normal file
View File

@@ -0,0 +1,20 @@
####################
#P #
# #
# C I #
# #
# C #
# #
# C I #
# C #
# #
# #
# #
# #
# #
# #
# #
# #
# #
# #
####################

View File

@@ -478,9 +478,9 @@ int inEditorLoop (char **tab2d, vect *dim_tab, vect *playerPos, vect *targets,
screenDisplayGameSDL (tab2d, *dim_tab, display_user, playerPos, fov,direction); screenDisplayGameSDL (tab2d, *dim_tab, display_user, playerPos, fov,direction);
int GRID_SIZE = 20; int GRID_SIZE = display_user->size_box;
int BLOCK_SIZE = 25; int BLOCK_SIZE = (display_user->size_window - display_user->size_menu)/GRID_SIZE;
int GRID_X_OFFSET =100; int GRID_X_OFFSET =display_user->size_menu/2;
int GRID_Y_OFFSET =0; int GRID_Y_OFFSET =0;
while (!finish) while (!finish)
{ {