editor bug

This commit is contained in:
cyjullien1
2025-01-08 15:36:00 +01:00
parent a67f844855
commit 8bc1813d60
5 changed files with 83 additions and 3 deletions

20
maps/custom_1.txt Normal file
View File

@@ -0,0 +1,20 @@
###################
#PC #
# C #
#C C CC# #
# C C #
# CC C C C #
# CC C C #
# C I #
# #
# C C #
# #
# II CC #
# #
# #
# #
# #
# #
# #
# #
####################

20
maps/custom_2.txt Normal file
View File

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

20
maps/custom_3.txt Normal file
View File

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

20
maps/custom_4.txt Normal file
View File

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

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/2))/GRID_SIZE;
int GRID_X_OFFSET =100; int GRID_X_OFFSET =display_user->size_window - display_user->size_menu/2;
int GRID_Y_OFFSET =0; int GRID_Y_OFFSET =0;
while (!finish) while (!finish)
{ {