summaryrefslogtreecommitdiff
path: root/riseoftodmoldren/screens/start.py
diff options
context:
space:
mode:
Diffstat (limited to 'riseoftodmoldren/screens/start.py')
-rw-r--r--riseoftodmoldren/screens/start.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/riseoftodmoldren/screens/start.py b/riseoftodmoldren/screens/start.py
new file mode 100644
index 0000000..cc33a47
--- /dev/null
+++ b/riseoftodmoldren/screens/start.py
@@ -0,0 +1,17 @@
+from ..base import State, StateApp
+
+
+class StartScreen(State):
+ def __init__(self):
+ self.background = None
+
+ def on_start(self, app: 'StateApp'):
+ if self.background is None:
+ from .. import assets
+ self.background = assets.MENU2.as_tiled_surface(app.screen_rect)
+
+ def on_event(self, app: 'StateApp', event):
+ pass
+
+ def on_render(self, app: 'StateApp'):
+ app.screen.blit(self.background, (0, 0))