feat: implement gameloop

Implement a basic game loop that draws the startscreen, and the map after you hit the right button
This commit is contained in:
Niklas Haiden
2026-05-08 15:32:58 +02:00
parent 872786c8e3
commit 20e106cb01
4 changed files with 172 additions and 9 deletions
+9 -7
View File
@@ -1,11 +1,13 @@
import pygame
from button import Button
from settings import (COLOR_BUTTON,
COLOR_BUTTON_HOVER,
COLOR_STARTSCREEN_BACKGROUND,
COLOR_STARTSCREEN_FONT_TITLE,
COLOR_STARTSCREEN_FONT_LABEL)
from text_input import TextInput
from src.button import Button
from src.settings import (
COLOR_BUTTON,
COLOR_BUTTON_HOVER,
COLOR_STARTSCREEN_BACKGROUND,
COLOR_STARTSCREEN_FONT_TITLE,
COLOR_STARTSCREEN_FONT_LABEL,
)
from src.text_input import TextInput
class Startscreen:
def __init__(self, screen):