blob: cc33a47cccb65742ae5ffd769ffc5a04945c6020 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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))
|