This commit is contained in:
John Doe 2021-03-29 20:51:47 +02:00
parent 4960362fb5
commit b32d77fe3f
9 changed files with 17 additions and 23 deletions

View File

@ -1,7 +1,7 @@
import random import random
from Main.Field import Field from Field import Field
from Main.constants import * from constants import *
states = ['toPlow', 'toSeed', 'toFertilize', 'toWater', 'toCut'] states = ['toPlow', 'toSeed', 'toFertilize', 'toWater', 'toCut']

1
Main

@ -1 +0,0 @@
Subproject commit 3fe181efa0c9cf6c89d0cdc482fcdee9655e9368

View File

@ -1,5 +0,0 @@
from Main import Board
board = Board.generate()
print(board[0][0])

View File

@ -1,5 +1,5 @@
from Main.TractorLoad import TillageUnit from TractorLoad import TillageUnit
from Main.constants import HORIZONTAL_TILES_NUMBER, VERTICAL_TILES_NUMBER from constants import HORIZONTAL_TILES_NUMBER, VERTICAL_TILES_NUMBER
class Tractor: class Tractor:

View File

@ -1,5 +1,5 @@
from Main import TractorLoad
from Main.TractorLoad import TillageUnit from TractorLoad import TillageUnit
def action(field, tractor): def action(field, tractor):

View File

@ -1,6 +1,6 @@
from Main.TractorLoad import TillageUnit from TractorLoad import TillageUnit
from Main.constants import * from constants import *
from Main.images import * from images import *
import pygame import pygame

View File

@ -1,4 +1,4 @@
from Main.drawUI import * from drawUI import *
import pygame import pygame

View File

@ -1,7 +1,7 @@
import pygame import pygame
from constants import * from constants import *
from Main.constants import TILE_SIZE from constants import TILE_SIZE
tractor_up_image = pygame.image.load("resources/traktor_up.png") tractor_up_image = pygame.image.load("resources/traktor_up.png")
tractor_up = pygame.transform.scale(tractor_up_image, (TILE_SIZE, TILE_SIZE)) tractor_up = pygame.transform.scale(tractor_up_image, (TILE_SIZE, TILE_SIZE))

12
main.py
View File

@ -1,12 +1,12 @@
import pygame import pygame
# wersja 1.05 # wersja 1.05
from Main import Board, driving, drawUI import Board, driving, drawUI
from Main.Tractor import Tractor from Tractor import Tractor
from Main.TractorAction import action, chooseToolset from TractorAction import action, chooseToolset
from Main.TractorLoad import TillageUnit from TractorLoad import TillageUnit
from Main.constants import * from constants import *
from Main.driving import autodrive, isComebackTime from driving import autodrive, isComebackTime
pygame.init() pygame.init()