diff options
author | Viljami Ilola <+@hix.fi> | 2024-03-20 17:46:10 +0200 |
---|---|---|
committer | Viljami Ilola <+@hix.fi> | 2024-03-20 17:46:10 +0200 |
commit | 975e5dca49fb09fe2f762462f1c337c0d63735bf (patch) | |
tree | 4c837b346d7b7e4a9246c1be846f48d787a327ba /src/sliceitoff/screens | |
parent | 398eebe7829622c6983cb28528f2208b4d596f32 (diff) |
exploding text
Diffstat (limited to 'src/sliceitoff/screens')
-rw-r--r-- | src/sliceitoff/screens/__init__.py | 2 | ||||
-rw-r--r-- | src/sliceitoff/screens/welcome.py | 24 |
2 files changed, 12 insertions, 14 deletions
diff --git a/src/sliceitoff/screens/__init__.py b/src/sliceitoff/screens/__init__.py index a03f76b..89294bd 100644 --- a/src/sliceitoff/screens/__init__.py +++ b/src/sliceitoff/screens/__init__.py @@ -1,2 +1,2 @@ #from .levelup import LevelUp -from .welcome import Welcome +from .welcome import welcome_screen diff --git a/src/sliceitoff/screens/welcome.py b/src/sliceitoff/screens/welcome.py index ddfd997..93218f3 100644 --- a/src/sliceitoff/screens/welcome.py +++ b/src/sliceitoff/screens/welcome.py @@ -1,15 +1,13 @@ from text import TextPage -from display import Scaling -class Welcome(): - def __init__(self): - self.sprites = TextPage( - " Slice it off!\n" - "\n" - "* Do not hit the balls\n" - "* Slice off empty areas\n" - "* Slice off empty areas\n", - font = 'computer', - size = (8_000, 16_000), - grid = (9_000, 16_000) ) -
\ No newline at end of file +def welcome_screen(): + return TextPage( + " Slice it off!\n" + " \n" + " * Do not hit the balls\n" + " * Make area 10% or smaller\n" + " * Do not separate the balls\n" + " * Be fast!!\n", + font = 'computer', + size = (8_000, 16_000), + grid = (9_000, 16_000) ) |