from pgzero.loaders import images
from ..actors.navigator import ActorNavigator
from ..actors.orientatedsurf import OrientatedSurfActor, SelectableSurfActor
+from ..util import safepath
from .base import Scene, ChangeSceneEvent, WorldEvent, QuitEvent
def _init_bg(self):
self.actors.default.clear()
self.actors.default.add(OrientatedSurfActor(
- images.load("splash/background")))
+ images.load(safepath("splash/background"))))
def _init_buttons(self):
self._nav = ActorNavigator()
def _build_button(self, name, action):
actor = SelectableSurfActor(
- images.load("splash/%s" % (name,)),
- images.load("splash/%s_selected" % (name,)))
+ images.load(safepath("splash/%s" % (name,))),
+ images.load(safepath("splash/%s_selected" % (name,))))
actor.action = action
return actor