summaryrefslogtreecommitdiff
path: root/src/sliceitoff/field/field.py
diff options
context:
space:
mode:
authorViljami Ilola <+@hix.fi>2024-03-18 13:05:58 +0200
committerViljami Ilola <+@hix.fi>2024-03-18 13:05:58 +0200
commitb00fe8fe50392a75529864fe03399fa3a0976143 (patch)
tree4f61dbc5b771605984bb3c34d0b8a423c8a8c24c /src/sliceitoff/field/field.py
parent8781f3b04dff7434d302f7606cdcb0d2c1523cf8 (diff)
internal resolution x10. get rid of rest get_sprites functions
Diffstat (limited to 'src/sliceitoff/field/field.py')
-rw-r--r--src/sliceitoff/field/field.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sliceitoff/field/field.py b/src/sliceitoff/field/field.py
index a6084f1..979590e 100644
--- a/src/sliceitoff/field/field.py
+++ b/src/sliceitoff/field/field.py
@@ -16,7 +16,7 @@ class FieldSprite(pygame.sprite.Sprite):
class Field():
def __init__(self):
self.sprites = pygame.sprite.Group()
- self.sprites.add(FieldSprite( (0, 0, 40_000, 28_000) ))
+ self.sprites.add(FieldSprite( (0, 0, 400_000, 280_000) ))
def coordinates_inside_area(self, area, x, y) -> bool:
if x < area[0]:
@@ -68,5 +68,6 @@ class Field():
return Scaling.area_to_rect((ax, y2, aw, y3-y2))
def update(self, dt):
+ """ Update sprites basis of dt. dt = milliseconds from last update """
pass
\ No newline at end of file