I'm a dummy. You're right from the start. In my other programs, I used %[^*]*. I didn't even see that extra asterisk I put there.
Type: Posts; User: edomingox
I'm a dummy. You're right from the start. In my other programs, I used %[^*]*. I didn't even see that extra asterisk I put there.
Thanks for the advice john. I tried putting l before the bracket and it didn't work.
I added what readLine is in my first post (probably while you were responding), I have the asterisk there. ...
So I started a new program and I'm using wide characters (wchar_t). This is all new to me and I'm having a hard time adjusting to the new syntax. One of the problems I'm having is trying to read a...
I guess since I'm programming on a Windows 10 using Visual Studio 2019, I'm pretty much out of luck trying to use more than the 15 colors. I'm not good at programming graphics but I guess I can try...
I'll try this to fix my unicode issue. YouTube
Would this work?
set_mode(VGA_256_COLOR_MODE);
I found it here: 256-Color VGA Programming in C - bitmap.c
I'll have to explore this route...
I double checked the program. I may be wrong. I have the #defines to use them in printf statements but I'm not actually using them. I'm using the textcolor(int); function that you see everywhere. ...
I have two different programs I've made. I created a function that changes the textcolor for both foreground and background, but it only does 15 colors. In one of those programs, I use the escape...
Currently, I'm programming in C and making a console program and could only use the 15 colors. Is there a way to continue making a console program that will use 256 colors? This is all in Windows. ...
I thought about binaries. I'll have to research that.
I thought about people editing for their own purposes, but I would want them to first play the game as intended instead of modifying the...
Hello All,
My program utilizes text files to load data like weapons, rooms, monster information. I can't have player's opening the files and editing them.
Does anyone have any advice on what...
I don't think i have it compartmentalized as much as it should be. As I have been programming it and testing it, I have been finding things I wished I should of done differently but settled with it...
so would it be difficult adding multiplayer into a text based game after it's already created? or would it be easier to start over?
I think for my game, I would want the client-server type. The game would run and everyone connects as a client. I think the main thing I need to do is ensure all the clients get the same data to...
Hello All,
I'm in the middle of programming a text based adventure game and was thinking how nice it would be to make it multiplayer. Unfortunately, I have no idea how to go about this? So, I...
Thanks for the advice.
This is what works now which takes into consideration any backspaces.
char cChar[2];
int c;
int extended = 0;
c = _getch();
Yes, by my thinking it through. Here's an idea I had. I would get each individual character and print it as if you were using fgets. But again, the backspace key is a bother. Here's my testing...
Visual C++ 2008 Enterpirse
I have a game which is text-based. I'm trying to incorporate the arrow keys. I know what the values are. What I'm trying to do is be able to differentiate the difference between the player using...
I've seen the command before but I can't remember what it is. I would like to be able to print onto the screen data but only in a certain area. For example, on a window console that has 25 lines, I...
I know this is an old post, but this code should help anyone that has this issue.
I have the following code that works:
void gotoxy(int x , int y)
{
/******************************* gotoxy...
That may be the same thing I can use. Is there an easy way to do such a thing? I've never done something like that before. I wouldn't know where to start.
Here's the situation. I would like to be able to have to window consoles running by one program. the program is a text adventure game. One window would contain all the info and actions going on. ...
I'm using mciSendString and I was wondering how do you retrieve the file name from the alias.
Given the following code:
mciSendString("open music.mp3 type mpegvideo alias myfile", NULL, 0,...
mciSendString seems to be able to play multiple sounds at once. I'm having trouble getting the repeat command to work. I'm trying:
mciSendString("play sound.wav repeat", NULL, 0, 0);
but it...
I'm using VC express. I think it's 2008. It's the free one.
As far as the errors go, I didn't write them down. I'm currently on a business trip and I am using a different computer to access the...