diff --git a/overcooked_simulator/gui_2d_vis/overcooked_gui.py b/overcooked_simulator/gui_2d_vis/overcooked_gui.py index c1ac47b458a8c6b2a78fdf000f933ba58f2f6b47..c2e5decdba5d8c67a69ef9b5acbb035cda1a17f6 100644 --- a/overcooked_simulator/gui_2d_vis/overcooked_gui.py +++ b/overcooked_simulator/gui_2d_vis/overcooked_gui.py @@ -250,7 +250,7 @@ class PyGameGUI: current_player_name, ActionType.MOVEMENT, move_vec, - duration=1 / self.time_delta, # TODO use fps of previous clock step + duration=self.time_delta, # TODO use fps of previous clock step ) self.send_action(action) @@ -1031,8 +1031,8 @@ class PyGameGUI: self.running = True while self.running: try: - self.time_delta = clock.tick(self.FPS) / 1000.0 - + self.time_delta = clock.tick(self.FPS) / 1000 + print(self.time_delta) # print(clock.get_time()) for event in pygame.event.get():