Skip to main content
GameDev.net gamedev.net
🔒 Locked

Little Head start help?

Started by scheols Apr 28, 2007 at 5:30 PM 0 replies 750+ views
Original Post
scheols
scheols
Alright I find it the best way to learn something is practice,practice and practice. So I'm wondering is you guys here from GD.net could give me a head start with really,really,really simple task using Classes with C++ and some of the basic things in C++. If you guys could would be nice to list like 5 things to make from each person who posts. Would give me a range of unique things to practice with C++. This would be great thanks in advanced.(That way for all the things I try and make[probably everything] I'll post here to get help.)
geolycosa
geolycosa
One thing a good programmer always has in his bag-o-tricks is a set of container classes. STL provides several of such container classes, but arguably they are not as well suited for games as they could be. In any case, writing some of your own is a good exercise. Try these out:

Array class (contiguous storage)
Linked-List class (build as you go storage)
Hash Table (keyed storage)
Stack - (first in, last out)
Queue - (first in, first out)

If you've got those down, try writing these simple games:

"Guess the number" - A random number is generated within a certain range, and the player has a certain number of attempts to guess it. Optionally, the program can inform the user if his or her number is higher or lower than the answer.

"Tic-tac-toe" - We all know how to play this. You don't need graphics to do this one either. Have a two player mode, and a single player mode with computer player AI.

"Wheel of Fortune" - Replicate a game of Wheel of Fortune. Again, no need for graphics. Make this one data driven - read all of the words the players guess from a file. Have a multiplayer and single player mode.

"Pong" - This one will need some graphics. You could use OpenGL or DirectX to accomplish this. If you opt for OpenGL (which I recommend for portability and ease of use just starting out), Use the GLUT library (GL utility library) to handle making a window in the OS and setting up the OpenGL context, as well as event handling.
Will Miller | Game Designer | Big Huge Games

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.