

WriteLine( "You feel as if something or someone is stalking you, but decide to ignore the feeling and continue.") Įlse if ( secChoice = "no" || secChoice = "n")Ĭonsole. If ( secChoice = "yes" || secChoice = "y")Ĭonsole.
#ONLINE TEXT ADVENTURE GAME ENGINE GENERATOR#
* this section will demonstrate using random number generator and also allowing player to enter text response 6/18*/ public static void second() WriteLine( "Command is invalid.") Ĭonsole. WriteLine( "You feel a bit safer but night is soon approaching.") Ĭonsole.

WriteLine( "After a few hours you are able to erect a sturdy shelter.") Ĭonsole. WriteLine( "You gather materials for building a shelter in the forest.") Ĭonsole. WriteLine( "After drinking some water, you are no longer thirsty and continue your journey") Ĭonsole. WriteLine( "You find a water source nearby and begin drinking from it") Ĭonsole. WriteLine( "You search for water in the area.") Ĭonsole. WriteLine( "Unfortunately there is no escape.") Ĭonsole. WriteLine( "Soon you notice a Bear charging your way.") Ĭonsole. WriteLine( "Birds fly over head and wild animal noises surround you.") Ĭonsole. WriteLine( "You shout for help and your voice echoes through the area.") Ĭonsole. WriteLine( "You walk down the forest path seeking out help.") Ĭonsole. WriteLine( "You are lost in a forest with no cellphone reception") Ĭonsole. * this section will demonstrate switches 6/11*/ public static void first()Ĭonsole. WriteLine( "Hey this in the beginning of a text adventure game.") Ĭonsole.

* this section will demonstrate writing to the console 6/11*/ public static void gameTitle()Ĭonsole. * * C# Program to Demonstrate adventure game */ using System Let me know what you create on your own and what new feature you add to your text based game. Play with the code below in visual studio and and see if you can figure out what each part of the code does. Today I want to present to you an opportunity to experiment and practice what you've learned. Learning to program is similar to learning a musical instrument, or a foreign language. Some of the ideas are complex and you just need time and practice to understand them. You might not fully "get" a concept until you've built a couple of applications. Work on the tutorials - even if you don't understand all of what you are doing. If you've never worked with C# or are just learning to program, the following is my top 10 favorite sites for learning C#. While constructing a text-based game, you can gain an understanding of fundamental programming concepts, and an introduction to object-oriented theory.
#ONLINE TEXT ADVENTURE GAME ENGINE HOW TO#
Building a C# adventure game can be a fun way to learn how to code.
