misc changes

This commit is contained in:
eugenep 2021-05-31 13:37:15 +02:00
parent ce3ea0c15e
commit a1a2ef6aae

View File

@ -120,11 +120,11 @@ class Game:
self.player.parse_maze_moves()
self.i_like_to_move_it()
self.wentyl_bezpieczenstwa = 1
if event.key == pg.K_F3:
if event.key == pg.K_F3 and self.wentyl_bezpieczenstwa == 0:
pg.event.clear()
player_moves = BFS.run()
self.graph_move(player_moves)
#self.wentyl_bezpieczenstwa = 1
self.wentyl_bezpieczenstwa = 1
if event.key == pg.K_F4 and self.wentyl_bezpieczenstwa == 0:
pg.event.clear()
#print("test1")