summaryrefslogtreecommitdiff
path: root/src/sliceitoff/enemies
diff options
context:
space:
mode:
authorViljami Ilola <+@hix.fi>2024-03-24 02:26:24 +0200
committerViljami Ilola <+@hix.fi>2024-03-24 02:26:24 +0200
commitc22159dfb5abda283d76248b474098cc2110935c (patch)
treed82124a99704efd2901999a477714d8410c626a5 /src/sliceitoff/enemies
parentcd128f5bc4fae39fb7e77683758d437f64eb4203 (diff)
enemies from cp437
Diffstat (limited to 'src/sliceitoff/enemies')
-rw-r--r--src/sliceitoff/enemies/enemies.py6
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()