diff options
author | Viljami Ilola <+@hix.fi> | 2024-03-24 02:26:24 +0200 |
---|---|---|
committer | Viljami Ilola <+@hix.fi> | 2024-03-24 02:26:24 +0200 |
commit | c22159dfb5abda283d76248b474098cc2110935c (patch) | |
tree | d82124a99704efd2901999a477714d8410c626a5 /src/sliceitoff/enemies | |
parent | cd128f5bc4fae39fb7e77683758d437f64eb4203 (diff) |
enemies from cp437
Diffstat (limited to 'src/sliceitoff/enemies')
-rw-r--r-- | src/sliceitoff/enemies/enemies.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/sliceitoff/enemies/enemies.py b/src/sliceitoff/enemies/enemies.py index 3f206c7..7bf5efa 100644 --- a/src/sliceitoff/enemies/enemies.py +++ b/src/sliceitoff/enemies/enemies.py @@ -2,7 +2,7 @@ import pygame from random import randrange from display import Scaling -from images import Images +from images import Fonts from stats import Stats class EnemySprite(pygame.sprite.Sprite): @@ -42,7 +42,9 @@ class EnemySprite(pygame.sprite.Sprite): class EnemyBall(EnemySprite): def __init__(self): super().__init__() - self.image = Images.surfaces['ball'] + letter = Fonts.fonts['8x8'].get(2).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() |