Thread: my new (simple) game

  1. #1
    Registered User dune911's Avatar
    Join Date
    Sep 2001
    Posts
    140

    my new (simple) game

    hi again!

    please visit
    http://www.angrenost.de/pyro-balrog
    and download my new simple game (with sourcecode).

    as you know, i am new to c. what do you think about the source?
    (please ignore the copyright informations, looks better with em )

  2. #2
    Registered User
    Join Date
    Sep 2001
    Posts
    305
    how about trying to code a text adventure? youd be learning more. try adding stuff like save games and high score tables and things like that.

  3. #3
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,212
    Text adventures are ****ing advanced! Command parsers etc. Would take like 6 months to make one, dude.

  4. #4
    Registered User
    Join Date
    Sep 2001
    Posts
    305
    not really, it took me 4-5 hours to make one when i was new to C. theres nothing real advanced, its just like the dice rolling game cept theres more events and things like that.

  5. #5
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,212
    Originally posted by Flikm
    not really, it took me 4-5 hours to make one when i was new to C. theres nothing real advanced, its just like the dice rolling game cept theres more events and things like that.
    no dude, the command parser has to accept things like:
    go north, then pick up book and read it
    and
    n, get book, read book

    there's all sorts of **** you have to think of

  6. #6
    Registered User
    Join Date
    Sep 2001
    Posts
    305
    hmmm, youre making it hard. you dont need things like "go up" or
    "read book". you give the user a menu:

    You found a book!
    [1] Read
    [2] Drop
    [3] Put in your bag

    or something similar.

  7. #7
    Registered User
    Join Date
    Jan 2002
    Posts
    26
    giving the user a menu kinda defeats the object of the game, they're meant to figure out what to do for themselves and as such your program needs to be able to handle any input.
    It's a worthwhile thing to do though as when it's developed you can use the parser in other programs.

  8. #8
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,212
    Or if you really want to make a good text adventure, get TADS, it has a very good, pre-made command parser and a special compiler, it's very good, and the code looks very similar to C. Do a google search for TADS.

  9. #9
    aurė entuluva! mithrandir's Avatar
    Join Date
    Aug 2001
    Posts
    1,209
    Cool little game you've got there dune911. Your code is a bit rough around the edges, but seeing as how it's just a beta version, that's okay.

    Keep up the good work.

  10. #10
    Registered User dune911's Avatar
    Join Date
    Sep 2001
    Posts
    140
    please check
    http://www.angrenost.de/pyro-balrog
    for my new updated version 0.2 beta again.

    i changed the code, so it would work fine and need less code.

    another problem:
    can someone explain exactly, how the random function works? i don't really understand what the function in my game works. i think, i better should...

  11. #11
    Registered User
    Join Date
    Jan 2002
    Posts
    5

    nice

    hey, it does what it was written to do, what more can you ask?

    you could try to center the text on the screen though.

    me just starting to write stuff too, done a tic,tac,toe game there a few weeks ago for college. its a bit simple but anyone wants the code can have it.

  12. #12
    Good little game. Why pyrodice though? I didnt see any fire.

    Pertaining to the text-based rpg:
    >>hmmm, youre making it hard
    Exactly. It doesnt have to be complicated. Check out my website for a really simple way of doing things. (One of these days i'll update it with more versions showing more complicted and better ways of doing it...)
    "There's always another way"
    -lightatdawn (lightatdawn.cprogramming.com)

  13. #13
    none
    Guest
    Originally posted by Edge
    giving the user a menu kinda defeats the object of the game, they're meant to figure out what to do for themselves and as such your program needs to be able to handle any input.
    It's a worthwhile thing to do though as when it's developed you can use the parser in other programs.
    uhhh...those "choose your own adventure" books had a menu-like system, it dosent have to be exactly match everybody's popular veiw of a "text adventure"

  14. #14
    Unregistered
    Guest
    i don't think books had the choice of a command parser

  15. #15
    Registered User biosx's Avatar
    Join Date
    Aug 2001
    Posts
    230
    Neat little game. Would you mind if I re-wrote it with DOS/console graphics and sent it back to you? I think it would a fun little game to give a little color to.

    As with text adventure game deal... C'mon guys. I think text adventures are great for beginners if they use a menu-based system (there is nothing wrong with that). However, if you look at some of the great text-based games like Zork and Gemstone, they use the commands and can parse out the information. So if you are a beginner make a text-based game with menus. Then when you get more advanced you can make it command-based.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Creating a simple Windows game
    By ejohns85 in forum C Programming
    Replies: 1
    Last Post: 05-22-2009, 12:46 PM
  2. A "guess my number" game, with simple AI
    By h3ro in forum C++ Programming
    Replies: 7
    Last Post: 11-04-2006, 10:45 PM
  3. craps game & dice game..
    By cgurl05 in forum C Programming
    Replies: 3
    Last Post: 03-25-2006, 07:58 PM
  4. Whats a very simple but good game i can try to make?
    By bluehead in forum C++ Programming
    Replies: 2
    Last Post: 11-06-2001, 09:24 PM
  5. Replies: 1
    Last Post: 11-06-2001, 02:15 PM