Created
June 24, 2020 18:32
-
-
Save InDieTasten/53c895c7c133be0206070ef7c5cf9837 to your computer and use it in GitHub Desktop.
Interface Design for Textadventure Engine
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var game = new TextAdventureGame(); | |
game.AddScene("Start", new Scene | |
{ | |
TextScenario = "Du stehst am Bahnhof. Was möchtest du tun?", | |
Options = new SceneOptions[] | |
{ | |
new SceneOptions | |
{ | |
Text = "Gehe nach Norden", | |
NavigatesToScene = "North" | |
} | |
} | |
}); | |
game.AddScene("North", new Scene | |
{ | |
TextScenario = "Du stehst im Norden. Was möchtest du tun?", | |
Options = new SceneOptions[] | |
{ | |
new SceneOptions | |
{ | |
Text = "Gehe zum Start", | |
NavigatesToScene = "Start" | |
} | |
} | |
}); | |
game.Launch(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment