Click here to Skip to main content
15,895,746 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: JPEG header construction Pin
Andrea Rabitti19-Jun-12 5:16
Andrea Rabitti19-Jun-12 5:16 
GeneralRe: JPEG header construction Pin
Chris Losinger19-Jun-12 5:18
professionalChris Losinger19-Jun-12 5:18 
GeneralRe: JPEG header construction Pin
Andrea Rabitti19-Jun-12 5:25
Andrea Rabitti19-Jun-12 5:25 
GeneralRe: JPEG header construction Pin
Chris Losinger19-Jun-12 5:30
professionalChris Losinger19-Jun-12 5:30 
GeneralRe: JPEG header construction Pin
Andrea Rabitti19-Jun-12 5:34
Andrea Rabitti19-Jun-12 5:34 
Questionbasic gaming in c++ Pin
Member 913892418-Jun-12 18:10
Member 913892418-Jun-12 18:10 
AnswerRe: basic gaming in c++ Pin
Richard MacCutchan18-Jun-12 21:14
mveRichard MacCutchan18-Jun-12 21:14 
AnswerRe: basic gaming in c++ Pin
Maximilien19-Jun-12 0:55
Maximilien19-Jun-12 0:55 
Well, a game is a LOT MORE than just programming.

(short summary as I do not have my morning coffee yet)

You need an idea what the game will be. once you get an idea, you will have to put it down on paper (virtual paper) and write down the synopsis of the game (the actual story, can be simple (tic-tac-toe), or very complex (GTA) ).

When the synopsis is done, you need to define how the game will be played (still no line of code programmed yet). This involved a lot of play-acting : RTS, FPS, RPG, Simulation, Game, ...

You will create a storyboard for the different phases of the games, the different "levels".

You will define the art work for the game (2d, 3d, cartoon, real-life, ... ) and create basic drawings (paper, photoshop, ...) of the characters, the play field.

After that, when you feel you have a good grasp of what your game will be, you can start looking at the different technologies to build the game (graphic engine, sound engine, Artificial Intelligence engine).
During that stage, you will write down (with bad ugly code) prototype displaying the different capabilities of the engine you choose, how the characters move, how the graphics will be displayed, show simple game mechanisme, display the (ill)logic of the AI, ...

Once that is done, then you can start to write some real nice code.

anyway, a simple game (not compiled, not tested)

C++
bool found = false;
while (!found)
{
  cout << "guess a number." << endl;
  int value;
  cin >> value;
  srand ( time(NULL) );
  if ( value == rand() )
  {
    cout << "you found it";
    found = true;
  }
}


Big Grin | :-D
Watched code never compiles.

GeneralRe: basic gaming in c++ Pin
JackDingler19-Jun-12 10:05
JackDingler19-Jun-12 10:05 
AnswerRe: basic gaming in c++ Pin
Sivaraman Dhamodharan19-Jun-12 22:47
Sivaraman Dhamodharan19-Jun-12 22:47 
Questionhow to make a line in c++ Pin
Member 913892418-Jun-12 18:03
Member 913892418-Jun-12 18:03 
AnswerRe: how to make a line in c++ Pin
enhzflep18-Jun-12 18:50
enhzflep18-Jun-12 18:50 
GeneralRe: how to make a line in c++ Pin
Member 913892419-Jun-12 0:43
Member 913892419-Jun-12 0:43 
GeneralRe: how to make a line in c++ Pin
enhzflep19-Jun-12 0:52
enhzflep19-Jun-12 0:52 
QuestionRe: how to make a line in c++ Pin
Member 913892419-Jun-12 17:45
Member 913892419-Jun-12 17:45 
AnswerMessage Removed Pin
19-Jun-12 17:49
enhzflep19-Jun-12 17:49 
GeneralRe: how to make a line in c++ Pin
Member 913892419-Jun-12 17:56
Member 913892419-Jun-12 17:56 
GeneralRe: how to make a line in c++ Pin
enhzflep19-Jun-12 18:00
enhzflep19-Jun-12 18:00 
GeneralRe: how to make a line in c++ Pin
enhzflep19-Jun-12 18:24
enhzflep19-Jun-12 18:24 
AnswerRe: how to make a line in c++ Pin
enhzflep19-Jun-12 17:50
enhzflep19-Jun-12 17:50 
AnswerRe: how to make a line in c++ Pin
Albert Holguin19-Jun-12 2:33
professionalAlbert Holguin19-Jun-12 2:33 
QuestionCompiler Question: Use of MFC : Use Standard Windows Libraries Pin
DeepT18-Jun-12 10:57
DeepT18-Jun-12 10:57 
AnswerRe: Compiler Question: Use of MFC : Use Standard Windows Libraries Pin
Binu MD18-Jun-12 14:29
Binu MD18-Jun-12 14:29 
GeneralRe: Compiler Question: Use of MFC : Use Standard Windows Libraries Pin
DeepT19-Jun-12 2:24
DeepT19-Jun-12 2:24 
GeneralRe: Compiler Question: Use of MFC : Use Standard Windows Libraries Pin
Richard MacCutchan19-Jun-12 3:10
mveRichard MacCutchan19-Jun-12 3:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.