IntelligentTractor/main.py

35 lines
772 B
Python
Raw Normal View History

2023-03-07 12:28:13 +01:00
import pygame
import sys
import tractor
import src.screen as screen
import src.plant as plant
from src.Tractor import Tractor as ractor2
#import src.tractor as tractor2
2023-03-07 12:28:13 +01:00
# pygame initialization
2023-03-07 12:28:13 +01:00
pygame.init()
pygame.mouse.set_visible(False)
# #new tractor sprite - todo
# tr=tractor2('oil','manual',36,36)
# tr_group = pygame.sprite.Group()
# tr_group.add()
2023-03-07 12:28:13 +01:00
# creating agent
myTractor = tractor.Tractor
#if __name__ == "__main__":
running = True
2023-03-07 12:28:13 +01:00
while running:
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
pygame.quit()
sys.exit()
# defines agent movement
tractor.movement(myTractor)
# screen visualisation
screen.set_screen(myTractor)
#pygame.quit()