From 398eebe7829622c6983cb28528f2208b4d596f32 Mon Sep 17 00:00:00 2001 From: Viljami Ilola <+@hix.fi> Date: Wed, 20 Mar 2024 16:59:13 +0200 Subject: text to srites. cache scaled font sprites... --- src/sliceitoff/screens/welcome.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/sliceitoff/screens/welcome.py (limited to 'src/sliceitoff/screens/welcome.py') diff --git a/src/sliceitoff/screens/welcome.py b/src/sliceitoff/screens/welcome.py new file mode 100644 index 0000000..ddfd997 --- /dev/null +++ b/src/sliceitoff/screens/welcome.py @@ -0,0 +1,15 @@ +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 -- cgit v1.2.3