summaryrefslogtreecommitdiff
path: root/riseoftodmoldren/screens/main.py
diff options
context:
space:
mode:
authorRoman Gräf <romangraef@loves.dicksinhisan.us>2020-08-19 23:51:13 +0200
committerRoman Gräf <romangraef@loves.dicksinhisan.us>2020-08-19 23:51:13 +0200
commit55105b36d54c8e77251ad424fcdf8826a9d3df8d (patch)
tree4711f3b0cde0b80d2d7ce5e90ddb8e58712444ad /riseoftodmoldren/screens/main.py
parentcc0fc4424363fcc2ccdbc8b0854b20147a2dd335 (diff)
downloadRise-of-Todmoldren-master.tar.gz
Rise-of-Todmoldren-master.tar.bz2
Rise-of-Todmoldren-master.zip
I got demotivated, im gonna leave it here.HEADmaster
Diffstat (limited to 'riseoftodmoldren/screens/main.py')
-rw-r--r--riseoftodmoldren/screens/main.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/riseoftodmoldren/screens/main.py b/riseoftodmoldren/screens/main.py
new file mode 100644
index 0000000..3ce0645
--- /dev/null
+++ b/riseoftodmoldren/screens/main.py
@@ -0,0 +1,19 @@
+from .. import assets
+from ..base import State, StateApp
+
+
+class MainScreen(State):
+ background = None
+ sack = None
+ potion = None
+
+ def on_start(self, app: 'StateApp'):
+ if self.background is None:
+ self.background = assets.FOREST1.as_tiled_surface(app.screen_rect)
+ self.sack = assets.SACK.as_surface()
+ self.potion = assets.HEAL_POTION_ICON.as_surface()
+
+ def on_render(self, app: 'StateApp'):
+ app.screen.blit(self.background, (0, 0))
+ app.screen.blit(self.sack, (25, 600))
+ app.screen.blit(self.potion, (760, 435))