start game progrramin

This is a discussion on start game progrramin within the Game Programming forums, part of the General Programming Boards category; hi . I realy like programming and I know c++ . my question is that how and from where I ...

  1. #1
    Registered User
    Join Date
    Nov 2003
    Posts
    177

    Question start game progrramin

    hi .
    I realy like programming and I know c++ .
    my question is that how and from where I should start game programming ? is it possible with c++ ?
    if yes , are the games (that are written with c++ )graphical ?

  2. #2
    Teenage Mutant Ninja Nerd MMD_Lynx's Avatar
    Join Date
    Aug 2004
    Posts
    65
    you can definately make games with c++
    as for graphics, u need another library (like OpenGL or Allegro)
    i think u should start with maybe a card game (or even tic tac toe)
    then once ur skill is built up, maybe a text rpg.
    but hey, im not expert. just hope someone better than me replies.
    Stupid people are useful. You can make them do all the mindless tasks you are too lazy to do yourself.

    Sphynx cats are just bald and wrinkly, like old people, and we don't reject them.

  3. #3
    Registered User Draco's Avatar
    Join Date
    Apr 2002
    Posts
    463
    As lynx said, start small and work your way up from there. Tic-Tac-Toe is a good first game, it was my first game, and it took me a lot longer than I first expected. I was programming it while I learned C, not when I had learned all of it already, so it took me a few weeks. Depending on what you think you want/feel you need to work on you could move on to a text rpg or a simple game with action like pong.

    [edit]
    These games are simple enough you can all do them without using a separate graphics api like opengl or allegro. The game will look bad, but it'll make it simpler to code and you can concentrate more on the game itself.
    [/edit]

  4. #4
    Registered User
    Join Date
    Nov 2003
    Posts
    177
    tnx .
    I will start with tic-tac-toe .

  5. #5
    eat my shorts!
    Join Date
    Apr 2002
    Posts
    294
    nah tic-tac-toe is too boring.

    perhaps try a game like galga.
    something like bees coming (2 or 3 but start with 1) from the top and the user shop @ the bottom.
    Games Reviews Previews Desktop Themes Downloads Paintball Forums Shareware Freeware and much more

    The best in Technology and Gaming News

    www.back2games.com

  6. #6
    Registered User
    Join Date
    Nov 2003
    Posts
    177
    tnx but can u plz explain about galga , I dont know what it is.
    I have worked on tic-tac toe too , it is not bad , ofcourse I have problems in some parts that I am trying to solve them .

  7. #7
    eat my shorts!
    Join Date
    Apr 2002
    Posts
    294
    basically it is going to be like this:

    (see attached pic)

    basically you will have to do this after u have drawn a window and assuming u r working in a 640x480 enviroment.

    First draw and pic.
    give it control via arrow keys.
    limit pic* movement by saying that its movement cannot be accepted if its location is > 640 or < 0 (Horizontal movements) and is less than 480 (vertical). u may also limit its top movement.

    AI:
    start with single AI that spawns @ random locations (on top) and comes down and tries to hit user.

    Then try to move to 2 and so on..

    PowerUPS:
    At this stage u will have a good grip of ur knowledge and what u r doing. To extent what u know and make it more interesting give usersome Powerups.




    Introscreen
    backgrounds
    gameinit
    gameexit
    Exitscreen
    ReturntoWindows
    Attached Images Attached Images  
    Games Reviews Previews Desktop Themes Downloads Paintball Forums Shareware Freeware and much more

    The best in Technology and Gaming News

    www.back2games.com

  8. #8
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    Tic-Tac-Toe would be good for learning AI and concepts like Minimax game trees. If you're wanting to learn graphics, the game described above would be better. Lots of people have asked this question so if you want some more ideas to think about do a board search, but basically you just have to think about what kind of game programming you want to do.

  9. #9
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,584
    This will get you started on firing projectiles at the player and whatever else you want to shoot at.

    Using vector normalization to fire at a target from a point in 2D space.
    Code:
    struct point2D
    {
      float x;
      float y;
    };
    
    
    //Will compute x and y deltas to fire missile from Attacker to Target
    //Simple normalization of a vector
    void FireMissileAt(point2D &Attacker, point2D &Target,point2D &Result)
    {
      float diffx=Target.x-Attacker.x;
      float diffy=Target.y-Attacker.y;
      float distance=sqrt((diffx*diffx)+(diffy*diffy));
      Result.x=diffx/distance;
      Result.y=diffy/distance;
    }

  10. #10
    Registered User Chubz's Avatar
    Join Date
    Sep 2004
    Posts
    16
    Quote Originally Posted by arian
    hi .
    I realy like programming and I know c++ .
    my question is that how and from where I should start game programming ? is it possible with c++ ?
    if yes , are the games (that are written with c++ )graphical ?
    Just an opinion, but the book "BEGINNING C++ GAME PROGRAMMING" is just AWESOME.

    I'm new to C++ and I thought I was doomed - until I read this book.

    It has really helped me alot, and even though I'm only about 30-40 pages into the book (over 300 pages), I am still slowly but surely making progress.

    So far it has been alot of fun.

  11. #11
    Registered User
    Join Date
    Nov 2003
    Posts
    177
    thanks for ur help

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Adventures in labyrinth generation.
    By guesst in forum Game Programming
    Replies: 8
    Last Post: 10-12-2008, 01:30 PM
  2. craps game & dice game..
    By cgurl05 in forum C Programming
    Replies: 3
    Last Post: 03-25-2006, 06:58 PM
  3. Where do i start game programming
    By knight543 in forum Game Programming
    Replies: 12
    Last Post: 01-11-2002, 09:23 AM
  4. Easiest 'real' game to start with...
    By Leeman_s in forum Game Programming
    Replies: 9
    Last Post: 01-03-2002, 12:52 PM
  5. Easiest 'real' game to start with...
    By Leeman_s in forum C++ Programming
    Replies: 9
    Last Post: 01-02-2002, 10:29 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21