Jump to content

  • Log In with Google      Sign In   
  • Create Account

simple c++ project


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
6 replies to this topic

#1 phil67rpg   Members   -  Reputation: 767

Like
0Likes
Like

Posted 04 February 2012 - 03:36 PM

well I starting over from scratch.I have been studying c++ book and tutorial.where do I start as a very simple project.

Sponsor:

#2 sc2slash   Members   -  Reputation: 131

Like
0Likes
Like

Posted 04 February 2012 - 03:56 PM

I'd recommend this exercices. They go from beginner to "advanced" beginner, so it's good practice. http://www.cplusplus.com/forum/articles/12974/

#3 Marrshal   Members   -  Reputation: 108

Like
0Likes
Like

Posted 04 February 2012 - 03:58 PM

Well, my first attempts to make a game was a very simple game in the good old console. Actually it was a snake game.. You can use this

void clear_screen (){
  DWORD n;	
  DWORD size;	  
  COORD coord = {0};			  
  CONSOLE_SCREEN_BUFFER_INFO csbi;

  /* Get a handle to the console */
  HANDLE h = GetStdHandle ( STD_OUTPUT_HANDLE );

  GetConsoleScreenBufferInfo ( h, &csbi );

  SetConsoleCursorPosition ( h, coord );
}
to clear you're screen faster (you'll need to #include "Windows.h" ).
This is in case you want to write something very simple, very ugly and very unuseful only for fun and practice with the language.

The next thing I can suggest you is allegro. Alegro is very simple library for 2D game dev. You can learn it from the net. And you'll something more complex (but still simple Posted Image ), good looking (i mean with graphics better than in the first suggestion) and cool. (Actually I have started writing Chicken Invaders using Allegro because it looks too bad in the c++ console Posted Image) .

And my third suggestion is to start with the hardcore - openGL. With openGL you can write very powerful games and will be very usefull if you learn it. But if you just start with c++ it will be very hard for you. My suggestion is to write some bullshits while you get the conception of c++ and gamedev and then openGL will be easier for you.

I hope I was helpful!
MarrShal

#4 phil67rpg   Members   -  Reputation: 767

Like
0Likes
Like

Posted 04 February 2012 - 04:06 PM

thanks for the input,can you tell me specifically which game I should start with

#5 winsrp   Members   -  Reputation: 273

Like
0Likes
Like

Posted 04 February 2012 - 04:10 PM

start from the basics... board games that you can represent with characters, tic tac toe, comes to mind. there are many many others like checkers, which would be a nice upgrade from tic tac toe.

#6 phil67rpg   Members   -  Reputation: 767

Like
0Likes
Like

Posted 04 February 2012 - 04:15 PM

cool sounds good , I will go back to tic tac toe.

#7 phil67rpg   Members   -  Reputation: 767

Like
0Likes
Like

Posted 04 February 2012 - 10:02 PM

I'd recommend this exercices. They go from beginner to "advanced" beginner, so it's good practice. http://www.cplusplus...articles/12974/

thanks for the help I am doing the exercises as stated above.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS