From 047ef87babbea43faf85db55e6aea2303adf6eab Mon Sep 17 00:00:00 2001 From: Mateusz Dokowicz Date: Thu, 30 Mar 2023 18:18:46 +0200 Subject: [PATCH] Delete import non existing file --- main.py | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/main.py b/main.py index 6c2f933..52690b9 100644 --- a/main.py +++ b/main.py @@ -2,7 +2,6 @@ from random import randint import pygame -from Interface.vacuum_render import initial_draw from domain.commands.random_cat_move_command import RandomCatMoveCommand from domain.commands.vacuum_move_command import VacuumMoveCommand from domain.entities.cat import Cat @@ -14,6 +13,7 @@ from view.renderer import Renderer # initial_draw(500, 10) + class Main: def __init__(self): tiles_x = 10 @@ -44,13 +44,21 @@ class Main: self.running = False if event.type == pygame.KEYDOWN: if event.key == pygame.K_LEFT: - self.commands.append(VacuumMoveCommand(self.world, self.world.vacuum, (-1, 0))) + self.commands.append( + VacuumMoveCommand(self.world, self.world.vacuum, (-1, 0)) + ) if event.key == pygame.K_RIGHT: - self.commands.append(VacuumMoveCommand(self.world, self.world.vacuum, (1, 0))) + self.commands.append( + VacuumMoveCommand(self.world, self.world.vacuum, (1, 0)) + ) if event.key == pygame.K_UP: - self.commands.append(VacuumMoveCommand(self.world, self.world.vacuum, (0, -1))) + self.commands.append( + VacuumMoveCommand(self.world, self.world.vacuum, (0, -1)) + ) if event.key == pygame.K_DOWN: - self.commands.append(VacuumMoveCommand(self.world, self.world.vacuum, (0, 1))) + self.commands.append( + VacuumMoveCommand(self.world, self.world.vacuum, (0, 1)) + ) def update(self): self.commands.append(RandomCatMoveCommand(self.world, self.world.cat))