Jump to content
  • Advertisement
Sign in to follow this  
phil67rpg

simple c++ project

This topic is 2505 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
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 smile.png ), 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 biggrin.png) .

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!

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!