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 | |
parent | cd128f5bc4fae39fb7e77683758d437f64eb4203 (diff) |
enemies from cp437
Diffstat (limited to 'src')
41 files changed, 4 insertions, 3 deletions
diff --git a/src/sliceitoff/assets/hack/0.png b/src/sliceitoff/assets/hack/0.png Binary files differdeleted file mode 100644 index 67c3877..0000000 --- a/src/sliceitoff/assets/hack/0.png +++ /dev/null diff --git a/src/sliceitoff/assets/hack/1.png b/src/sliceitoff/assets/hack/1.png Binary files differdeleted file mode 100644 index c7fdf86..0000000 --- a/src/sliceitoff/assets/hack/1.png +++ /dev/null diff --git a/src/sliceitoff/assets/hack/2.png b/src/sliceitoff/assets/hack/2.png Binary files differdeleted file mode 100644 index bf27c68..0000000 --- a/src/sliceitoff/assets/hack/2.png +++ /dev/null diff --git a/src/sliceitoff/assets/hack/3.png b/src/sliceitoff/assets/hack/3.png Binary files differdeleted file mode 100644 index a003b03..0000000 --- a/src/sliceitoff/assets/hack/3.png +++ /dev/null diff --git a/src/sliceitoff/assets/hack/4.png b/src/sliceitoff/assets/hack/4.png Binary files differdeleted file mode 100644 index 6841587..0000000 --- a/src/sliceitoff/assets/hack/4.png +++ /dev/null diff --git a/src/sliceitoff/assets/hack/5.png b/src/sliceitoff/assets/hack/5.png Binary files differdeleted file mode 100644 index a999722..0000000 --- a/src/sliceitoff/assets/hack/5.png +++ /dev/null diff --git a/src/sliceitoff/assets/hack/6.png b/src/sliceitoff/assets/hack/6.png Binary files differdeleted file mode 100644 index 8de8e0c..0000000 --- a/src/sliceitoff/assets/hack/6.png +++ /dev/null diff --git a/src/sliceitoff/assets/hack/7.png b/src/sliceitoff/assets/hack/7.png Binary files differdeleted file mode 100644 index 5984a91..0000000 --- a/src/sliceitoff/assets/hack/7.png +++ /dev/null diff --git a/src/sliceitoff/assets/hack/8.png b/src/sliceitoff/assets/hack/8.png Binary files differdeleted file mode 100644 index 5d24fac..0000000 --- a/src/sliceitoff/assets/hack/8.png +++ /dev/null diff --git a/src/sliceitoff/assets/hack/9.png b/src/sliceitoff/assets/hack/9.png Binary files differdeleted file mode 100644 index dcf9ea7..0000000 --- a/src/sliceitoff/assets/hack/9.png +++ /dev/null diff --git a/src/sliceitoff/assets/hack/A.png b/src/sliceitoff/assets/hack/A.png Binary files differdeleted file mode 100644 index 7c8d5d9..0000000 --- a/src/sliceitoff/assets/hack/A.png +++ /dev/null diff --git a/src/sliceitoff/assets/hack/B.png b/src/sliceitoff/assets/hack/B.png Binary files differdeleted file mode 100644 index 7736d5f..0000000 --- a/src/sliceitoff/assets/hack/B.png +++ /dev/null diff --git a/src/sliceitoff/assets/hack/C.png b/src/sliceitoff/assets/hack/C.png Binary files differdeleted file mode 100644 index 2f3b14a..0000000 --- a/src/sliceitoff/assets/hack/C.png +++ /dev/null diff --git a/src/sliceitoff/assets/hack/D.png b/src/sliceitoff/assets/hack/D.png Binary files differdeleted file mode 100644 index 7734b77..0000000 --- a/src/sliceitoff/assets/hack/D.png +++ /dev/null diff --git a/src/sliceitoff/assets/hack/E.png b/src/sliceitoff/assets/hack/E.png Binary files differdeleted file mode 100644 index 50bf2fc..0000000 --- a/src/sliceitoff/assets/hack/E.png +++ /dev/null diff --git a/src/sliceitoff/assets/hack/F.png b/src/sliceitoff/assets/hack/F.png Binary files differdeleted file mode 100644 index acbc252..0000000 --- a/src/sliceitoff/assets/hack/F.png +++ /dev/null diff --git a/src/sliceitoff/assets/hack/G.png b/src/sliceitoff/assets/hack/G.png Binary files differdeleted file mode 100644 index 2a67982..0000000 --- a/src/sliceitoff/assets/hack/G.png +++ /dev/null diff --git a/src/sliceitoff/assets/hack/H.png b/src/sliceitoff/assets/hack/H.png Binary files differdeleted file mode 100644 index b51df02..0000000 --- a/src/sliceitoff/assets/hack/H.png +++ /dev/null diff --git a/src/sliceitoff/assets/hack/I.png b/src/sliceitoff/assets/hack/I.png Binary files differdeleted file mode 100644 index e856fee..0000000 --- a/src/sliceitoff/assets/hack/I.png +++ /dev/null diff --git a/src/sliceitoff/assets/hack/J.png b/src/sliceitoff/assets/hack/J.png Binary files differdeleted file mode 100644 index 7803a3d..0000000 --- a/src/sliceitoff/assets/hack/J.png +++ /dev/null diff --git a/src/sliceitoff/assets/hack/K.png b/src/sliceitoff/assets/hack/K.png Binary files differdeleted file mode 100644 index 1639dd2..0000000 --- a/src/sliceitoff/assets/hack/K.png +++ /dev/null diff --git a/src/sliceitoff/assets/hack/L.png b/src/sliceitoff/assets/hack/L.png Binary files differdeleted file mode 100644 index e7b8e12..0000000 --- a/src/sliceitoff/assets/hack/L.png +++ /dev/null diff --git a/src/sliceitoff/assets/hack/M.png b/src/sliceitoff/assets/hack/M.png Binary files differdeleted file mode 100644 index af0dbcb..0000000 --- a/src/sliceitoff/assets/hack/M.png +++ /dev/null diff --git a/src/sliceitoff/assets/hack/N.png b/src/sliceitoff/assets/hack/N.png Binary files differdeleted file mode 100644 index 63d1fba..0000000 --- a/src/sliceitoff/assets/hack/N.png +++ /dev/null diff --git a/src/sliceitoff/assets/hack/O.png b/src/sliceitoff/assets/hack/O.png Binary files differdeleted file mode 100644 index 3522877..0000000 --- a/src/sliceitoff/assets/hack/O.png +++ /dev/null diff --git a/src/sliceitoff/assets/hack/P.png b/src/sliceitoff/assets/hack/P.png Binary files differdeleted file mode 100644 index d3c777e..0000000 --- a/src/sliceitoff/assets/hack/P.png +++ /dev/null diff --git a/src/sliceitoff/assets/hack/Q.png b/src/sliceitoff/assets/hack/Q.png Binary files differdeleted file mode 100644 index a5c9c67..0000000 --- a/src/sliceitoff/assets/hack/Q.png +++ /dev/null diff --git a/src/sliceitoff/assets/hack/R.png b/src/sliceitoff/assets/hack/R.png Binary files differdeleted file mode 100644 index e23b545..0000000 --- a/src/sliceitoff/assets/hack/R.png +++ /dev/null diff --git a/src/sliceitoff/assets/hack/S.png b/src/sliceitoff/assets/hack/S.png Binary files differdeleted file mode 100644 index a1e75e2..0000000 --- a/src/sliceitoff/assets/hack/S.png +++ /dev/null diff --git a/src/sliceitoff/assets/hack/T.png b/src/sliceitoff/assets/hack/T.png Binary files differdeleted file mode 100644 index a1e75e2..0000000 --- a/src/sliceitoff/assets/hack/T.png +++ /dev/null diff --git a/src/sliceitoff/assets/hack/U.png b/src/sliceitoff/assets/hack/U.png Binary files differdeleted file mode 100644 index 8d46340..0000000 --- a/src/sliceitoff/assets/hack/U.png +++ /dev/null diff --git a/src/sliceitoff/assets/hack/V.png b/src/sliceitoff/assets/hack/V.png Binary files differdeleted file mode 100644 index f88ee16..0000000 --- a/src/sliceitoff/assets/hack/V.png +++ /dev/null diff --git a/src/sliceitoff/assets/hack/W.png b/src/sliceitoff/assets/hack/W.png Binary files differdeleted file mode 100644 index 672ab28..0000000 --- a/src/sliceitoff/assets/hack/W.png +++ /dev/null diff --git a/src/sliceitoff/assets/hack/X.png b/src/sliceitoff/assets/hack/X.png Binary files differdeleted file mode 100644 index 49d1f87..0000000 --- a/src/sliceitoff/assets/hack/X.png +++ /dev/null diff --git a/src/sliceitoff/assets/hack/Y.png b/src/sliceitoff/assets/hack/Y.png Binary files differdeleted file mode 100644 index 4386da7..0000000 --- a/src/sliceitoff/assets/hack/Y.png +++ /dev/null diff --git a/src/sliceitoff/assets/hack/Z.png b/src/sliceitoff/assets/hack/Z.png Binary files differdeleted file mode 100644 index 88a3587..0000000 --- a/src/sliceitoff/assets/hack/Z.png +++ /dev/null diff --git a/src/sliceitoff/assets/hack/Ä.png b/src/sliceitoff/assets/hack/Ä.png Binary files differdeleted file mode 100644 index 9f6772b..0000000 --- a/src/sliceitoff/assets/hack/Ä.png +++ /dev/null diff --git a/src/sliceitoff/assets/hack/Å.png b/src/sliceitoff/assets/hack/Å.png Binary files differdeleted file mode 100644 index 706c37a..0000000 --- a/src/sliceitoff/assets/hack/Å.png +++ /dev/null diff --git a/src/sliceitoff/assets/hack/Ö.png b/src/sliceitoff/assets/hack/Ö.png Binary files differdeleted file mode 100644 index d5f08f7..0000000 --- a/src/sliceitoff/assets/hack/Ö.png +++ /dev/null diff --git a/src/sliceitoff/assets/images.lst b/src/sliceitoff/assets/images.lst index cf8107d..3637a65 100644 --- a/src/sliceitoff/assets/images.lst +++ b/src/sliceitoff/assets/images.lst @@ -1,2 +1 @@ player_00 assets player 00.png -ball assets ball 00.png 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() |