Text based game in C

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • analien666
    New Member
    • Mar 2020
    • 4

    Text based game in C

    Hi all. I used to code in C but its been many years. So i have forgotten most things.

    I want to create a text based adventure game using C
    I am on windows 10 and my IDE is codeblocks with a gcc compiler.

    I was searching for the best options for graphics control on the screen and thought i could use graphics.h but it doesn't work.

    I know I can use software out there for this game but I would rather code it myself.

    any suggestions on which functions are best for creating basic text based graphics?

    thanks

    stay safe!
  • dev7060
    Recognized Expert Contributor
    • Mar 2017
    • 656

    #2
    I was searching for the best options for graphics control on the screen and thought i could use graphics.h but it doesn't work.
    Because the headers and the library files aren't present there. Setup is required to run the graphics programs.

    any suggestions on which functions are best for creating basic text based graphics?
    Depends on the game.

    Comment

    • analien666
      New Member
      • Mar 2020
      • 4

      #3
      Hi

      Hey thanks for getting back to me. I appreciate it.

      Yea I had read about how to setup the headers in the include dir.
      Just wondering if that header is the only option for graphics.

      the game?

      well it is going to be used for my students.

      its like this

      1. student reads something on the screen
      2. chooses answers via keyboard
      3. answers will be compiled
      4. offer a score

      its like an adventure game where someone reads and makes choices.

      pretty straigh forward.

      some people suggested I use java as it could be cross platform but i am not interests in learning a new language.

      what are your thoughts?

      thanks again

      and keep safe.
      just stay inside and isolate for awhile. get plenty of necessities and this situation will pass.

      Peace

      Comment

      • Henri47
        New Member
        • Mar 2020
        • 1

        #4
        Development with win32 requires a lot of work, whatever the solution, excepted with SGL (Simple Graphic Layer).
        Want to see or to try :

        It is pure C and developped with PellesC. At max, few macros would be required in your case.

        Comment

        • analien666
          New Member
          • Mar 2020
          • 4

          #5
          hola
          sorry for the delay. i had to go out of town to visit the kids. they live at grandma's house.

          since she has a farm. they are isolated completely during this serious issue.

          ill take a look and get back to you.

          i should have mentioned that maybe on windows isn't the best choice.

          since most people are using phones these days. i wonder if i shouldn't just go ahead and jump into java instead of C

          i used to have a linux box but it crapped out on me a year ago and just never bothered to replace it.

          Comment

          • analien666
            New Member
            • Mar 2020
            • 4

            #6
            as an old school programmer from the 90s i always used C and didn't code at all in any OOP. But I do understand the need for portability.
            especially in today's world.

            therefore, I decided to give Java a try but also have downloaded and setup inform7 just for the sake of shitz and giggled.

            Comment

            Working...