Two Heads Better Than One

This is a discussion on Two Heads Better Than One within the Game Programming forums, part of the General Programming Boards category; Say wha? Maybe an example, or is that something I already know... Hmm... I don't think so. Maybe some code?...

  1. #31
    Me pwn you.
    Join Date
    Feb 2006
    Location
    At my computer or in my bed.
    Posts
    46
    Say wha? Maybe an example, or is that something I already know...
    Hmm... I don't think so. Maybe some code?

  2. #32
    pwns nooblars
    Join Date
    Oct 2005
    Location
    Portland, Or
    Posts
    1,094
    What he means is to make your game in parts, so that you can add or remove parts easier. Also the parts allow to debug the program faster.

    Here is a guide http://www.skylit.com/faqs/ch14.html I didn't read through all of it, but what I did read seemed to be good.

  3. #33
    Registered User Kurisu's Avatar
    Join Date
    Feb 2006
    Posts
    62
    Woah this sucker is a big thread. I figured it was months old by the size

    You guys got a storyline? I remember playing text RPGs/Adventures on my old computer from the 80s, surprisingly quite fun. Be interesting to see what you guys come up with.

    as others have suggested you should use classes a lot. Easy to program, easy to debug, will definitely shrink your coding and allow you to focus on actually programming the game, easy to make modifications later, easy for working on projects in groups, easy to keep track of stuff like monsters. Makes it easy to create them, store info regarding each one, and discard them when they are dead.. etc..

    I've written a game before and trying to do it without classes is a nightmare, but Good Luck if you decide to go that route anyways.

    ex:
    Code:
    class Monster
    {
      public:
        getHit(int hp);
        attack(int power);
        move(int x, int y);
      
      private:
        int health;
        int attackPower;
        int speed;
        int posX, posY;
    type .......
        etc.
    }
    As for: Two Heads Better Than One
    Some might say the 2nd one will just cloud your thoughts.. Okay, that was my one Penis joke for the year.. can I say Penis here? .? oh well, we will see
    Last edited by Kurisu; 02-08-2006 at 01:18 AM.

Page 3 of 3 FirstFirst 123
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Sorted Linked List with multiple heads.
    By S15_88 in forum C Programming
    Replies: 2
    Last Post: 03-23-2008, 12:01 AM
  2. Something about probablility
    By mike_g in forum A Brief History of Cprogramming.com
    Replies: 116
    Last Post: 03-13-2008, 06:33 PM
  3. Cant Make heads or tails of .h files
    By D3T in forum C++ Programming
    Replies: 4
    Last Post: 07-09-2002, 11:03 AM
  4. try your heads on this
    By jasrajva in forum A Brief History of Cprogramming.com
    Replies: 70
    Last Post: 11-08-2001, 11:31 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21