diff options
Diffstat (limited to 'src/sliceitoff/enemies/enemies.py')
-rw-r--r-- | src/sliceitoff/enemies/enemies.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sliceitoff/enemies/enemies.py b/src/sliceitoff/enemies/enemies.py index 7bf5efa..b1c415d 100644 --- a/src/sliceitoff/enemies/enemies.py +++ b/src/sliceitoff/enemies/enemies.py @@ -42,7 +42,7 @@ class EnemySprite(pygame.sprite.Sprite): class EnemyBall(EnemySprite): def __init__(self): super().__init__() - letter = Fonts.fonts['8x8'].get(2).subsurface((0,0,8,8)) + letter = Fonts.fonts['8x8'].get(randrange(1,3)).subsurface((0,0,8,8)) colored = letter.fill( "black", special_flags = pygame.BLEND_RGBA_MULT) self.image = pygame.transform.scale_by(letter, 1_000 * Scaling.factor) self.update() @@ -51,7 +51,7 @@ class EnemyBall(EnemySprite): class Enemies(pygame.sprite.Group): def __init__(self, field = None): super().__init__() - for _ in range(3 + (Stats.level-1) * 2): + for _ in range(Stats.enemies): enemy = EnemyBall() enemy.set_position( (randrange(0,300_000), randrange(0,200_000)) ) enemy.set_movement( (randrange(0,200)-100, randrange(0,200)-100) ) |