473,396 Members | 1,789 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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!
Mar 29 '20 #1

✓ answered by dev7060

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.

5 1783
dev7060
636 Expert 512MB
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.
Mar 29 '20 #2
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
Mar 30 '20 #3
Development with win32 requires a lot of work, whatever the solution, excepted with SGL (Simple Graphic Layer).
Want to see or to try :
https://forum.pellesc.de/index.php?topic=6788.0
It is pure C and developped with PellesC. At max, few macros would be required in your case.
Mar 30 '20 #4
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.
Apr 3 '20 #5
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.
Apr 5 '20 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: supportgeek | last post by:
Greetings. Would anyone know the right direction to point me on this one? I need to read text from a Windows Application based on cursor position. And enter text based on what is read. ...
1
by: Antimon | last post by:
Hi, I am working on a browser based space simulation game. I think about two different architectures but i cannot decide, First one is to use and rdbms to store persistent world data. But i...
0
by: Fratyr | last post by:
Hello Experts. This is my fourth time im starting to learn PHP/MySQL/AJAX All the times i tried, was boring, because i was learning only the syntax commands. Now i do another way. I decided to...
1
by: gresey4 | last post by:
i have a question how do i make in game accounts in my text based game EX(In a game like Hobo wars or Urbandead OR deadawaken they have small accounts for the people who registered and play their...
1
by: Carl Banks | last post by:
On Apr 11, 12:08 pm, "Neil Cerutti" <mr.ceru...@gmail.comwrote: That depends. No, it's prudence. If I am writing a banal, been-done-a-million-times before, cookie- cutter text adventure,...
1
by: cousinoer5 | last post by:
I'm trying to implement a shop in my game, right now I can buy anything in the shop and it works perfectly, but I can't sell anything because I get an error I can't figure out. Here's the relevent...
0
by: JosAH | last post by:
A Simple Text-Based Menu System Read this this post; there are numerous posts like that: a newbie struggling with some sort of menu implementation. They want nested menus of course and an option...
10
oedipus
by: oedipus | last post by:
I am currently learning java at school and thus far we have oly dealt with the text-based compiler JGrasp; therefore; my attempt to code Tictactoe or "X and O's" game is written as a text based...
0
by: lucaswhitaker22 | last post by:
Hello! I am a 16 year old who just got into programming. I am fairly new, but I have been trying to learn Bash. I thought a fun project I can attempt is to to make a small text based game based on...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.