Host typegenerated
Scene
Scenes are a game's separate places or screens, such as a menu, a level or a shop. This asks which one is playing and moves to another.
3 members · engine 0.1.0
Scene.current() -> StringThe name of the scene being played.Scene.go(name: String) -> unitMoves to another scene by name, at the end of this frame. A scene you have left is switched off, not thrown away, so going back finds it as it was.Scene.restart(name: String) -> unitMoves to a scene by name and starts it over, at the end of this frame: whatever it was is thrown away, so a level begins again rather than where it was left.
- Source
- docs/generated/decay-api.json
- Schema
- v1
- Engine version
- 0.1.0
- Source commit
909aca81368b