mirror of
https://github.com/kristoferssolo/Tetris.git
synced 2025-10-21 20:00:35 +00:00
feat(game): add Settings class
This commit is contained in:
parent
37132f54e0
commit
1cc0b081ec
@ -14,7 +14,7 @@ class BaseButton(ABC, metaclass=ABCMeta):
|
|||||||
self.text = text
|
self.text = text
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def on_click(self) -> None:
|
def on_click(self, event: pygame.Event) -> None:
|
||||||
"""Handle click event."""
|
"""Handle click event."""
|
||||||
|
|
||||||
@abstractmethod
|
@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
|
||||||
Loading…
Reference in New Issue
Block a user