dodany A* - coś jeszcze nie działa
This commit is contained in:
parent
311a2d0757
commit
af32df4474
1
city.py
1
city.py
@ -4,6 +4,7 @@ from speedBump import SpeedBump
|
||||
from street import Street
|
||||
from gameContext import GameContext
|
||||
|
||||
|
||||
class City:
|
||||
cans: List[GarbageCan]
|
||||
bumps: List[SpeedBump]
|
||||
|
7
main.py
7
main.py
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user