Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

i want a c coded text based adventure game

+1 vote
asked May 19, 2021 by 5 G-16 Jain Bharggav Mukul (350 points)

1 Answer

+1 vote
answered May 20, 2021 by Peter Minarik (86,680 points)
edited May 25, 2021 by Peter Minarik

You can make it as simple or complex as you'd want it to be.

I'd also suggest choosing C++ instead, if you'd want to stay close to C, but it could be really any language as such games wouldn't be too demanding.

Think about it first. Collect your thoughts.

What would a typical user interaction be like?

  • User choosing options pre-defined (e.g. a, b, c,)
  • or perhaps User entering text and the game trying to parse it and make sense of it (e.g. "go to door" or "pick up the sword" or "hit enemy with the sword")
  • Or something else?

How would the story unfold?

  • Would this be a linear experience?
  • Would the user be able to choose various paths (both physical and story paths)
  • Would there be any story at all?

You should consider these and other questions to define the basic behaviour of your game before you start to code.

Good luck! 

Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...