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.
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.
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.
What's sad is that what Magos just posted is better than some of the stuff my friends hand me to "check out"