]> Skullheadx's Git Forge - Pygame-Jam.git/commitdiff
added new font and assets
authorSkullheadx <704277@pdsb.net>
Wed, 6 Jul 2022 20:20:54 +0000 (16:20 -0400)
committerSkullheadx <704277@pdsb.net>
Wed, 6 Jul 2022 20:20:54 +0000 (16:20 -0400)
21 files changed:
Assets/SWORD.png [new file with mode: 0644]
Font/Exo2-Black.ttf [new file with mode: 0644]
Font/Exo2-BlackItalic.ttf [new file with mode: 0644]
Font/Exo2-Bold.ttf [new file with mode: 0644]
Font/Exo2-BoldItalic.ttf [new file with mode: 0644]
Font/Exo2-ExtraBold.ttf [new file with mode: 0644]
Font/Exo2-ExtraBoldItalic.ttf [new file with mode: 0644]
Font/Exo2-ExtraLight.ttf [new file with mode: 0644]
Font/Exo2-ExtraLightItalic.ttf [new file with mode: 0644]
Font/Exo2-Italic.ttf [new file with mode: 0644]
Font/Exo2-Light.ttf [new file with mode: 0644]
Font/Exo2-LightItalic.ttf [new file with mode: 0644]
Font/Exo2-Medium.ttf [new file with mode: 0644]
Font/Exo2-MediumItalic.ttf [new file with mode: 0644]
Font/Exo2-Regular.ttf [new file with mode: 0644]
Font/Exo2-SemiBold.ttf [new file with mode: 0644]
Font/Exo2-SemiBoldItalic.ttf [new file with mode: 0644]
Font/Exo2-Thin.ttf [new file with mode: 0644]
Font/Exo2-ThinItalic.ttf [new file with mode: 0644]
Player.py
Weapon.py [new file with mode: 0644]

diff --git a/Assets/SWORD.png b/Assets/SWORD.png
new file mode 100644 (file)
index 0000000..e1c4104
Binary files /dev/null and b/Assets/SWORD.png differ
diff --git a/Font/Exo2-Black.ttf b/Font/Exo2-Black.ttf
new file mode 100644 (file)
index 0000000..7942d4e
Binary files /dev/null and b/Font/Exo2-Black.ttf differ
diff --git a/Font/Exo2-BlackItalic.ttf b/Font/Exo2-BlackItalic.ttf
new file mode 100644 (file)
index 0000000..8bd9bea
Binary files /dev/null and b/Font/Exo2-BlackItalic.ttf differ
diff --git a/Font/Exo2-Bold.ttf b/Font/Exo2-Bold.ttf
new file mode 100644 (file)
index 0000000..813de4a
Binary files /dev/null and b/Font/Exo2-Bold.ttf differ
diff --git a/Font/Exo2-BoldItalic.ttf b/Font/Exo2-BoldItalic.ttf
new file mode 100644 (file)
index 0000000..42e29e2
Binary files /dev/null and b/Font/Exo2-BoldItalic.ttf differ
diff --git a/Font/Exo2-ExtraBold.ttf b/Font/Exo2-ExtraBold.ttf
new file mode 100644 (file)
index 0000000..c916335
Binary files /dev/null and b/Font/Exo2-ExtraBold.ttf differ
diff --git a/Font/Exo2-ExtraBoldItalic.ttf b/Font/Exo2-ExtraBoldItalic.ttf
new file mode 100644 (file)
index 0000000..fb381aa
Binary files /dev/null and b/Font/Exo2-ExtraBoldItalic.ttf differ
diff --git a/Font/Exo2-ExtraLight.ttf b/Font/Exo2-ExtraLight.ttf
new file mode 100644 (file)
index 0000000..dbda254
Binary files /dev/null and b/Font/Exo2-ExtraLight.ttf differ
diff --git a/Font/Exo2-ExtraLightItalic.ttf b/Font/Exo2-ExtraLightItalic.ttf
new file mode 100644 (file)
index 0000000..c6883f3
Binary files /dev/null and b/Font/Exo2-ExtraLightItalic.ttf differ
diff --git a/Font/Exo2-Italic.ttf b/Font/Exo2-Italic.ttf
new file mode 100644 (file)
index 0000000..21ba299
Binary files /dev/null and b/Font/Exo2-Italic.ttf differ
diff --git a/Font/Exo2-Light.ttf b/Font/Exo2-Light.ttf
new file mode 100644 (file)
index 0000000..8db13b4
Binary files /dev/null and b/Font/Exo2-Light.ttf differ
diff --git a/Font/Exo2-LightItalic.ttf b/Font/Exo2-LightItalic.ttf
new file mode 100644 (file)
index 0000000..6d95669
Binary files /dev/null and b/Font/Exo2-LightItalic.ttf differ
diff --git a/Font/Exo2-Medium.ttf b/Font/Exo2-Medium.ttf
new file mode 100644 (file)
index 0000000..20b8d9d
Binary files /dev/null and b/Font/Exo2-Medium.ttf differ
diff --git a/Font/Exo2-MediumItalic.ttf b/Font/Exo2-MediumItalic.ttf
new file mode 100644 (file)
index 0000000..72226bc
Binary files /dev/null and b/Font/Exo2-MediumItalic.ttf differ
diff --git a/Font/Exo2-Regular.ttf b/Font/Exo2-Regular.ttf
new file mode 100644 (file)
index 0000000..12fcc70
Binary files /dev/null and b/Font/Exo2-Regular.ttf differ
diff --git a/Font/Exo2-SemiBold.ttf b/Font/Exo2-SemiBold.ttf
new file mode 100644 (file)
index 0000000..df562ba
Binary files /dev/null and b/Font/Exo2-SemiBold.ttf differ
diff --git a/Font/Exo2-SemiBoldItalic.ttf b/Font/Exo2-SemiBoldItalic.ttf
new file mode 100644 (file)
index 0000000..a6d6309
Binary files /dev/null and b/Font/Exo2-SemiBoldItalic.ttf differ
diff --git a/Font/Exo2-Thin.ttf b/Font/Exo2-Thin.ttf
new file mode 100644 (file)
index 0000000..fe0ecc1
Binary files /dev/null and b/Font/Exo2-Thin.ttf differ
diff --git a/Font/Exo2-ThinItalic.ttf b/Font/Exo2-ThinItalic.ttf
new file mode 100644 (file)
index 0000000..87bc722
Binary files /dev/null and b/Font/Exo2-ThinItalic.ttf differ
index be950fab3159effa88a04038f499134b30e26c4e..d83a7d0fd72aff660e5f5fdbdd2b5b232b5e9aee 100644 (file)
--- a/Player.py
+++ b/Player.py
@@ -49,7 +49,7 @@ class Player(Actor):
         pg.draw.rect(surf, (54, 54, 54), background_rect)
         pg.draw.rect(surf, (255, 0, 0), foreground_rect)
         
-        font = pg.font.Font(None , 20)
+        font = pg.font.Font("Font/Exo2-Regular.ttf", 20)
         current_health = str(self.health) + "/100"
         current_health_display = font.render(current_health, True, (255, 255, 255))
         surf.blit(current_health_display, foreground_rect)
diff --git a/Weapon.py b/Weapon.py
new file mode 100644 (file)
index 0000000..20a765e
--- /dev/null
+++ b/Weapon.py
@@ -0,0 +1,16 @@
+from Setup import *
+
+
+class Melee:
+    img = pg.image.load("Assets/SWORD.png")
+    def __init__(self, pos, offset, width,direction):
+        self.position = pg.Vector2(pos)
+        self.offset = pg.Vector2(offset)
+        self.holder_width = width
+
+
+    def update(self, delta):
+        pass
+
+    def draw(self, surf):
+        pass