parent
4dc48d3c51
commit
bd91525bf4
3
main.py
3
main.py
@ -13,7 +13,6 @@ def draw_line(screen: pygame.display, settings):
|
||||
(line * settings.tile_size, settings.screen_height))
|
||||
|
||||
|
||||
# TODO: dodać typ gleby do tile
|
||||
# TODO: add Sprite to every class and store Tile objects as Sprite group
|
||||
|
||||
def main():
|
||||
@ -30,7 +29,7 @@ def main():
|
||||
background_image = pygame.transform.scale(background_image, (settings.screen_width, settings.screen_height))
|
||||
|
||||
run = True
|
||||
|
||||
|
||||
while run:
|
||||
screen.blit(background_image, (0, 0))
|
||||
world.draw(screen)
|
||||
|
8
src/tractor_addons.py
Normal file
8
src/tractor_addons.py
Normal file
@ -0,0 +1,8 @@
|
||||
class Addon:
|
||||
"""class representing plants"""
|
||||
|
||||
def __init__(self, type, capacity, application):
|
||||
|
||||
self.type = type
|
||||
self.capacity = capacity
|
||||
self.application = application
|
Loading…
Reference in New Issue
Block a user