ah finally i'm done the beta, follow the link in my sig to download the game, i'll put up the source code in a couple of days when i document and clean up the code a little.
Let me know what you think.
ah finally i'm done the beta, follow the link in my sig to download the game, i'll put up the source code in a couple of days when i document and clean up the code a little.
Let me know what you think.
¿Red Baron?
"Imagination is more important than knowledge"
-Albert Einstein (1879-1955)
Check out my games!
[code] /* dont forget code tags! */ [/code]
This file is hosted by Tripod, a Lycos®Network Site, and is not available for download. Please check out Tripod's Help system for more information about Remote Loading and our Remote Loading policy.
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.
huh i hate that it lets me download i'll fix right now
¿Red Baron?
"Imagination is more important than knowledge"
-Albert Einstein (1879-1955)
Check out my games!
[code] /* dont forget code tags! */ [/code]
it should work right now
¿Red Baron?
"Imagination is more important than knowledge"
-Albert Einstein (1879-1955)
Check out my games!
[code] /* dont forget code tags! */ [/code]
Moria, from LOTR? I like those books.
(and I would run it if you included the source)
gcc -lalleg
http://www.ciusa.net/~jrgrant/
Well, I played it, because I played one of his previous versions of the game, so I knew it would be a game.
And I have to say that it's a pretty good game for being beta. Those are the best console graphics I have ever seen. They were good even when they weren't in color, but now they are that much better.
thanx guys
how far did you guys get in the game? i got a couple of quests (very few and bad ones too )
anyway the code is very simple the most complicated concept i use are structures, basically all the game has are:
-for loops
-do while loops
-if else statements (who doesn't?)
structures
-arrays
thats basically it, very simple eh? just use your imagination!
¿Red Baron?
"Imagination is more important than knowledge"
-Albert Einstein (1879-1955)
Check out my games!
[code] /* dont forget code tags! */ [/code]
Cool game man! good job ...I love the grafix!!! But I'm dying too early...Stupid snakes They kill me no matter what!
I died from the trolls, but really good job dude. Can't wait to learn from the source if you are still gonna release it
hehe read the instructions...
you can enter the grey boxes (houses) to buy armour, weapons, spells and potions.
Dont forget to rest (r no in battle) to regain mana and hp.
Also spells hit for a fixed amount that means they always hit .
Lastly at this point the adventurer is best character, has a decent amount of magic and strenght, i believe he has most defence too, so he's your best choice.
Also the code i'm gonna post some time next week (when find some time to fix it a little, i use a couple of goto's and thats not cool )
the code is i think around 4 to 5 thousand lines.. not too long considering that i didn't make an engine , but i got like 1k of lines for the maps... after the troll is a HUGE map, you guys havn't got anywhere yet... hehe
¿Red Baron?
"Imagination is more important than knowledge"
-Albert Einstein (1879-1955)
Check out my games!
[code] /* dont forget code tags! */ [/code]
just two questions:
1) How do you make those nice 'tables'? The three main ones.
2) How do you do the thing where '<' chooses options?
here are some snippets:
heh nice function eh? i didn't get it from anywhere made it myself (so proud of it :P)Code:#define gamewindow 0,0,44,18 #define messagewindow 0,19,44,23 #define statswindow 45,0,79,6 #define itemwindow 45,7,79,23 #define thick 2 #define thin 1 int main () { frame(thick, gamewindow); //example of how i used it system("PAUSE"); return 0; } void frame (int tickness, int xmin, int ymin, int xmax, int ymax) { if (tickness==1) { gotoxy(xmin,ymin); putchar(218); gotoxy(xmax,ymin); putchar(191); gotoxy(xmin,ymax); putchar(192); gotoxy(xmax,ymax); putchar(217); gotoxy(xmin+1,ymin); for(count=xmin; count<xmax-1; count++) putchar(196); gotoxy(xmin+1,ymax); for(count=xmin; count<xmax-1; count++) putchar(196); for(count=ymin+1; count<=ymax-1; count++) { gotoxy(xmin,count); putchar(179); } for(count=ymin+1; count<=ymax-1; count++) { gotoxy(xmax,count); putchar(179); } } else { gotoxy(xmin,ymin); putchar(201); gotoxy(xmax,ymin); putchar(187); gotoxy(xmin,ymax); putchar(200); gotoxy(xmax,ymax); putchar(188); gotoxy(xmin+1,ymin); for(count=xmin; count<xmax-1; count++) putchar(205); gotoxy(xmin+1,ymax); for(count=xmin; count<xmax-1; count++) putchar(205); for(count=ymin+1; count<=ymax-1; count++) { gotoxy(xmin,count); putchar(186); } for(count=ymin+1; count<=ymax-1; count++) { gotoxy(xmax,count); putchar(186); } } return; }
basically i just changed the "table"/"window" to thin or thick when tab was pressed.
all the function does is print the characters that are lines and corners in the right place.
and the < was very easy, here's an example since the actual thing has a lot of extra stuff:
just prints the < down if down is pressed and up, etc.Code:gotoxy(77,itemchoice+9); printf("<"); inputitem=my_getch(); if(inputitem==K_DOWN && itemchoice!=13) { itemchoice++; gotoxy(77,itemchoice-1+9); printf(" "); gotoxy(77,itemchoice+9); printf("<"); } else if(inputitem==K_UP && itemchoice!=0) { itemchoice--; gotoxy(77,itemchoice+1+9); printf(" "); gotoxy(77,itemchoice+9); printf("<"); }
hope you understand
¿Red Baron?
"Imagination is more important than knowledge"
-Albert Einstein (1879-1955)
Check out my games!
[code] /* dont forget code tags! */ [/code]
What am I supposed to do after killing the troll? I killed him, and now there is nowhere to go. And also, you should change your program so that the set of monsters it randomly chooses from for you to fight vary according to your str and defense (not defence). And in the help section, it says 'amound' not 'amount'.
after troll keep going right you will suddenly enter the cave (i havn't found a character that suits the enterance), also the monsters actually become stronger as you go further in the cave, the monsters in the beginning are only 1/4th of the ones that are available in the game.
and finally i'm sorry for my spelling mistakes (i didn't check to see if i was spelling anything correctly) i'll be sure to check for spelling mistakes when i get the time to look over my code again.
oh yes i'd love to see screen shots of your characters btw dont forget to check out some of the houses you can do quests.
and last but not least i'll be making a save game (thank god) very very very soon (which in my definition is in the next week or so) when i learn to use fopen() etc.
¿Red Baron?
"Imagination is more important than knowledge"
-Albert Einstein (1879-1955)
Check out my games!
[code] /* dont forget code tags! */ [/code]