From b00fe8fe50392a75529864fe03399fa3a0976143 Mon Sep 17 00:00:00 2001 From: Viljami Ilola <+@hix.fi> Date: Mon, 18 Mar 2024 13:05:58 +0200 Subject: internal resolution x10. get rid of rest get_sprites functions --- src/sliceitoff/field/field.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/sliceitoff/field/field.py') 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 -- cgit v1.2.3