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