2023-05-14 14:23:37 +02:00
|
|
|
import random
|
2023-06-07 12:43:21 +02:00
|
|
|
from termcolor import colored
|
2023-05-05 02:56:22 +02:00
|
|
|
from src.Engine import Engine
|
|
|
|
from src.obj.Waiter import Waiter
|
|
|
|
from src.obj.Kitchen import Kitchen
|
2023-06-08 02:28:59 +02:00
|
|
|
from src.controller.LayoutController import LayoutController
|
|
|
|
|
2023-06-07 12:43:21 +02:00
|
|
|
from src.controller.ImageController import ImageController
|
|
|
|
|
|
|
|
print(colored("Initialization...", "green"))
|
2023-05-05 02:56:22 +02:00
|
|
|
|
2023-05-26 03:02:16 +02:00
|
|
|
SCREEN_SIZE = [800, 800]
|
2023-06-07 12:43:21 +02:00
|
|
|
SQUARE_SIZE = 80
|
|
|
|
SLEEP_DURATION = 0.125
|
2023-06-08 02:28:59 +02:00
|
|
|
COUNT_OF_OBJECTS = 25
|
2023-06-07 12:43:21 +02:00
|
|
|
|
|
|
|
store = ImageController(SQUARE_SIZE)
|
|
|
|
waiter = Waiter([0, 0], 0, SQUARE_SIZE, SCREEN_SIZE, store)
|
|
|
|
kitchen = Kitchen([0, 0], 0, SQUARE_SIZE, SCREEN_SIZE, store)
|
2023-06-08 02:28:59 +02:00
|
|
|
engine = Engine(SCREEN_SIZE, SQUARE_SIZE, kitchen, waiter, SLEEP_DURATION)
|
|
|
|
layout = LayoutController(engine, store).create_and_subscribe(COUNT_OF_OBJECTS)
|
2023-05-05 02:56:22 +02:00
|
|
|
|
2023-06-07 12:43:21 +02:00
|
|
|
print(colored("Starting model...", "green"))
|
|
|
|
|
2023-05-05 02:56:22 +02:00
|
|
|
engine.loop()
|