dodany A* - coś jeszcze nie działa

This commit is contained in:
majkellll 2023-05-15 08:07:08 +02:00
parent 311a2d0757
commit af32df4474
2 changed files with 14 additions and 8 deletions

View File

@ -4,6 +4,7 @@ from speedBump import SpeedBump
from street import Street
from gameContext import GameContext
class City:
cans: List[GarbageCan]
bumps: List[SpeedBump]

View File

@ -1,4 +1,6 @@
import pygame
from city import City
from gameEventHandler import handle_game_event
from gameContext import GameContext
from startup import startup
@ -17,8 +19,11 @@ game_context = GameContext()
game_context.dust_car_pil = dust_car_pil
game_context.dust_car_pygame = pygame.image.frombuffer(dust_car_pil.tobytes(), dust_car_pil.size, 'RGB')
game_context.canvas = canvas
city = City()
startup(game_context)
collect_garbage(game_context)
collect_garbage(game_context, city)
exit = False