detection de click dans lediteur

This commit is contained in:
cyjullien1
2025-01-06 12:55:04 +01:00
parent e8c179fa83
commit 9c5727af67
3 changed files with 23 additions and 23 deletions

View File

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

View File

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

View File

@@ -63,7 +63,7 @@ int main ()
{ {
printf("editeur de map"); printf("editeur de map");
//newmap //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 else
{ {
@@ -107,6 +107,8 @@ int main ()
fclose(src); fclose(src);
fclose(file); fclose(file);
tab2d = creatArea2D(SIZE_PLAY, SIZE_PLAY);
targets = fileToTab2D(txt, tab2d, SIZE_PLAY, playerPos, &nbr_targets);
output = -2; output = -2;
} }
} }