Anyone have some docs I could look at?

This is a discussion on Anyone have some docs I could look at? within the Game Programming forums, part of the General Programming Boards category; Does anyone have some documents on how to make a specifific game? I'd like to get an idea of what ...

  1. #1
    Registered User
    Join Date
    Sep 2002
    Posts
    5

    Anyone have some docs I could look at?

    Does anyone have some documents on how to make a specifific game? I'd like to get an idea of what code makes up what. ANy game is okay, even Pong maybe. I love that game.

  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Code:
    #include <stdio.h>
    #include <conio.h>
    #include <windows.h> //Needs Sleep(int Millisecs);
    
    int main()
    {
       int Xpos = 5;
       int Ypos = 5;
       int Xspeed = 1;
       int Yspeed = 1;
    
       while(!kbhit())
       {
          gotoxy(Xpos, Ypos);
          printf(" ");
    
          Xpos += Xspeed;
          Ypos += Yspeed;
          if((Xpos <= 1) || (Xpos >= 80)) Xspeed = -Xspeed;
          if((Ypos <= 1) || (Ypos >= 25)) Yspeed = -Yspeed;
          if((Xpos == 80) && (Ypos == 25)) Xpos = 79;
    
          gotoxy(Xpos, Ypos);
          printf("");
    
          Sleep(20);
       }
       return 0;
    }
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  3. #3
    BMJ
    BMJ is offline
    Banal internet user BMJ's Avatar
    Join Date
    Aug 2002
    Location
    Chicagoland
    Posts
    1,380
    What's sad is that what Magos just posted is better than some of the stuff my friends hand me to "check out"

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. xmms plugin api docs?
    By valis in forum Tech Board
    Replies: 1
    Last Post: 07-27-2006, 08:50 AM
  2. Platform SDK docs
    By Hunter2 in forum Tech Board
    Replies: 4
    Last Post: 12-14-2004, 04:39 PM
  3. forged Bush docs
    By FillYourBrain in forum A Brief History of Cprogramming.com
    Replies: 46
    Last Post: 09-15-2004, 12:52 PM
  4. visual C++ docs error
    By Unregistered in forum C++ Programming
    Replies: 4
    Last Post: 07-22-2002, 08:24 PM
  5. Visualization docs and pointers
    By Zionaster in forum C++ Programming
    Replies: 7
    Last Post: 06-21-2002, 02:46 AM

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