Dodane pliki do podprojektów indywidualnych
This commit is contained in:
parent
3d7efc6ef9
commit
86ce81245b
9
Justyna.py
Normal file
9
Justyna.py
Normal file
@ -0,0 +1,9 @@
|
||||
class main():
|
||||
def __init__(self,traktor,field,ui,path):
|
||||
self.traktor = traktor
|
||||
self.field = field
|
||||
self.ui = ui
|
||||
self.path = path
|
||||
|
||||
def main(self):
|
||||
pass
|
9
Kamila.py
Normal file
9
Kamila.py
Normal file
@ -0,0 +1,9 @@
|
||||
class main():
|
||||
def __init__(self,traktor,field,ui,path):
|
||||
self.traktor = traktor
|
||||
self.field = field
|
||||
self.ui = ui
|
||||
self.path = path
|
||||
|
||||
def main(self):
|
||||
pass
|
9
Marcin.py
Normal file
9
Marcin.py
Normal file
@ -0,0 +1,9 @@
|
||||
class main():
|
||||
def __init__(self,traktor,field,ui,path):
|
||||
self.traktor = traktor
|
||||
self.field = field
|
||||
self.ui = ui
|
||||
self.path = path
|
||||
|
||||
def main(self):
|
||||
pass
|
9
Piotrek.py
Normal file
9
Piotrek.py
Normal file
@ -0,0 +1,9 @@
|
||||
class main():
|
||||
def __init__(self,traktor,field,ui,path):
|
||||
self.traktor = traktor
|
||||
self.field = field
|
||||
self.ui = ui
|
||||
self.path = path
|
||||
|
||||
def main(self):
|
||||
pass
|
18
main.py
18
main.py
@ -1,11 +1,15 @@
|
||||
import pygame, sys
|
||||
import tractor,pathfinding,field,ui
|
||||
import tractor,pathfinding,field,ui,Justyna,Kamila,Marcin,Piotrek
|
||||
from pygame.locals import *
|
||||
|
||||
pole = field.field()
|
||||
path = pathfinding.pathfinding()
|
||||
traktor = tractor.tractor(pole)
|
||||
UI = ui.game_ui(traktor,pole)
|
||||
j = Justyna.main(traktor,pole,UI,path)
|
||||
k = Kamila.main(traktor,pole,UI,path)
|
||||
neuro = Marcin.main(traktor,pole,UI,path)
|
||||
p = Piotrek.main(traktor,pole,UI,path)
|
||||
pygame.init()
|
||||
UI.update()
|
||||
UI.update()
|
||||
@ -41,6 +45,18 @@ while True:
|
||||
print(traktor.get_poz())
|
||||
if key[K_F11]:
|
||||
print(traktor.get_field_value())
|
||||
if key[K_F5]:
|
||||
#Dla projektu Justyny
|
||||
j.main()
|
||||
if key[K_F6]:
|
||||
# Dla projektu Kamili
|
||||
k.main()
|
||||
if key[K_F7]:
|
||||
# Dla projektu Marcina
|
||||
neuro.main()
|
||||
if key[K_F8]:
|
||||
# Dla projektu Piotrka
|
||||
p.main()
|
||||
UI.update()
|
||||
UI.update()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user