Now a days ,gaming industry is booming and gaming has become a career where you can earn a lot by either designing games by becoming game designer or by just playing games by becoming game tester.
But the problem is there is no proper guidance ,i mean the resources available in net are very less.There are very few sites which teach you the game designing course and if you think of joining classes for game designing than forget about india all the classes are situated in US.Some gaming sites will charge you heavily for game designing course if you apply for it.Some may even give you guidance i mean which books to read ,which s/w to use etc but no gaming site gives you the source code of the game ,they will only provide you the exe file.
I will give you some tips on how to design the game as well the source code of my two new designed games Road Rage(racing) and Memory(puzzle) in VC++(MFC) written by me from scratch without anyone's help .I know that the game will look simple to play,but writting the code behind it, is really hectic job and writting the game code is the worst job ,therefore you will see that sucessful game programmers are the most heavily paid people in the world ,you do not become a game programmer by designing 2-3 games or if you know programming languages like C,C++,JAVA etc.It takes many years of experience to design big games ,but you can easily start with small games first.
A game programmer should not only be master in programming language like Advanced C,C++ as many games are written using this languages but should also have a knowledge of Dirext X(graphics),Game Engine(the environment behind the game on which your game works),Networking (LAN and multiplayer online gaming) and sometimes Embedded(if you are porting the full game on platforms like Nintendo,XBox etc)
Dont worry i will teach you the easiest way to design game though it requires lot of programming in C++,i have used Visual C++(MFC) programming language,Visual C++(MFC) is just similar to Visual Basic ,but it is used mostly by embedded engineers in designing GUI as they are comfortable with C++ and also they are lazy to learn new language like Visual Basic.
S/w Requirement:
IDE:VISUAL STUDIO 2005
The reason why i am using Visual Studio 2005 because you can create directly a MFC project by selecting MFC project from create new project menu in Visual Studio IDE
I have commented many things in the source code,so it will be easy for everyone to understand the code .It took me 2-3 months to design the Road Rage game from scratch as i was just begginner.After that, Memory game i did in 1 day.Once you become comfortable with designing of one game ,you can do design other games easily.
Also remember complete designing of one game fully,do not leave the game in between and start designing a new game.
The main game logic(i am only giving you certain API (functions) which will be useful in designing in all games):
1.) Move Window() API: You create an object for eg in racing game its car(button).Apply this API and give the x,y co-ordinates in which direction your car can move
for eg:
for(i=0,i<50,i=i+2) { car.MoveWindow(0,0,i,0); // MoveWindow(x,y,x1,y1) x,y:initial position, (x1,y1):final position } The above function will move your car(object) in horizontal direction from i(0,0) to i(50,o),you will see your car moving ,also if you want to increase the speed of the car increase the i value from 2 to 4,6,8 .
2.) Destroy Window() API: Now your car crashes with your opponent ,so the car button should be destroyed or for eg:in any shooting game,your bullet has hit the opponent ,so your opponent (object) should be destroyed(deleted) . Just call the API opponent.DestroyWindow(), it will automatically delete the opponent object .
I know that this things will be going bouncer to some of you ,but i have tried my best to explain you ,other things i have explained in the code. Remember game programming is not easy like playing the game ,but it requires that you love playing games as you will get ideas regarding designing it.
I have been playing games since my childhood and i am a game freak.I have been known as 'DARK MESSAIH ' ,'EXTRIMIST','UNDERDOG' ,'THE SLASHER' in many games,If u play online games like GUNZ-DUEL,WARCRAFT-DOTA,UNREAL TOURNAMENT you will know me by this names I was the clan master of clan named ADDICTED in game GUNZ-DUEL which was world No 2 clan ranking in 2007,Name:EXTRIMIST,Level-82.If you have played that game than you will knowing me definitely as i must have slashed you many times with my favourite sword KATANA .
Here is the link where you will find my source code : http://en.pudn.com/downloads158/sourcecode/game/detail703390_en.html
I hope you will have pudn account.My username is andrew on pudn (story of why i choose this username ,i will tell u afterwards).You know that for downloading from this site you have to upload your 5 own source codes of any thing you have designed.If you do not have the pudn account,contact me i will give you my pudn password .
Actually i had also uploaded my games source code on codeproject.com and codeguru.com,but due to huge response(people started asking many questions ) so i deleted from those sites.
Anyways if u cannot download them,give me your email,i will personally send you to your address.
NOTE:You require VISUAL STUDIO 2005 IDE to build and run the game
--------------------------------------------------------------------------------------------
This article is written by me ,i have not copied from anywhere,you can use my source code freely, no objections from me,only thing is do not go on telling everyone that you have written the code,at least leave some credit to the author (i.e me) who wasted a lot of his time in designing this game
Saturday, May 16, 2009
Subscribe to:
Post Comments (Atom)
I don't have a pudn account. Can you email me your pudn passwd so that I can download your source code. I have Visual Studio 2005. My email address is spade110@hotmail.com
ReplyDeleteThank you,
Tim
Could you please mail me the pudn password:
ReplyDeletehurrynarain@gmail.com
hy andrew,
ReplyDeleteplease would you give me your "pund.com" login and password, that i can download few materials for my thesis on the university...
thx you very much,
my e-mail is: nikemeister@gmail.com
Lijep pozdrav iz Hrvatske (Croatia)
hi andrew
ReplyDeletecould u please give me your pudn password so i can work on my project thesis
my email is junaid.hafeez@gmail.com
thanks a lot
Hi andrew
ReplyDeleteI have registered, but i don't have enough 5 post, so, could you please, give me a pudn account?
tranbahuy@gmail.com
Thanks a lot!
hi andrew,
ReplyDeletecould you please email me your pudn password? Much appreciated.
mystarnstripes@gmail.com
Hello Andrew,
ReplyDeleteI reale need some code for libusb located on pudn. So can you send me a password to medamarko@gmail.com
Thanks a lot!
Hi Andrew,
ReplyDeleteI m interessting in downloading your files , can you send me your password
meduim@nikkenqc.com
Sorry for my bad english :P
thanks a lot
Hello Andrew
ReplyDeleteCan you send me your password.I need some code from pudn.
My email id. is ashutbbs@gmail.com
Thanks