added a lot of new fonts

assigned all of them a easier and more understandable key phrase or key word
added the key word dictionary in classes.py

Signed-off-by: SpagettiFisch <63868515+SpagettiFisch@users.noreply.github.com>
This commit is contained in:
SpagettiFisch 2024-02-14 08:49:47 +01:00
parent f8e491f2a5
commit 5123b19cb0
44 changed files with 36 additions and 5 deletions

View file

@ -1,10 +1,41 @@
import pygame import pygame
pygame.font.init() pygame.font.init()
font = pygame.font.Font('fonts/medieval.ttf', 48) fonts = {
'medieval': 'medieval.ttf',
'minecraft': 'Minecraft Evenings.otf',
'3dpixel': '3D-Pixel.ttf',
'8bit': '8bitlim.ttf',
'8bito': '8blimro.ttf',
'arcade': 'ARCADECLASSIC.ttf',
'modern_game': 'astron boy video.otf',
'modern': 'astron boy.otf',
'wonder': 'Beyond Wonderland.ttf',
'curved': 'Digitag.ttf',
'simple': 'DisposableDroidBB.ttf',
'rounded': 'dpcomic.ttf',
'playfull': 'Endalian Script.ttf',
'blocky': 'FREAKSOFNATURE.ttf',
'catchy': 'Future TimeSplitters.otf',
'simple_wide': 'Halo3.ttf',
'simple_fat': 'INVASION2000.ttf',
'very_gamy': 'ka1.ttf',
'simple_round': 'Karma Suture.otf',
'mono': 'manaspc.ttf',
'damaged': 'Merchant Copy.ttf',
'big_natural': 'MorialCitadel.TTF',
'spacy': 'nasalization-rg.otf',
'sci-fi': 'neuropol.otf',
'hollow_big_edge': 'papercut.ttf',
'space_shuttle': 'pdark.ttf',
'thin': 'PixelFJVerdana12pt.ttf',
'random': 'Seattle Avenue.ttf',
'pixel': 'yoster.ttf'
}
class Button(): class Button():
def __init__(self, x, y, width, height, buttonText='Button', onclickFunction=None, onePress=False): def __init__(self, x, y, width, height, font, buttonText='Button', onclickFunction=None, onePress=False):
font = pygame.font.Font(f'fonts/{fonts[font]}', 48)
self.x = x self.x = x
self.y = y self.y = y
self.width = width self.width = width

BIN
fonts/3D-Pixel.ttf Normal file

Binary file not shown.

BIN
fonts/8bitlim.ttf Normal file

Binary file not shown.

BIN
fonts/8bitlimo.ttf Normal file

Binary file not shown.

BIN
fonts/8bitlimr.ttf Normal file

Binary file not shown.

BIN
fonts/8blimro.ttf Normal file

Binary file not shown.

BIN
fonts/ARCADECLASSIC.TTF Normal file

Binary file not shown.

BIN
fonts/Beyond Wonderland.ttf Normal file

Binary file not shown.

BIN
fonts/Digitag.ttf Normal file

Binary file not shown.

BIN
fonts/DisposableDroidBB.ttf Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
fonts/Endalian Script.ttf Normal file

Binary file not shown.

BIN
fonts/FREAKSOFNATURE.ttf Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
fonts/Halo3.ttf Normal file

Binary file not shown.

BIN
fonts/INVASION2000.TTF Normal file

Binary file not shown.

BIN
fonts/Karma Future.otf Normal file

Binary file not shown.

BIN
fonts/Karma Suture.otf Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
fonts/Merchant Copy.ttf Normal file

Binary file not shown.

Binary file not shown.

BIN
fonts/MoriaCitadel.TTF Normal file

Binary file not shown.

Binary file not shown.

BIN
fonts/Seattle Avenue.ttf Normal file

Binary file not shown.

BIN
fonts/SeattleAvenue.otf Normal file

Binary file not shown.

BIN
fonts/astron boy italic.otf Normal file

Binary file not shown.

BIN
fonts/astron boy video.otf Normal file

Binary file not shown.

BIN
fonts/astron boy wonder.otf Normal file

Binary file not shown.

BIN
fonts/astron boy.otf Normal file

Binary file not shown.

BIN
fonts/dpcomic.ttf Normal file

Binary file not shown.

BIN
fonts/ka1.ttf Normal file

Binary file not shown.

BIN
fonts/kirbyss.ttf Normal file

Binary file not shown.

BIN
fonts/manaspc.ttf Normal file

Binary file not shown.

BIN
fonts/nasalization-rg.otf Normal file

Binary file not shown.

BIN
fonts/neuropol.otf Normal file

Binary file not shown.

BIN
fonts/papercut.ttf Normal file

Binary file not shown.

BIN
fonts/pcsenior.ttf Normal file

Binary file not shown.

BIN
fonts/pdark.ttf Normal file

Binary file not shown.

BIN
fonts/yoster.ttf Normal file

Binary file not shown.

View file

@ -31,9 +31,9 @@ def main():
config = readConfig() config = readConfig()
screen, clock, running, isblack, background, objects = setUp(config["screen"]) screen, clock, running, isblack, background, objects = setUp(config["screen"])
WIDTH, HEIGHT = screen.get_size() WIDTH, HEIGHT = screen.get_size()
objects.append(Button(WIDTH / 2 - 80, HEIGHT / 2 + 72, 160, 64, "Exit game", quitGame)) objects.append(Button(WIDTH / 2 - 80, HEIGHT / 2 + 72, 160, 64, 'medieval', "Exit game", quitGame))
objects.append(Button(WIDTH / 2 - 80, HEIGHT / 2, 160, 64, "Options", uwu)) objects.append(Button(WIDTH / 2 - 80, HEIGHT / 2, 160, 64, 'medieval', "Options", uwu))
objects.append(Button(WIDTH / 2 - 80, HEIGHT / 2 - 72, 160, 64, "Play", uwu)) objects.append(Button(WIDTH / 2 - 80, HEIGHT / 2 - 72, 160, 64, 'medieval', "Play", uwu))
print(objects) print(objects)
while running: while running: