game design

This is a discussion on game design within the C++ Programming forums, part of the General Programming Boards category; Does anyone knows a good place to learn about game design. I mean how to use classes in games, how ...

  1. #1
    the Great ElastoManiac's Avatar
    Join Date
    Nov 2005
    Location
    Republika Srpska - Balkan
    Posts
    377

    game design

    Does anyone knows a good place to learn about game design. I mean how to use classes in games, how to seperate classes in header files, and so on.
    lu lu lu I've got some apples lu lu lu You've got some too lu lu lu Let's make some applesauce Take off our clothes and lu lu lu

  2. #2
    Registered User
    Join Date
    Nov 2006
    Posts
    13
    google code search. Search for games and just look and see how they implement their classes and divide up their files.

  3. #3
    the Great ElastoManiac's Avatar
    Join Date
    Nov 2005
    Location
    Republika Srpska - Balkan
    Posts
    377
    It's too complicated. I don't know for what game to search, it would be much better if i had a tutorial on game design.
    lu lu lu I've got some apples lu lu lu You've got some too lu lu lu Let's make some applesauce Take off our clothes and lu lu lu

  4. #4
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,062
    It's really up to the programmer... there is no real tutorial, you just design it the way you want to design it. One programmer might implement a game one way another might do it completely different. The general rules for designing are simple; Don't write spaghetti code, comment well, and leave room for updates and advancements.

    As for separating source files... here is my simple rule for large projects: If the classes or functions have nothing to do with each other, then they should be in separate source files. Follow that and you should be fine.
    Sent from my iPadŽ

  5. #5
    the Great ElastoManiac's Avatar
    Join Date
    Nov 2005
    Location
    Republika Srpska - Balkan
    Posts
    377
    Thanks. I gues you are right. Everyone has their style.

    I have always had and idea about organizing classes, just that i though there is a certain rule to do it. Seems there isn't.

    So here are my orientations ( if anyone is interested ) :
    Code:
    - put everything in a classes
    - never create global variables and functions
    - define a class in a header file
    - declare a class in a cpp file
    - use main() only to call the corresponding function from the engine class
    - declare video, sound and input classes
    - no matter how small the class is, it should be alone in the file
    So that's it pretty much, Can you guys post your styles so that we can compare them...
    lu lu lu I've got some apples lu lu lu You've got some too lu lu lu Let's make some applesauce Take off our clothes and lu lu lu

  6. #6
    the Great ElastoManiac's Avatar
    Join Date
    Nov 2005
    Location
    Republika Srpska - Balkan
    Posts
    377

    • Intel Core 2 Duo E6600 @ 3.2Ghz OC •
    • ASUS P5B Deluxe v 0711 • 2GB Corsair XMS2 DDR2 800 4-4-4-10 •
    • nVidia GeForce 7600GT • Creative SoundBlaster Audigy2 ZS •
    • 2x 250GB Western Digital Caviar •
    • AeroCool ExtremEngine 3T • OCZ GameXStream 600W •

    It's incredible, i have the same configuration as you. But i had a thought about buying another 7600 GT, to pair them up. In order to play Oblivion decently...
    lu lu lu I've got some apples lu lu lu You've got some too lu lu lu Let's make some applesauce Take off our clothes and lu lu lu

  7. #7
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,062
    I play oblivion fine...

    It's not perfect, but it does the trick... besides, I'm waiting on the DX10 cards to upgrade the video card.
    Sent from my iPadŽ

  8. #8
    Registered User
    Join Date
    Mar 2006
    Posts
    725
    Just so you know, many games are deviating from C++. Today you see games written in Python, Lisp, OCaml, and specialized in-house game scripting languages. The development cycle is simply faster, and it's easier for fans to write plugins, mods and maps. But if you happen to write a fast game library in C++...
    Code:
    #include <stdio.h>
    
    void J(char*a){int f,i=0,c='1';for(;a[i]!='0';++i)if(i==81){
    puts(a);return;}for(;c<='9';++c){for(f=0;f<9;++f)if(a[i-i%27+i%9
    /3*3+f/3*9+f%3]==c||a[i%9+f*9]==c||a[i-i%9+f]==c)goto e;a[i]=c;J(a);a[i]
    ='0';e:;}}int main(int c,char**v){int t=0;if(c>1){for(;v[1][
    t];++t);if(t==81){J(v[1]);return 0;}}puts("sudoku [0-9]{81}");return 1;}

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Game design question
    By h3ro in forum Game Programming
    Replies: 6
    Last Post: 02-28-2008, 07:20 AM
  2. Open Source / Semi Open source game idea. Help needed
    By CaptainPatent in forum Projects and Job Recruitment
    Replies: 10
    Last Post: 05-16-2007, 10:44 AM
  3. So you want to be a game programmer?
    By dxfoo in forum Game Programming
    Replies: 23
    Last Post: 09-26-2006, 08:38 AM
  4. C Programming 2d Array Question
    By jeev2005 in forum C Programming
    Replies: 3
    Last Post: 04-26-2006, 03:18 PM
  5. Game Independent Anti-cheat Project Needs Programmers
    By GIA Project Lea in forum Projects and Job Recruitment
    Replies: 3
    Last Post: 09-15-2005, 07:41 PM

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