Thread: A quick question

  1. #1
    DJ who loves Goa Trance!!
    Join Date
    Sep 2004
    Posts
    7

    Question A quick question

    What kind of game should I start out making for a begginner programer??

  2. #2
    Registered User linuxdude's Avatar
    Join Date
    Mar 2003
    Location
    Louisiana
    Posts
    926
    depends are you using and API such as directx or opengl or just c/c++?

  3. #3
    i dont know Vicious's Avatar
    Join Date
    May 2002
    Posts
    1,200
    My fist two games were completely text based. Tic-Tac-Toe and Connect4

    But as far as a real game with actual graphics, my first was tetris. Although Pong would probably be the easiest.

  4. #4
    Registered User
    Join Date
    Jul 2003
    Posts
    450
    Sounds good it depends upon your intrests and what you want to learn. It is always a plus if it is an original idea. I consider myself a beginner and am working an a multiplayer space duel program. In the process I have been learning opengl, posix threads and berkly sockets.
    The amount of reading I have done makes this fairly simple idea a big task and already I am running into hitches and questions as I learn. I anticipate I will not finish until next summer as I am attending school and don't have much time for outside studies.

    My advices is pick a subject like probability trees and AI or opengl start studying and begin developing a game based upon what you are learning.

  5. #5
    DJ who loves Goa Trance!!
    Join Date
    Sep 2004
    Posts
    7
    Quote Originally Posted by linuxdude
    depends are you using and API such as directx or opengl or just c/c++?
    I am learning C++, so I would like to create one in C++. I am not going to do OpenGl, Direct X, Direct3d, ect... until I am out of high school so I may have the actual time to do such a thing. So, should I create Tic-Tac-Toe or something? I really don't know where to start off, and what elements of programming I need to know to make such a game, some help would be much appreciated.

  6. #6
    Registered User Frobozz's Avatar
    Join Date
    Dec 2002
    Posts
    546
    You could make a pong game. There would probably be a bigger chance to use objects in pong than in tic-tac-toe. Plus you get to learn collision detection as well which you'd have to learn eventually anyways.

  7. #7
    i dont know Vicious's Avatar
    Join Date
    May 2002
    Posts
    1,200
    Yeah I have actually made pong with pure c++, except... you will need to use the system() command to clear the screen each frame.

  8. #8
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    If you're hell-bent on using pure standard C++, you're not going to get far. Everybody needs some non-standard functions whether it's to set the cursor position, to clear the screen faster than with a system call, or for nicer graphics ([shameless plug]GDI is cool![/shameless plug]). I would suggest you at least get some code on setting cursor position and clearing the screen (that uses some Windows API code, but you can just copy and paste it). Then you can build pong, or a text-based rpg, or whatever you like.
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  9. #9
    DJ who loves Goa Trance!!
    Join Date
    Sep 2004
    Posts
    7
    Well, I just want to be able to create a simple game in C++. I have given it some thought, and I mite probibly try out some Direct X after I make a game or 2 in C++ (and after I learn alot more) But where I am stuck is the fact that I have no idea how to start programming a game. What aspects of programming do I need to know? I know I would need to know Functions, and Classes. But, I don't know what else I would need to know. Could someone help me out with my problems? Thanks alot.

  10. #10
    Registered User Frobozz's Avatar
    Join Date
    Dec 2002
    Posts
    546
    It's about the same as programming anything else. Basically you receive input, process the input and maybe update stuff (enemies, player stats, etc), and generate output. Why not search the forums for pong or something similar and look at their source to see how they did it?

    This is a good place to check: http://www.gamedev.net/reference/start_here/

  11. #11
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    >>What aspects of programming do I need to know?
    STL containers like std::vector, std::list, std::map, std::deque. Vector and list are the most important ones. Also read up on pointers and references. Then read up on _kbhit() or your compiler's equivalent if one exists, because it's useful if you don't want cin to stop your whole program from running while it waits for input.
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  12. #12
    Sweet
    Join Date
    Aug 2002
    Location
    Tucson, Arizona
    Posts
    1,820
    What hunter said plus with games you really need to focus on loops. Also working with member functions in your classes helps save you alot of work . Id pesonally recommed allegro because it's fairly easy to work with.
    Woop?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Very quick math question
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 10-26-2005, 11:05 PM
  2. very quick question.
    By Unregistered in forum C++ Programming
    Replies: 7
    Last Post: 07-24-2002, 03:48 AM
  3. quick question
    By Unregistered in forum C++ Programming
    Replies: 5
    Last Post: 07-22-2002, 04:44 AM
  4. Quick Question Regarding Pointers
    By charash in forum C++ Programming
    Replies: 4
    Last Post: 05-04-2002, 11:04 AM
  5. Quick question: exit();
    By Cheeze-It in forum C Programming
    Replies: 6
    Last Post: 08-15-2001, 05:46 PM