summaryrefslogtreecommitdiff
path: root/riseoftodmoldren/screens/start.py
diff options
context:
space:
mode:
authorRoman Gräf <romangraef@loves.dicksinhisan.us>2020-08-19 23:12:42 +0200
committerRoman Gräf <romangraef@loves.dicksinhisan.us>2020-08-19 23:14:06 +0200
commitcc0fc4424363fcc2ccdbc8b0854b20147a2dd335 (patch)
treeb6bc647e47fb44faecec38d056f15a9ed207b7f4 /riseoftodmoldren/screens/start.py
parent37c533ae65e414ac43f3e1eb3ee04fe1760cdd46 (diff)
downloadRise-of-Todmoldren-cc0fc4424363fcc2ccdbc8b0854b20147a2dd335.tar.gz
Rise-of-Todmoldren-cc0fc4424363fcc2ccdbc8b0854b20147a2dd335.tar.bz2
Rise-of-Todmoldren-cc0fc4424363fcc2ccdbc8b0854b20147a2dd335.zip
base engine rework
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))