Thread: Dungeon of Moria

  1. #1
    Registered User red_baron's Avatar
    Join Date
    May 2002
    Posts
    274

    Dungeon of Moria

    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]

  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    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.

  3. #3
    Registered User red_baron's Avatar
    Join Date
    May 2002
    Posts
    274
    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]

  4. #4
    Registered User red_baron's Avatar
    Join Date
    May 2002
    Posts
    274
    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]

  5. #5
    Registered User JoshG's Avatar
    Join Date
    Mar 2002
    Posts
    326
    Moria, from LOTR? I like those books.

    (and I would run it if you included the source)

  6. #6
    Rambling Man
    Join Date
    Jan 2002
    Posts
    1,050
    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.

  7. #7
    Registered User red_baron's Avatar
    Join Date
    May 2002
    Posts
    274
    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]

  8. #8
    Registered User Commander's Avatar
    Join Date
    Sep 2001
    Posts
    801
    Cool game man! good job ...I love the grafix!!! But I'm dying too early...Stupid snakes They kill me no matter what!
    oh i'm sorry! i didn;t realize my fist was rushing to meet ur face!

    MSN :: [email protected] []*[]

  9. #9
    I am the worst best coder Quantrizi's Avatar
    Join Date
    Mar 2002
    Posts
    644
    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

  10. #10
    Registered User red_baron's Avatar
    Join Date
    May 2002
    Posts
    274
    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]

  11. #11
    Unregistered Leeman_s's Avatar
    Join Date
    Oct 2001
    Posts
    753
    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?

  12. #12
    Registered User red_baron's Avatar
    Join Date
    May 2002
    Posts
    274
    here are some snippets:

    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;
    }
    heh nice function eh? i didn't get it from anywhere made it myself (so proud of it :P)
    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:
    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("<");
          }
    just prints the < down if down is pressed and up, etc.

    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]

  13. #13
    Unregistered Leeman_s's Avatar
    Join Date
    Oct 2001
    Posts
    753
    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'.

  14. #14
    Registered User red_baron's Avatar
    Join Date
    May 2002
    Posts
    274
    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]

  15. #15
    OMG, thats awesome dude!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A begginer writing a text based dungeon game.
    By deadherorising in forum C Programming
    Replies: 55
    Last Post: 11-10-2007, 06:16 PM
  2. ASCII dungeon template
    By lilhawk2892 in forum C++ Programming
    Replies: 7
    Last Post: 11-09-2007, 09:15 AM
  3. Dungeon of Moria SOURCE CODE!!!
    By red_baron in forum Game Programming
    Replies: 13
    Last Post: 06-10-2002, 04:29 PM
  4. Random dungeon generator...
    By blackwyvern in forum Game Programming
    Replies: 2
    Last Post: 03-23-2002, 11:56 AM