diff options
author | Roman Gräf <romangraef@loves.dicksinhisan.us> | 2020-08-19 23:12:42 +0200 |
---|---|---|
committer | Roman Gräf <romangraef@loves.dicksinhisan.us> | 2020-08-19 23:14:06 +0200 |
commit | cc0fc4424363fcc2ccdbc8b0854b20147a2dd335 (patch) | |
tree | b6bc647e47fb44faecec38d056f15a9ed207b7f4 /riseoftodmoldren/app.py | |
parent | 37c533ae65e414ac43f3e1eb3ee04fe1760cdd46 (diff) | |
download | Rise-of-Todmoldren-cc0fc4424363fcc2ccdbc8b0854b20147a2dd335.tar.gz Rise-of-Todmoldren-cc0fc4424363fcc2ccdbc8b0854b20147a2dd335.tar.bz2 Rise-of-Todmoldren-cc0fc4424363fcc2ccdbc8b0854b20147a2dd335.zip |
base engine rework
Diffstat (limited to 'riseoftodmoldren/app.py')
-rw-r--r-- | riseoftodmoldren/app.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/riseoftodmoldren/app.py b/riseoftodmoldren/app.py new file mode 100644 index 0000000..76ad43e --- /dev/null +++ b/riseoftodmoldren/app.py @@ -0,0 +1,19 @@ +import pygame + +from .base import StateApp +from .screens.start import StartScreen + + +class TheRiseOfTodmoldren(StateApp): + name = "The Rise Of Todmoldren" + size = (1280, 720) + + def __init__(self): + super().__init__() + + if not pygame.image.get_extended(): + raise SystemExit("Sorry, extended image module required") + + def on_init(self): + super().on_init() + self.push_state(StartScreen()) |