mirror of
https://github.com/kristoferssolo/Tetris.git
synced 2026-03-22 00:36:20 +00:00
feat(game): add Settings class
This commit is contained in:
@@ -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
|
||||
|
||||
11
src/game/screens/settings.py
Normal file
11
src/game/screens/settings.py
Normal 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
|
||||
Reference in New Issue
Block a user