Title: RPG
Description: Would like some feedback
factandfiction101 - February 2, 2004 12:14 AM (GMT)
I didn't have a problem with the keys ,
but it would be nice with blue , green , and
other colors .
plainnaim - January 14, 2004 09:40 PM (GMT)
Alrighty I've been working on this for a bit and would really like some feedback on it. It's an RPG created using Borland C++. The entire game lasts about 10-20 minutes and I would greatly appreciate it if anyone could take some time and play it and send some feedback? The .zip file is about 65 Kb, and the .exe included is about 150 Kb.
Go here
http://mywebpages.comcast.net/jsrskate/game.htmand click on the link and it will begin the download of the .zip file.
Thanks much!
TheHawgMaster - January 14, 2004 10:47 PM (GMT)
Nice... Maybe a little color? And what was you inspiration (ADOM, QHack, etc.)?
plainnaim - January 14, 2004 10:51 PM (GMT)
I was under the impression only one color could be used at a time in a DOS window? Either case, no real "inspiration" per say, just kinda got bored one day and decided to work on making me an RPG. It ended up turning into a project I turned in in my Computer Programming class. I suppose I got my ideas from old school Dragon Warrior and Final Fantasy games.
Dragon - January 16, 2004 05:54 AM (GMT)
That's pretty cool. I think you should change the controls because they're kind of awkward (w = go up, d = go right, etc.). Maybe change them so the player can use the arrow keys or some other keys that are less awkward?
FrozenKnight - January 15, 2004 09:06 AM (GMT)
You can use a diffrent dos clooer for each Charicter/CharicterBackground i just don't remember how.
TheHawgMaster - January 15, 2004 04:38 PM (GMT)
Later today I'll upload some code for coloring text in console windows under Windows.
plainnaim - January 15, 2004 04:43 PM (GMT)
Alrighty that'll be cool - Thanks
TheHawgMaster - January 16, 2004 01:11 AM (GMT)
plainnaim - January 16, 2004 07:17 PM (GMT)
I tried figuring out how to use the arrow keys, but I could never find out how. If someone could tell me how to do that, I can change that in my program. (I got that same comment from a few people at school too, as well as my teacher)
My code for the movement is currently like this:
| CODE |
int x, y; char move;
start:
gotoxy(x,y); cout << "x";
move=getch();
if (move=='w') y--; if (move=='x') y++; if (move=='a') x--; if (move=='d') x++;
goto start;
|
TheHawgMaster - January 16, 2004 07:43 PM (GMT)
Maybe something like:
| CODE |
int x, y;
start:
gotoxy(x,y); cout << "x";
while(!kbhit());
if (GetAsyncKeyState(VK_UP) ? 1 : 0) y--; if (GetAsyncKeyState(VK_DOWN) ? 1 : 0) y++; if (GetAsyncKeyState(VK_LEFT) ? 1 : 0) x--; if (GetAsyncKeyState(VK_RIGHT) ? 1 : 0) x++;
goto start; |
plainnaim - January 16, 2004 08:40 PM (GMT)
Well, that works to an extent. Once I hit an arrow key, the program just keeps displaying "x" over and over and I can't stop it.
TheHawgMaster - January 17, 2004 03:06 AM (GMT)
You may need to change:
To:
Now that I think about it that makes alot more sense anyway... <_<
plainnaim - January 17, 2004 03:41 AM (GMT)
Hmmm yep that works, except the x and y values increase/decrease by 2 rather than 1 :huh:
plainnaim - January 18, 2004 05:56 PM (GMT)
Alright I played around with the code, except I had to reverse the effects on x and y values.
Heres the code:
| CODE |
#include <iostream.h> #include <windows.h> #include <conio.h>
void main() { int x=1, y=1; char move;
start: clrscr();
gotoxy(x,y); cout << "x";
move=getch(); if (move==GetAsyncKeyState(VK_UP) ? 1 : 0) y++; if (move==GetAsyncKeyState(VK_DOWN) ? 1 : 0) y--; if (move==GetAsyncKeyState(VK_LEFT) ? 1 : 0) x++; if (move==GetAsyncKeyState(VK_RIGHT) ? 1 : 0) x--; goto start; }
|
That works the way I want it to, but by looking at it logically, it doesn't make sense. By pushing the up key, you move are supposed to move up the screen, which means "y" should decrease, but to make it work, I had to make it increase...Any ideas why I had to do this?
ZerO - January 22, 2004 09:24 PM (GMT)
U could have used keys as W = up, S = down, A = left, D = right!!! I usually use those keys in all games... Couldnt stop after I played HL for the first time ;)
And to perfection the game u should have a breefing at the start... Just to make it more "pro"... Anyways... really nice game!
:D
Jossh - January 28, 2004 08:37 PM (GMT)
Pretty neat, but as some others said needs some color.
prometheus - January 30, 2004 08:08 AM (GMT)
This is a sweet little game. Darn werewolves killed me twice.
only thing is i got a tent but was never able to use it, maybe i just need to play more to find out how to use it?
Any way great game.
oh and here is code for doing color
| CODE |
#include <iostream> // for cout #include <string> // for system command #include <windows.h> // for SetConsoleTextAttribute() using namespace std;
int main() {
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE | FOREGROUND_INTENSITY);
cout << "Here is white\n";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_RED);
cout << "Here is dark red\n";
system("PAUSE"); return 0;
}
|
depending on which of the three colors you use, you get different colors (something like 14 different colors). these two will give you white, and dark red. Intensity makes them brighter. You can use BACKGROUND_GREEN to change the background color.
factandfiction101 - February 1, 2004 01:44 PM (GMT)
That was fun ! Good job !
I liked the old man , lol .
I miss playing Dragon Warrior .
plainnaim - February 1, 2004 07:18 PM (GMT)
Yep, that's basically where I got my idea for this game from. I'm currently in the process of making a second game, with color and less akward keys and, most noteably, longer. Basically the stuff posted in the feedback from people.
19th angel - February 7, 2004 11:59 PM (GMT)
hmm now u done a console version do liek a win32 version with graphics how cool that be
yea good job i got this a while abck but fogot to reply :lol:
plainnaim - February 8, 2004 06:26 PM (GMT)
Yeah I'm trying to learn Win32 now but thats some crazy stuff for someone whos only been programming for 5 months :wacko: