That's what I was thinking.
It'd be nice if Zork or some other reputable text adventure were made open source, but then I'm sure a lot of the programming used in those games were archaic.
Type: Posts; User: Nalif
That's what I was thinking.
It'd be nice if Zork or some other reputable text adventure were made open source, but then I'm sure a lot of the programming used in those games were archaic.
I'm trying to come up with a coordinate/map system for a text game I'm working on that's easy to work with and understand. Here's what I've come up with so far, but it seems overly complicated:
...
Thank you.
And I'm in the process of realizing how to implement it. Once I find the time to open the source code up again ( I have a very busy schedule right now ) I'll see if I can't understand...
Let me restate. I do not understand scanf. However, I understand it much more than any other comparable function. I can't claim to fully understand any function I've ever used, because I've never...
Post three may tell me not to use scanf, but why would I use code when I have no idea what it does? I posted here asking why my code didn't work as expected, not how to completely rewrite it just...
I've fixed the program. I'm not completey sure, but I believe my problem was using scanf to read in the input expecting it to be a %c - I thought this stood for character, but apparently I needed to...
No, I only typed y or n. The program still breaks, so I don't think making the changes you've suggested would fix the problem. I'll give it a try when I get home, but that's not what broke the...
cont is the variable that holds the input for one of the scanf functions. I used an if statement to check to see what cont was equal to after the scan - if it was equal to n, it set the continuation...
I'm trying to program a simple game where the user has to guess a number between 1 and 1000. The game works for the most part, however it always displays the "You are correct! Play again? (y or n)"...
I guess creating custom functions are above me as of yet, and I'd better just stay away from them completely. I don't understand them, and understand even less the examples you posted. I'll just keep...
I'm trying to learn how to clean up my code, and I think the solution will be to use custom functions. My current project is a text-based adventure game. Right now I'm trying to get the room system...
Aha! Now I understand. I didn't realize what the array[0] was doing inside of the switch function - now I realize that it's telling the switch function to make all of it's call comparisons to the...
But using the case structure like that still requires the action be called by a single character ( a, b, etc) as opposed to a string, correct? Unless I've overlooked something.
I just did a quick...
Currently I'm working on a text based adventure - I'm not doing this for class or anything, but just because it seemed like a fun idea to try. I'm new to programming, but I've been reading far ahead...