From 749d47df38540342a7fe19029284b8115b03574a Mon Sep 17 00:00:00 2001 From: Viljami Ilola <+@hix.fi> Date: Sun, 24 Mar 2024 12:32:42 +0200 Subject: scoring --- src/sliceitoff/enemies/enemies.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sliceitoff/enemies/enemies.py') 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) ) -- cgit v1.2.3