2021-03-21 12:40:13 +01:00
|
|
|
import os
|
|
|
|
import pygame
|
2021-03-21 14:10:08 +01:00
|
|
|
BLOCK_SIZE = 100
|
|
|
|
DIRT = pygame.image.load(os.path.join('resources', 'dirt.png'))
|
|
|
|
DIRT = pygame.transform.scale(DIRT, (BLOCK_SIZE, BLOCK_SIZE))
|
2021-03-21 15:17:34 +01:00
|
|
|
FARMLAND = pygame.image.load(os.path.join('resources', 'farmland.png'))
|
|
|
|
FARMLAND = pygame.transform.scale(FARMLAND, (BLOCK_SIZE, BLOCK_SIZE))
|
2021-03-22 17:02:12 +01:00
|
|
|
FARMLANDMOIST = pygame.image.load(os.path.join('resources', 'farmland_moist.png'))
|
|
|
|
FARMLANDMOIST = pygame.transform.scale(FARMLANDMOIST, (BLOCK_SIZE, BLOCK_SIZE))
|
2021-03-21 12:40:13 +01:00
|
|
|
FPS = 1
|
|
|
|
WIDTH, HEIGHT = 1000, 1000
|
|
|
|
WIN = pygame.display.set_mode((WIDTH, HEIGHT))
|
|
|
|
TRACTOR = pygame.image.load(os.path.join('resources', 'tractor.png'))
|
2021-03-21 15:17:34 +01:00
|
|
|
TRACTOR = pygame.transform.scale(TRACTOR, (BLOCK_SIZE, BLOCK_SIZE))
|
2021-03-27 21:31:22 +01:00
|
|
|
TRACTOR_FERTILIZER = 2
|
2021-03-29 17:58:15 +02:00
|
|
|
TRACTOR_FUEL = 5
|
|
|
|
TRACTOR_WATER_LEVEL = 3
|
|
|
|
WHEAT_GROW_TIME = 50
|
2021-03-23 17:54:39 +01:00
|
|
|
WHEAT_MAXIMUM_STATE = 21
|
2021-03-23 17:14:46 +01:00
|
|
|
WHEATSTAGE1 = pygame.image.load(os.path.join('resources', 'wheat_stage1.png'))
|
|
|
|
WHEATSTAGE1 = pygame.transform.scale(WHEATSTAGE1, (BLOCK_SIZE, BLOCK_SIZE))
|
|
|
|
WHEATSTAGE2 = pygame.image.load(os.path.join('resources', 'wheat_stage2.png'))
|
|
|
|
WHEATSTAGE2 = pygame.transform.scale(WHEATSTAGE2, (BLOCK_SIZE, BLOCK_SIZE))
|
|
|
|
WHEATSTAGE3 = pygame.image.load(os.path.join('resources', 'wheat_stage3.png'))
|
|
|
|
WHEATSTAGE3 = pygame.transform.scale(WHEATSTAGE3, (BLOCK_SIZE, BLOCK_SIZE))
|
|
|
|
WHEATSTAGE4 = pygame.image.load(os.path.join('resources', 'wheat_stage4.png'))
|
|
|
|
WHEATSTAGE4 = pygame.transform.scale(WHEATSTAGE4, (BLOCK_SIZE, BLOCK_SIZE))
|
|
|
|
WHEATSTAGE5 = pygame.image.load(os.path.join('resources', 'wheat_stage5.png'))
|
|
|
|
WHEATSTAGE5 = pygame.transform.scale(WHEATSTAGE5, (BLOCK_SIZE, BLOCK_SIZE))
|