SzybciorSmartTraktor/main.py
2022-03-08 22:30:31 +01:00

32 lines
707 B
Python

import pygame
WIDTH, HEIGHT = 800, 800
WIN = pygame.display.set_mode((WIDTH, HEIGHT))
pygame.display.set_caption("Sztuczna Inteligencja")
FPS = 30
AGENT_IMG = pygame.image.load("dot-22-433567.png")
AGENT = pygame.transform.scale(AGENT_IMG, (50, 50))
def draw_window(agent):
WIN.fill((255,255,255))
WIN.blit(AGENT, (agent.x, agent.y))
pygame.display.update()
def main():
clock = pygame.time.Clock()
run = True
agent = pygame.Rect(0, 0, 50, 50)
while run:
for event in pygame.event.get():
if event.type == pygame.QUIT:
run = False
draw_window(agent)
pygame.quit()
if __name__ == "__main__":
main()