Aggiungi supporto per la pausa tramite un nuovo tasto nella classe KeyBindings

This commit is contained in:
2024-12-23 17:03:23 +01:00
parent 3eecc98304
commit 3ee958b235
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ class KeyBindings:
elif key == "Space" or key == 1:
self.play_sound("PUTDOWN.WAV")
self.spawn_bomb(self.pointer)
elif key == "P":
elif key == "P" or key == 16:
self.pause = not self.pause
# elif key == "mouse":
# adjusted_coords = (coords[0]//self.cell_size*2, coords[1]//self.cell_size*2)