DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C++ (http://www.daniweb.com/forums/forum8.html)
-   -   How do i create a simple game using c++?? (http://www.daniweb.com/forums/thread6134.html)

ze_viru$ May 18th, 2004 7:48 am
How do i create a simple game using c++??
 
I've just started learning c++,so i want to take any challenge concerning c++.My question is where do i start when drafting a game program.Please ppl help me out.

meabed May 18th, 2004 12:09 pm
Re: How do i create a simple game using c++??
 
check this link ;)
http://www.cpp-home.com/tutorial.php?17_1

Bleek May 21st, 2004 10:37 am
Re: How do i create a simple game using c++??
 
make a game that uses dice. you roll 2 dice and you are rolling against the computers 2 dice. make the dice random and whoever has the bigger sum wins or gets 1 point... i dunno, start with that and build up from there, if you are just starting all you will be able to do is make a number game...

FireNet May 23rd, 2004 10:31 am
Re: How do i create a simple game using c++??
 
I would suggesst you first learn structures,classes and file i/o before trying games.You will just be frustrated and end up failing if you jump into games too soo.

Try www.google.com and search for c++ tutorials.

Blood Night May 27th, 2004 3:01 pm
Re: How do i create a simple game using c++??
 
maybe it's a nonsense,but do accumulate step by step
wondering which type do ya like?

Asif_NSU May 28th, 2004 12:11 pm
Re: How do i create a simple game using c++??
 
hey, if u r interested u can check out the game I made in C. U can run it using a C++ compiler as well. Try to run it if u r using a DOS based compiler, otherwise dont bother. U can find it in code snippets "Projectile game in C"

marceta May 29th, 2004 5:39 am
Re: How do i create a simple game using c++??
 
Quote:

Originally Posted by FireNet
I would suggesst you first learn structures,classes and file i/o before trying games.You will just be frustrated and end up failing if you jump into games too soo.

Try www.google.com and search for c++ tutorials.

This is not neccessarily true! You can make decent text based RPGS (many games for that matter) in a single file using structures only, not classes! PM me for a source code of a pretty cool basic game if you want creator of thread.

later

FireNet May 30th, 2004 3:27 am
Re: How do i create a simple game using c++??
 
Quote:

Originally Posted by marceta
This is not neccessarily true! You can make decent text based RPGS (many games for that matter) in a single file using structures only, not classes! PM me for a source code of a pretty cool basic game if you want creator of thread.

later

I did not say anything about games, but in C++ it's best if you know classes along with file i/o because it simpilfies a lot of things.And they are the basics of C++.

Now structures and classes are complimentary it's really your choice most of the time.But usally if you have experiance using classes, for games many classes will be used.

marceta May 30th, 2004 5:09 am
Re: How do i create a simple game using c++??
 
the best thing to do is make one in a single file using structs, and then remake the game using oob ie. make structs into classes!

FireNet May 30th, 2004 10:11 am
Re: How do i create a simple game using c++??
 
Not neccesarly,it may be better in most cases to begin with classes.Of course you make structs in classes but with experiance you will be able to write classes directly.


All times are GMT -4. The time now is 2:21 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC