A little question

This is a discussion on A little question within the Game Programming forums, part of the General Programming Boards category; Well I just started, and I'm trying to make a Tetris game since I heard it was the best game ...

  1. #1
    Registered User
    Join Date
    Jul 2002
    Posts
    15

    A little question

    Well I just started, and I'm trying to make a Tetris game since I heard it was the best game to start with.
    But I'd like just to ask a question for the future: I hear so much people say that to program a RPG is a pain in the ass, well, is it easier to program a game of the Red Alert genre? I'm not saying as good, just the genre, where you create buildings and then units and fight the others, or is that something even more difficult? I know my question sounds stupid, but I'd like to know what to do after I've finished the advised list of games to make at http://www.lupinegames.com/articles/path_to_dev.html .
    Thanks in advance.
    "Nobility is not a birtright, but is defined by someone's actions." Robin Hood

  2. #2
    Used Registerer jdinger's Avatar
    Join Date
    Feb 2002
    Posts
    1,065

    Re: A little question

    Originally posted by Robin Hood
    Well I just started, and I'm trying to make a Tetris game since I heard it was the best game to start with.
    That depends on your definition of "just started". Are you completely new to C++, new to graphics programming (any library), etc.?

    If you are new to C++ then I definitely wouldn't recommend starting with Tetris. I'd go with a simple Console TicTacToe game.

    If you aren't new to C++ but you are new to *insert your favorite graphics API here* then I would recommend making at least one or two small demos that help you get the feel the library you're using.

    If neither of those is the case then sure, Tetris is fine, though most people usually go with a Pong style game for their first graphics game since the the gameplay portion of the code *can be* less complicated.

  3. #3
    Registered User
    Join Date
    Jul 2002
    Posts
    15

    Thanks+question

    Ok, thanks, I'll try to start off with a TicTacToe or OXO as they call it sometimes.
    But what exactly is a library? Does it contain images and sounds? If yes, can images and sounds be added to the library? Thanks.
    "Nobility is not a birtright, but is defined by someone's actions." Robin Hood

  4. #4
    Used Registerer jdinger's Avatar
    Join Date
    Feb 2002
    Posts
    1,065
    According to gamedev a library is:
    ****
    A collection of routines that are stored in a .lib file to be used at the linking time and are included in the executable file that is made.
    ****

    That basically translates into a set of predefined functions that "do the dirty work for you" when it comes to some of the lower level stuff, ie: graphics and sound. The first API (library) that I learned was GDI, which is the windows graphics library.

    To give you an example using a basic GDI function:

    *to blit a bitmap to the screen with GDI you use something like this:
    Code:
    //Don't read to deep into the param's etc. this is just to give you
    ///an idea of how little code is involved.
    BitBlt(hdc,x,y,width,height,hdc2,xBmp,yBmp,SRCCOPY);
    Now if you were to write the code that BitBlt does for you, you would have MANY more lines of code than just one. And I'm sure a good bit of it is in assembly.

    Long-story-short, libraries make it easier for you to do cool stuff.

    SDL is a graphics library that seems to be growing in support, etc. lately. I haven't looked into it yet but I understand it's relatively easy and fairly powerful. You may want to do a search for some info on it once you're ready to enter into graphics programming.

  5. #5
    Rambling Man
    Join Date
    Jan 2002
    Posts
    1,050
    if you would like some tic-tac-toe console game source to look at you can download my tic-tac-toe game.

    here is the link...

    http://www.cprogramming.com/cboard/s...threadid=14320

    btw, good luck.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Alice....
    By Lurker in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 06-20-2005, 02:51 PM
  2. Debugging question
    By o_0 in forum C Programming
    Replies: 9
    Last Post: 10-10-2004, 05:51 PM
  3. Question about pointers #2
    By maxhavoc in forum C++ Programming
    Replies: 28
    Last Post: 06-21-2004, 12:52 PM
  4. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM
  5. Question, question!
    By oskilian in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-24-2001, 12:47 AM

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