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/assets/hack/0.png | Bin 4838 -> 0 bytes src/sliceitoff/assets/hack/1.png | Bin 2712 -> 0 bytes src/sliceitoff/assets/hack/2.png | Bin 3478 -> 0 bytes src/sliceitoff/assets/hack/3.png | Bin 4395 -> 0 bytes src/sliceitoff/assets/hack/4.png | Bin 3041 -> 0 bytes src/sliceitoff/assets/hack/5.png | Bin 3493 -> 0 bytes src/sliceitoff/assets/hack/6.png | Bin 5169 -> 0 bytes src/sliceitoff/assets/hack/7.png | Bin 2097 -> 0 bytes src/sliceitoff/assets/hack/8.png | Bin 5677 -> 0 bytes src/sliceitoff/assets/hack/9.png | Bin 5069 -> 0 bytes src/sliceitoff/assets/hack/A.png | Bin 3688 -> 0 bytes src/sliceitoff/assets/hack/B.png | Bin 3730 -> 0 bytes src/sliceitoff/assets/hack/C.png | Bin 4123 -> 0 bytes src/sliceitoff/assets/hack/D.png | Bin 3472 -> 0 bytes src/sliceitoff/assets/hack/E.png | Bin 1525 -> 0 bytes src/sliceitoff/assets/hack/F.png | Bin 1518 -> 0 bytes src/sliceitoff/assets/hack/G.png | Bin 4310 -> 0 bytes src/sliceitoff/assets/hack/H.png | Bin 1623 -> 0 bytes src/sliceitoff/assets/hack/I.png | Bin 1622 -> 0 bytes src/sliceitoff/assets/hack/J.png | Bin 2673 -> 0 bytes src/sliceitoff/assets/hack/K.png | Bin 4676 -> 0 bytes src/sliceitoff/assets/hack/L.png | Bin 1518 -> 0 bytes src/sliceitoff/assets/hack/M.png | Bin 2879 -> 0 bytes src/sliceitoff/assets/hack/N.png | Bin 2974 -> 0 bytes src/sliceitoff/assets/hack/O.png | Bin 4744 -> 0 bytes src/sliceitoff/assets/hack/P.png | Bin 2852 -> 0 bytes src/sliceitoff/assets/hack/Q.png | Bin 5242 -> 0 bytes src/sliceitoff/assets/hack/R.png | Bin 3900 -> 0 bytes src/sliceitoff/assets/hack/S.png | Bin 4851 -> 0 bytes src/sliceitoff/assets/hack/T.png | Bin 4851 -> 0 bytes src/sliceitoff/assets/hack/U.png | Bin 2898 -> 0 bytes src/sliceitoff/assets/hack/V.png | Bin 3693 -> 0 bytes src/sliceitoff/assets/hack/W.png | Bin 3788 -> 0 bytes src/sliceitoff/assets/hack/X.png | Bin 5345 -> 0 bytes src/sliceitoff/assets/hack/Y.png | Bin 3603 -> 0 bytes src/sliceitoff/assets/hack/Z.png | Bin 2181 -> 0 bytes "src/sliceitoff/assets/hack/\303\204.png" | Bin 4022 -> 0 bytes "src/sliceitoff/assets/hack/\303\205.png" | Bin 5170 -> 0 bytes "src/sliceitoff/assets/hack/\303\226.png" | Bin 5035 -> 0 bytes src/sliceitoff/assets/images.lst | 1 - src/sliceitoff/enemies/enemies.py | 6 ++++-- 41 files changed, 4 insertions(+), 3 deletions(-) delete mode 100644 src/sliceitoff/assets/hack/0.png delete mode 100644 src/sliceitoff/assets/hack/1.png delete mode 100644 src/sliceitoff/assets/hack/2.png delete mode 100644 src/sliceitoff/assets/hack/3.png delete mode 100644 src/sliceitoff/assets/hack/4.png delete mode 100644 src/sliceitoff/assets/hack/5.png delete mode 100644 src/sliceitoff/assets/hack/6.png delete mode 100644 src/sliceitoff/assets/hack/7.png delete mode 100644 src/sliceitoff/assets/hack/8.png delete mode 100644 src/sliceitoff/assets/hack/9.png delete mode 100644 src/sliceitoff/assets/hack/A.png delete mode 100644 src/sliceitoff/assets/hack/B.png delete mode 100644 src/sliceitoff/assets/hack/C.png delete mode 100644 src/sliceitoff/assets/hack/D.png delete mode 100644 src/sliceitoff/assets/hack/E.png delete mode 100644 src/sliceitoff/assets/hack/F.png delete mode 100644 src/sliceitoff/assets/hack/G.png delete mode 100644 src/sliceitoff/assets/hack/H.png delete mode 100644 src/sliceitoff/assets/hack/I.png delete mode 100644 src/sliceitoff/assets/hack/J.png delete mode 100644 src/sliceitoff/assets/hack/K.png delete mode 100644 src/sliceitoff/assets/hack/L.png delete mode 100644 src/sliceitoff/assets/hack/M.png delete mode 100644 src/sliceitoff/assets/hack/N.png delete mode 100644 src/sliceitoff/assets/hack/O.png delete mode 100644 src/sliceitoff/assets/hack/P.png delete mode 100644 src/sliceitoff/assets/hack/Q.png delete mode 100644 src/sliceitoff/assets/hack/R.png delete mode 100644 src/sliceitoff/assets/hack/S.png delete mode 100644 src/sliceitoff/assets/hack/T.png delete mode 100644 src/sliceitoff/assets/hack/U.png delete mode 100644 src/sliceitoff/assets/hack/V.png delete mode 100644 src/sliceitoff/assets/hack/W.png delete mode 100644 src/sliceitoff/assets/hack/X.png delete mode 100644 src/sliceitoff/assets/hack/Y.png delete mode 100644 src/sliceitoff/assets/hack/Z.png delete mode 100644 "src/sliceitoff/assets/hack/\303\204.png" delete mode 100644 "src/sliceitoff/assets/hack/\303\205.png" delete mode 100644 "src/sliceitoff/assets/hack/\303\226.png" diff --git a/src/sliceitoff/assets/hack/0.png b/src/sliceitoff/assets/hack/0.png deleted file mode 100644 index 67c3877..0000000 Binary files a/src/sliceitoff/assets/hack/0.png and /dev/null differ diff --git a/src/sliceitoff/assets/hack/1.png b/src/sliceitoff/assets/hack/1.png deleted file mode 100644 index c7fdf86..0000000 Binary files a/src/sliceitoff/assets/hack/1.png and /dev/null differ diff --git a/src/sliceitoff/assets/hack/2.png b/src/sliceitoff/assets/hack/2.png deleted file mode 100644 index bf27c68..0000000 Binary files a/src/sliceitoff/assets/hack/2.png and /dev/null differ diff --git a/src/sliceitoff/assets/hack/3.png b/src/sliceitoff/assets/hack/3.png deleted file mode 100644 index a003b03..0000000 Binary files a/src/sliceitoff/assets/hack/3.png and /dev/null differ diff --git a/src/sliceitoff/assets/hack/4.png b/src/sliceitoff/assets/hack/4.png deleted file mode 100644 index 6841587..0000000 Binary files a/src/sliceitoff/assets/hack/4.png and /dev/null differ diff --git a/src/sliceitoff/assets/hack/5.png b/src/sliceitoff/assets/hack/5.png deleted file mode 100644 index a999722..0000000 Binary files a/src/sliceitoff/assets/hack/5.png and /dev/null differ diff --git a/src/sliceitoff/assets/hack/6.png b/src/sliceitoff/assets/hack/6.png deleted file mode 100644 index 8de8e0c..0000000 Binary files a/src/sliceitoff/assets/hack/6.png and /dev/null differ diff --git a/src/sliceitoff/assets/hack/7.png b/src/sliceitoff/assets/hack/7.png deleted file mode 100644 index 5984a91..0000000 Binary files a/src/sliceitoff/assets/hack/7.png and /dev/null differ diff --git a/src/sliceitoff/assets/hack/8.png b/src/sliceitoff/assets/hack/8.png deleted file mode 100644 index 5d24fac..0000000 Binary files a/src/sliceitoff/assets/hack/8.png and /dev/null differ diff --git a/src/sliceitoff/assets/hack/9.png b/src/sliceitoff/assets/hack/9.png deleted file mode 100644 index dcf9ea7..0000000 Binary files a/src/sliceitoff/assets/hack/9.png and /dev/null differ diff --git a/src/sliceitoff/assets/hack/A.png b/src/sliceitoff/assets/hack/A.png deleted file mode 100644 index 7c8d5d9..0000000 Binary files a/src/sliceitoff/assets/hack/A.png and /dev/null differ diff --git a/src/sliceitoff/assets/hack/B.png b/src/sliceitoff/assets/hack/B.png deleted file mode 100644 index 7736d5f..0000000 Binary files a/src/sliceitoff/assets/hack/B.png and /dev/null differ diff --git a/src/sliceitoff/assets/hack/C.png b/src/sliceitoff/assets/hack/C.png deleted file mode 100644 index 2f3b14a..0000000 Binary files a/src/sliceitoff/assets/hack/C.png and /dev/null differ diff --git a/src/sliceitoff/assets/hack/D.png b/src/sliceitoff/assets/hack/D.png deleted file mode 100644 index 7734b77..0000000 Binary files a/src/sliceitoff/assets/hack/D.png and /dev/null differ diff --git a/src/sliceitoff/assets/hack/E.png b/src/sliceitoff/assets/hack/E.png deleted file mode 100644 index 50bf2fc..0000000 Binary files a/src/sliceitoff/assets/hack/E.png and /dev/null differ diff --git a/src/sliceitoff/assets/hack/F.png b/src/sliceitoff/assets/hack/F.png deleted file mode 100644 index acbc252..0000000 Binary files a/src/sliceitoff/assets/hack/F.png and /dev/null differ diff --git a/src/sliceitoff/assets/hack/G.png b/src/sliceitoff/assets/hack/G.png deleted file mode 100644 index 2a67982..0000000 Binary files a/src/sliceitoff/assets/hack/G.png and /dev/null differ diff --git a/src/sliceitoff/assets/hack/H.png b/src/sliceitoff/assets/hack/H.png deleted file mode 100644 index b51df02..0000000 Binary files a/src/sliceitoff/assets/hack/H.png and /dev/null differ diff --git a/src/sliceitoff/assets/hack/I.png b/src/sliceitoff/assets/hack/I.png deleted file mode 100644 index e856fee..0000000 Binary files a/src/sliceitoff/assets/hack/I.png and /dev/null differ diff --git a/src/sliceitoff/assets/hack/J.png b/src/sliceitoff/assets/hack/J.png deleted file mode 100644 index 7803a3d..0000000 Binary files a/src/sliceitoff/assets/hack/J.png and /dev/null differ diff --git a/src/sliceitoff/assets/hack/K.png b/src/sliceitoff/assets/hack/K.png deleted file mode 100644 index 1639dd2..0000000 Binary files a/src/sliceitoff/assets/hack/K.png and /dev/null differ diff --git a/src/sliceitoff/assets/hack/L.png b/src/sliceitoff/assets/hack/L.png deleted file mode 100644 index e7b8e12..0000000 Binary files a/src/sliceitoff/assets/hack/L.png and /dev/null differ diff --git a/src/sliceitoff/assets/hack/M.png b/src/sliceitoff/assets/hack/M.png deleted file mode 100644 index af0dbcb..0000000 Binary files a/src/sliceitoff/assets/hack/M.png and /dev/null differ diff --git a/src/sliceitoff/assets/hack/N.png b/src/sliceitoff/assets/hack/N.png deleted file mode 100644 index 63d1fba..0000000 Binary files a/src/sliceitoff/assets/hack/N.png and /dev/null differ diff --git a/src/sliceitoff/assets/hack/O.png b/src/sliceitoff/assets/hack/O.png deleted file mode 100644 index 3522877..0000000 Binary files a/src/sliceitoff/assets/hack/O.png and /dev/null differ diff --git a/src/sliceitoff/assets/hack/P.png b/src/sliceitoff/assets/hack/P.png deleted file mode 100644 index d3c777e..0000000 Binary files a/src/sliceitoff/assets/hack/P.png and /dev/null differ diff --git a/src/sliceitoff/assets/hack/Q.png b/src/sliceitoff/assets/hack/Q.png deleted file mode 100644 index a5c9c67..0000000 Binary files a/src/sliceitoff/assets/hack/Q.png and /dev/null differ diff --git a/src/sliceitoff/assets/hack/R.png b/src/sliceitoff/assets/hack/R.png deleted file mode 100644 index e23b545..0000000 Binary files a/src/sliceitoff/assets/hack/R.png and /dev/null differ diff --git a/src/sliceitoff/assets/hack/S.png b/src/sliceitoff/assets/hack/S.png deleted file mode 100644 index a1e75e2..0000000 Binary files a/src/sliceitoff/assets/hack/S.png and /dev/null differ diff --git a/src/sliceitoff/assets/hack/T.png b/src/sliceitoff/assets/hack/T.png deleted file mode 100644 index a1e75e2..0000000 Binary files a/src/sliceitoff/assets/hack/T.png and /dev/null differ diff --git a/src/sliceitoff/assets/hack/U.png b/src/sliceitoff/assets/hack/U.png deleted file mode 100644 index 8d46340..0000000 Binary files a/src/sliceitoff/assets/hack/U.png and /dev/null differ diff --git a/src/sliceitoff/assets/hack/V.png b/src/sliceitoff/assets/hack/V.png deleted file mode 100644 index f88ee16..0000000 Binary files a/src/sliceitoff/assets/hack/V.png and /dev/null differ diff --git a/src/sliceitoff/assets/hack/W.png b/src/sliceitoff/assets/hack/W.png deleted file mode 100644 index 672ab28..0000000 Binary files a/src/sliceitoff/assets/hack/W.png and /dev/null differ diff --git a/src/sliceitoff/assets/hack/X.png b/src/sliceitoff/assets/hack/X.png deleted file mode 100644 index 49d1f87..0000000 Binary files a/src/sliceitoff/assets/hack/X.png and /dev/null differ diff --git a/src/sliceitoff/assets/hack/Y.png b/src/sliceitoff/assets/hack/Y.png deleted file mode 100644 index 4386da7..0000000 Binary files a/src/sliceitoff/assets/hack/Y.png and /dev/null differ diff --git a/src/sliceitoff/assets/hack/Z.png b/src/sliceitoff/assets/hack/Z.png deleted file mode 100644 index 88a3587..0000000 Binary files a/src/sliceitoff/assets/hack/Z.png and /dev/null differ diff --git "a/src/sliceitoff/assets/hack/\303\204.png" "b/src/sliceitoff/assets/hack/\303\204.png" deleted file mode 100644 index 9f6772b..0000000 Binary files "a/src/sliceitoff/assets/hack/\303\204.png" and /dev/null differ diff --git "a/src/sliceitoff/assets/hack/\303\205.png" "b/src/sliceitoff/assets/hack/\303\205.png" deleted file mode 100644 index 706c37a..0000000 Binary files "a/src/sliceitoff/assets/hack/\303\205.png" and /dev/null differ diff --git "a/src/sliceitoff/assets/hack/\303\226.png" "b/src/sliceitoff/assets/hack/\303\226.png" deleted file mode 100644 index d5f08f7..0000000 Binary files "a/src/sliceitoff/assets/hack/\303\226.png" and /dev/null differ 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() -- cgit v1.2.3