feat(game): add Settings class

This commit is contained in:
Kristofers Solo 2024-01-07 16:55:12 +02:00
parent 37132f54e0
commit 1cc0b081ec
2 changed files with 12 additions and 1 deletions

View File

@ -14,7 +14,7 @@ class BaseButton(ABC, metaclass=ABCMeta):
self.text = text
@abstractmethod
def on_click(self) -> None:
def on_click(self, event: pygame.Event) -> None:
"""Handle click event."""
@abstractmethod

View File

@ -0,0 +1,11 @@
import pygame
from utils import CONFIG, Size
from game.log import log
from .base import BaseScreen, SceenElement, TextScreen
from .button import Button
class Settings(BaseScreen, SceenElement, TextScreen):
pass